|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentTypeHandlerManager
Manages content type handlers
Field Summary | |
---|---|
static java.lang.String |
STRUTS_REST_HANDLER_OVERRIDE_PREFIX
|
Method Summary | |
---|---|
java.lang.String |
findExtension(java.lang.String url)
Finds the extension in the url |
ContentTypeHandler |
getHandlerForRequest(javax.servlet.http.HttpServletRequest req)
Gets the handler for the request by looking at the request content type and extension |
ContentTypeHandler |
getHandlerForResponse(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Gets the handler for the response by looking at the extension of the request |
java.lang.String |
handleResult(ActionConfig actionConfig,
java.lang.Object methodResult,
java.lang.Object target)
Handles the result using handlers to generate content type-specific content |
Field Detail |
---|
static final java.lang.String STRUTS_REST_HANDLER_OVERRIDE_PREFIX
Method Detail |
---|
ContentTypeHandler getHandlerForRequest(javax.servlet.http.HttpServletRequest req)
req
- The request
ContentTypeHandler getHandlerForResponse(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
req
- The request
java.lang.String handleResult(ActionConfig actionConfig, java.lang.Object methodResult, java.lang.Object target) throws java.io.IOException
actionConfig
- The action config for the current requestmethodResult
- The object returned from the action methodtarget
- The object to return, usually the action object
java.io.IOException
- If unable to write to the responsejava.lang.String findExtension(java.lang.String url)
url
- The url
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |