Class XStreamHandler

All Implemented Interfaces:
ContentTypeHandler

public class XStreamHandler extends AbstractContentTypeHandler
Handles XML content
  • Constructor Details

    • XStreamHandler

      public XStreamHandler()
  • Method Details

    • fromObject

      public String fromObject(com.opensymphony.xwork2.ActionInvocation invocation, Object obj, String resultCode, Writer out) throws IOException
      Throws:
      IOException
    • toObject

      public void toObject(com.opensymphony.xwork2.ActionInvocation invocation, Reader in, Object target)
    • createXStream

      protected com.thoughtworks.xstream.XStream createXStream(com.opensymphony.xwork2.ActionInvocation invocation)
    • addDefaultPermissions

      protected void addDefaultPermissions(com.opensymphony.xwork2.ActionInvocation invocation, com.thoughtworks.xstream.XStream stream)
    • 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