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)Deprecated. 
 use version which requires  ActionInvocation | 
| String | handleResult(ActionInvocation actionInvocation,
            Object methodResult,
            Object target) | 
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 response@Deprecated String handleResult(ActionConfig actionConfig, Object methodResult, Object target) throws IOException
ActionInvocationactionConfig - 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 responseString handleResult(ActionInvocation actionInvocation, Object methodResult, Object target) throws IOException
IOExceptionCopyright © 2000–2025 Apache Software Foundation. All rights reserved.