Class RequestContextExporter
java.lang.Object
com.linecorp.armeria.common.logging.RequestContextExporter
Exports the specified properties from current
RequestContext
to Map
.-
Method Summary
Modifier and TypeMethodDescriptionMap
<String, AttributeKey<?>> Returns allAttributeKey
s in the export list.builder()
Returns a newly createdRequestContextExporterBuilder
.builtIns()
Returns allBuiltInProperty
s in the export list.boolean
containsAttribute
(AttributeKey<?> key) Returnstrue
if the specifiedAttributeKey
is in the export list.boolean
containsBuiltIn
(BuiltInProperty property) Returnstrue
if the specifiedBuiltInProperty
is in the export list.boolean
Returnstrue
if the specified HTTP request header name is in the export list.boolean
Returnstrue
if the specified HTTP response header name is in the export list.export()
Returns aMap
whose key is an export key set throughadd*()
inRequestContextExporterBuilder
and value is extracted fromRequestContext
.export
(RequestContext ctx) Returns aMap
whose key is an export key set throughadd*()
inRequestContextExporterBuilder
and value is extracted from the specifiedRequestContext
.Returns all HTTP request header names in the export list.Returns all HTTP response header names in the export list.
-
Method Details
-
builder
Returns a newly createdRequestContextExporterBuilder
. -
containsAttribute
Returnstrue
if the specifiedAttributeKey
is in the export list. -
containsRequestHeader
Returnstrue
if the specified HTTP request header name is in the export list. -
containsResponseHeader
Returnstrue
if the specified HTTP response header name is in the export list. -
containsBuiltIn
Returnstrue
if the specifiedBuiltInProperty
is in the export list. -
builtIns
Returns allBuiltInProperty
s in the export list. -
attributes
Returns allAttributeKey
s in the export list.- Returns:
- the
Map
whose key is an alias and value is anAttributeKey
-
requestHeaders
Returns all HTTP request header names in the export list. -
responseHeaders
Returns all HTTP response header names in the export list. -
export
Returns aMap
whose key is an export key set throughadd*()
inRequestContextExporterBuilder
and value is extracted fromRequestContext
. Note that this method returns an emptyMap
if currentRequestContext
isnull
. -
export
Returns aMap
whose key is an export key set throughadd*()
inRequestContextExporterBuilder
and value is extracted from the specifiedRequestContext
.
-