Save This Page
Home » struts-2.1.8.1-src » org.apache » struts2 » rest » [javadoc | source]
org.apache.struts2.rest
public interface: ContentTypeHandlerManager [javadoc | source]

All Known Implementing Classes:
    DefaultContentTypeHandlerManager

Manages content type handlers
Field Summary
 String STRUTS_REST_HANDLER_OVERRIDE_PREFIX     
Method from org.apache.struts2.rest.ContentTypeHandlerManager Summary:
getHandlerForRequest,   getHandlerForResponse,   handleResult
Method from org.apache.struts2.rest.ContentTypeHandlerManager Detail:
 public ContentTypeHandler getHandlerForRequest(HttpServletRequest req)
    Gets the handler for the request by looking at the request content type and extension
 public ContentTypeHandler getHandlerForResponse(HttpServletRequest req,
    HttpServletResponse res)
    Gets the handler for the response by looking at the extension of the request
 public String handleResult(ActionConfig actionConfig,
    Object methodResult,
    Object target) throws IOException
    Handles the result using handlers to generate content type-specific content