public interface HttpRequestAttributes
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_MEDIA_TYPE |
| 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 |
setResponseMediaType(String responseMediaType)
Sets response media type.
|
static final String DEFAULT_MEDIA_TYPE
String getClient()
String getMethod()
String getRequestBody()
String getRequestMediaType()
String getResponseMediaType()
String getUri()
void setAttributes(String client, String method, String uri, String requestBody, String requestMediaType, String responseMediaType)
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/xmlvoid setResponseMediaType(String responseMediaType)
responseMediaType - request body format, use internet media type e.g. application/xmlCopyright © 2011-2018 restSQL Project Contributors