|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageContext
The MessageContext is used by Handlers to obtain and manipulate request specific information.
Method Summary | |
---|---|
java.lang.String |
getHttpMethod()
Get the http method of the request. |
LinkBuilders |
getLinkBuilders()
Get the LinkBuilders context |
java.util.Properties |
getProperties()
Get the initialization properties |
java.lang.Object |
getResponseEntity()
Get the response entity. |
javax.ws.rs.core.MediaType |
getResponseMediaType()
Get the previously set response media type |
int |
getResponseStatusCode()
Get the response status code that was previously set |
void |
setHttpMethod(java.lang.String method)
Set the http method of the request. |
void |
setResponseEntity(java.lang.Object entity)
Set the response entity. |
void |
setResponseMediaType(javax.ws.rs.core.MediaType responseMediaType)
Set the response media type |
void |
setResponseStatusCode(int responseStatusCode)
Set the response status code |
Methods inherited from interface org.apache.wink.common.RuntimeContext |
---|
getAttribute, getAttributes, getHttpHeaders, getInputStream, getOutputStream, getProviders, getRequest, getSecurityContext, getUriInfo, setAttribute |
Method Detail |
---|
java.util.Properties getProperties()
void setResponseStatusCode(int responseStatusCode)
responseStatusCode
- response status codeint getResponseStatusCode()
void setResponseEntity(java.lang.Object entity)
This may be
Response
)
entity
- the response entityjava.lang.Object getResponseEntity()
void setResponseMediaType(javax.ws.rs.core.MediaType responseMediaType)
responseMediaType
- response media type to setjavax.ws.rs.core.MediaType getResponseMediaType()
void setHttpMethod(java.lang.String method)
Enables overriding of the actual http method that was used for the request
method
- the request http method to setjava.lang.String getHttpMethod()
Note that this may be different than the real http method on the
HttpServletRequest if one of X-Method-Override
or
X-Http-Method-Override
request headers was used to override
the actual http method.
LinkBuilders getLinkBuilders()
LinkBuilders
context
LinkBuilders
context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |