public interface ContentTypeHandlerManager
| Modifier and Type | Field and Description |
|---|---|
static String |
STRUTS_REST_HANDLER_OVERRIDE_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
String |
findExtension(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
|
String |
handleResult(ActionConfig actionConfig,
Object methodResult,
Object target)
Handles the result using handlers to generate content type-specific content
|
static final String STRUTS_REST_HANDLER_OVERRIDE_PREFIX
ContentTypeHandler getHandlerForRequest(javax.servlet.http.HttpServletRequest req)
req - The requestContentTypeHandler getHandlerForResponse(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
req - The requestres - The servlet responseString handleResult(ActionConfig actionConfig, Object methodResult, Object target) throws IOException
actionConfig - The action config for the current requestmethodResult - The object returned from the action methodtarget - The object to return, usually the action objectIOException - If unable to write to the responseCopyright © 2000–2017 Apache Software Foundation. All rights reserved.