Package org.apache.struts2.rest.handler
Class JacksonXmlHandler
java.lang.Object
org.apache.struts2.rest.handler.AbstractContentTypeHandler
org.apache.struts2.rest.handler.JacksonXmlHandler
- All Implemented Interfaces:
ContentTypeHandler
Handles XML content using Jackson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromObject
(com.opensymphony.xwork2.ActionInvocation invocation, Object obj, String resultCode, Writer stream) Gets the content type for this handlerGets the extension this handler supportsvoid
Methods inherited from class org.apache.struts2.rest.handler.AbstractContentTypeHandler
fromObject, toObject
-
Constructor Details
-
JacksonXmlHandler
public JacksonXmlHandler()
-
-
Method Details
-
toObject
public void toObject(com.opensymphony.xwork2.ActionInvocation invocation, Reader in, Object target) throws IOException - Throws:
IOException
-
fromObject
public String fromObject(com.opensymphony.xwork2.ActionInvocation invocation, Object obj, String resultCode, Writer stream) throws IOException - Throws:
IOException
-
getContentType
Description copied from interface:ContentTypeHandler
Gets the content type for this handler- Returns:
- The mime type
-
getExtension
Description copied from interface:ContentTypeHandler
Gets the extension this handler supports- Returns:
- The extension
-