Package org.apache.struts2.rest.handler
Class XStreamHandler
java.lang.Object
org.apache.struts2.rest.handler.XStreamHandler
- All Implemented Interfaces:
- ContentTypeHandler
Handles XML content
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddDefaultPermissions(ActionInvocation invocation, com.thoughtworks.xstream.XStream stream) protected com.thoughtworks.xstream.XStreamcreateXStream(ActionInvocation invocation) fromObject(ActionInvocation invocation, Object obj, String resultCode, Writer out) Gets the content type for this handlerGets the extension this handler supportsvoidtoObject(ActionInvocation invocation, Reader in, Object target) 
- 
Constructor Details- 
XStreamHandlerpublic XStreamHandler()
 
- 
- 
Method Details- 
fromObjectpublic String fromObject(ActionInvocation invocation, Object obj, String resultCode, Writer out) throws IOException - Specified by:
- fromObjectin interface- ContentTypeHandler
- Throws:
- IOException
 
- 
toObject- Specified by:
- toObjectin interface- ContentTypeHandler
 
- 
createXStream
- 
addDefaultPermissionsprotected void addDefaultPermissions(ActionInvocation invocation, com.thoughtworks.xstream.XStream stream) 
- 
getContentTypeDescription copied from interface:ContentTypeHandlerGets the content type for this handler- Specified by:
- getContentTypein interface- ContentTypeHandler
- Returns:
- The mime type
 
- 
getExtensionDescription copied from interface:ContentTypeHandlerGets the extension this handler supports- Specified by:
- getExtensionin interface- ContentTypeHandler
- Returns:
- The extension
 
 
-