Class JuneauXmlHandler

java.lang.Object
org.apache.struts2.rest.handler.AbstractContentTypeHandler
org.apache.struts2.rest.handler.JuneauXmlHandler
All Implemented Interfaces:
ContentTypeHandler

public class JuneauXmlHandler extends AbstractContentTypeHandler
Handles XML content using Apache Juneau http://juneau.apache.org/#marshall.html
  • Constructor Details

    • JuneauXmlHandler

      public JuneauXmlHandler()
  • 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

      public String getContentType()
      Description copied from interface: ContentTypeHandler
      Gets the content type for this handler
      Returns:
      The mime type
    • getExtension

      public String getExtension()
      Description copied from interface: ContentTypeHandler
      Gets the extension this handler supports
      Returns:
      The extension