Package org.apache.struts2.rest.handler
Class HtmlHandler
java.lang.Object
org.apache.struts2.rest.handler.AbstractContentTypeHandler
org.apache.struts2.rest.handler.HtmlHandler
- All Implemented Interfaces:
ContentTypeHandler
Handles HTML content, usually just a simple passthrough to the framework
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromObject
(ActionInvocation invocation, Object obj, String resultCode, Writer out) Gets the content type for this handlerGets the extension this handler supportsvoid
toObject
(ActionInvocation invocation, Reader in, Object target) Methods inherited from class org.apache.struts2.rest.handler.AbstractContentTypeHandler
fromObject, toObject
-
Constructor Details
-
HtmlHandler
public HtmlHandler()
-
-
Method Details
-
fromObject
public String fromObject(ActionInvocation invocation, Object obj, String resultCode, Writer out) throws IOException - Throws:
IOException
-
toObject
-
getExtension
Description copied from interface:ContentTypeHandler
Gets the extension this handler supports- Returns:
- The extension
-
getContentType
Description copied from interface:ContentTypeHandler
Gets the content type for this handler- Returns:
- The mime type
-