Class Context (3.15.4)

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
TypeDescription
Context.Builder

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getHttpRequest()

public HttpRequest getHttpRequest()
Returns
TypeDescription
HttpRequest

getSpanId()

public String getSpanId()
Returns
TypeDescription
String

getTraceId()

public String getTraceId()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public Context.Builder toBuilder()

Returns a builder for this object.

Returns
TypeDescription
Context.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides