Package org.apache.struts2.rest.handler
Class XStreamHandler
java.lang.Object
org.apache.struts2.rest.handler.XStreamHandler
- All Implemented Interfaces:
ContentTypeHandler
@Deprecated(since="7.2.0",
forRemoval=true)
public class XStreamHandler
extends Object
implements ContentTypeHandler
Deprecated, for removal: This API element is subject to removal in a future version.
Handles XML content via the XStream library.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDefaultPermissions(ActionInvocation invocation, com.thoughtworks.xstream.XStream stream) Deprecated, for removal: This API element is subject to removal in a future version.protected com.thoughtworks.xstream.XStreamcreateXStream(ActionInvocation invocation) Deprecated, for removal: This API element is subject to removal in a future version.fromObject(ActionInvocation invocation, Object obj, String resultCode, Writer out) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Gets the content type for this handlerDeprecated, for removal: This API element is subject to removal in a future version.Gets the extension this handler supportsvoidtoObject(ActionInvocation invocation, Reader in, Object target) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
XStreamHandler
public XStreamHandler()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
fromObject
public String fromObject(ActionInvocation invocation, Object obj, String resultCode, Writer out) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
fromObjectin interfaceContentTypeHandler- Throws:
IOException
-
toObject
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
toObjectin interfaceContentTypeHandler
-
createXStream
Deprecated, for removal: This API element is subject to removal in a future version. -
addDefaultPermissions
protected void addDefaultPermissions(ActionInvocation invocation, com.thoughtworks.xstream.XStream stream) Deprecated, for removal: This API element is subject to removal in a future version. -
getContentType
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ContentTypeHandlerGets the content type for this handler- Specified by:
getContentTypein interfaceContentTypeHandler- Returns:
- The mime type
-
getExtension
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ContentTypeHandlerGets the extension this handler supports- Specified by:
getExtensionin interfaceContentTypeHandler- Returns:
- The extension
-
xmlbinding instruts-plugin.xmlusesJacksonXmlHandler, which respects@StrutsParameterauthorization via theAuthorizationAwareContentTypeHandlermechanism. Users who have explicitly overridden thexmlhandler toXStreamHandlershould migrate toJacksonXmlHandler.