public final class RequestContextExporterBuilder extends Object
RequestContextExporter.| Modifier and Type | Method and Description |
|---|---|
RequestContextExporterBuilder |
addAttribute(String alias,
io.netty.util.AttributeKey<?> attrKey)
Adds the specified
AttributeKey to the export list. |
RequestContextExporterBuilder |
addAttribute(String alias,
io.netty.util.AttributeKey<?> attrKey,
Function<?,String> stringifier)
Adds the specified
AttributeKey to the export list. |
RequestContextExporterBuilder |
addBuiltIn(BuiltInProperty property)
Adds the specified
BuiltInProperty to the export list. |
RequestContextExporterBuilder |
addHttpRequestHeader(CharSequence name)
Adds the specified HTTP request header name to the export list.
|
RequestContextExporterBuilder |
addHttpResponseHeader(CharSequence name)
Adds the specified HTTP response header name to the export list.
|
RequestContextExporterBuilder |
addKeyPattern(String keyPattern)
Adds the property represented by the specified key pattern to the export list.
|
RequestContextExporter |
build()
Returns a newly-created
RequestContextExporter instance. |
boolean |
containsAttribute(io.netty.util.AttributeKey<?> key)
Deprecated.
This method will be removed without a replacement.
|
boolean |
containsBuiltIn(BuiltInProperty property)
Deprecated.
This method will be removed without a replacement.
|
boolean |
containsHttpRequestHeader(CharSequence name)
Deprecated.
This method will be removed without a replacement.
|
boolean |
containsHttpResponseHeader(CharSequence name)
Deprecated.
This method will be removed without a replacement.
|
Map<String,io.netty.util.AttributeKey<?>> |
getAttributes()
Deprecated.
This method will be removed without a replacement.
|
Set<BuiltInProperty> |
getBuiltIns()
Deprecated.
This method will be removed without a replacement.
|
Set<io.netty.util.AsciiString> |
getHttpRequestHeaders()
Deprecated.
This method will be removed without a replacement.
|
Set<io.netty.util.AsciiString> |
getHttpResponseHeaders()
Deprecated.
This method will be removed without a replacement.
|
public RequestContextExporterBuilder addBuiltIn(BuiltInProperty property)
BuiltInProperty to the export list.@Deprecated public boolean containsBuiltIn(BuiltInProperty property)
true if the specified BuiltInProperty is in the export list.@Deprecated public Set<BuiltInProperty> getBuiltIns()
BuiltInPropertys in the export list.public RequestContextExporterBuilder addAttribute(String alias, io.netty.util.AttributeKey<?> attrKey)
AttributeKey to the export list.alias - the alias of the attribute to exportattrKey - the key of the attribute to exportpublic RequestContextExporterBuilder addAttribute(String alias, io.netty.util.AttributeKey<?> attrKey, Function<?,String> stringifier)
AttributeKey to the export list.@Deprecated public boolean containsAttribute(io.netty.util.AttributeKey<?> key)
true if the specified AttributeKey is in the export list.@Deprecated public Map<String,io.netty.util.AttributeKey<?>> getAttributes()
AttributeKeys in the export list.Map whose key is an alias and value is an AttributeKeypublic RequestContextExporterBuilder addHttpRequestHeader(CharSequence name)
public RequestContextExporterBuilder addHttpResponseHeader(CharSequence name)
@Deprecated public boolean containsHttpRequestHeader(CharSequence name)
true if the specified HTTP request header name is in the export list.@Deprecated public boolean containsHttpResponseHeader(CharSequence name)
true if the specified HTTP response header name is in the export list.@Deprecated public Set<io.netty.util.AsciiString> getHttpRequestHeaders()
@Deprecated public Set<io.netty.util.AsciiString> getHttpResponseHeaders()
public RequestContextExporterBuilder addKeyPattern(String keyPattern)
public RequestContextExporter build()
RequestContextExporter instance.Copyright © 2020 LeanCloud. All rights reserved.