public class HttpRequestAttributesImpl extends Object implements HttpRequestAttributes
DEFAULT_MEDIA_TYPE
Constructor and Description |
---|
HttpRequestAttributesImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getClient()
Returns client IP or hostname.
|
String |
getMethod()
Returns HTTP method.
|
String |
getRequestBody()
Returns request body, if any.
|
String |
getRequestMediaType()
Returns request media type.
|
String |
getResponseMediaType()
Returns response media type.
|
String |
getUri()
Returns URI.
|
void |
setAttributes(String client,
String method,
String uri,
String requestBody,
String requestMediaType,
String responseMediaType)
Sets attributes of an HTTP request.
|
void |
setClient(String client) |
void |
setMethod(String method) |
void |
setRequestBody(String requestBody) |
void |
setRequestMediaType(String requestMediaType) |
void |
setResponseMediaType(String responseMediaType)
Sets response media type.
|
void |
setUri(String uri) |
String |
toString() |
public String getClient()
HttpRequestAttributes
getClient
in interface HttpRequestAttributes
public String getMethod()
HttpRequestAttributes
getMethod
in interface HttpRequestAttributes
public String getRequestBody()
HttpRequestAttributes
getRequestBody
in interface HttpRequestAttributes
public String getRequestMediaType()
HttpRequestAttributes
getRequestMediaType
in interface HttpRequestAttributes
public String getResponseMediaType()
HttpRequestAttributes
getResponseMediaType
in interface HttpRequestAttributes
public String getUri()
HttpRequestAttributes
getUri
in interface HttpRequestAttributes
public void setAttributes(String client, String method, String uri, String requestBody, String requestMediaType, String responseMediaType)
HttpRequestAttributes
setAttributes
in interface HttpRequestAttributes
client
- IP or host namemethod
- HTTP methoduri
- request URIrequestBody
- request bodyrequestMediaType
- request body format, use internet media type e.g. application/xmlresponseMediaType
- request body format, use internet media type e.g. application/xmlpublic void setClient(String client)
public void setMethod(String method)
public void setRequestBody(String requestBody)
public void setRequestMediaType(String requestMediaType)
public void setResponseMediaType(String responseMediaType)
HttpRequestAttributes
setResponseMediaType
in interface HttpRequestAttributes
responseMediaType
- request body format, use internet media type e.g. application/xmlpublic void setUri(String uri)
Copyright © 2011-2018 restSQL Project Contributors