接口 TraceableRequest
public interface TraceableRequest
A representation of an HTTP request that is suitable for tracing.- 从以下版本开始:
- 2.0.0
- 另请参阅:
HttpExchangeTracer
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Map<String,List<String>>
getHeaders()
Returns a modifiable copy of the headers of the request.String
getMethod()
Returns the method (GET, POST, etc) of the request.String
getRemoteAddress()
Returns the remote address from which the request was sent, if available.URI
getUri()
Returns the URI of the request.
方法详细资料
getHeaders
Map<String,List<String>> getHeaders()
Returns a modifiable copy of the headers of the request.- 返回:
- the headers
getRemoteAddress
String getRemoteAddress()
Returns the remote address from which the request was sent, if available.- 返回:
- the remote address or
null