Class Context (3.20.3)

public class Context

Class to hold context attributes including information about {@see HttpRequest} and tracing.

Inheritance

Object > Context

Static Methods

newBuilder()

public static Context.Builder newBuilder()

Returns a builder for HttpRequest objects.

Returns
Type Description
Context.Builder

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getHttpRequest()

public HttpRequest getHttpRequest()
Returns
Type Description
HttpRequest

getSpanId()

public String getSpanId()
Returns
Type Description
String

getTraceId()

public String getTraceId()
Returns
Type Description
String

getTraceSampled()

public boolean getTraceSampled()
Returns
Type Description
boolean

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

public Context.Builder toBuilder()

Returns a builder for this object.

Returns
Type Description
Context.Builder

toString()

public String toString()
Returns
Type Description
String
Overrides