public class XStreamHandler extends AbstractContentTypeHandler
Constructor and Description |
---|
XStreamHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
addDefaultPermissions(ActionInvocation invocation,
com.thoughtworks.xstream.XStream stream) |
protected com.thoughtworks.xstream.XStream |
createXStream()
Deprecated.
use version with
ActionInvocation |
protected com.thoughtworks.xstream.XStream |
createXStream(ActionInvocation invocation) |
String |
fromObject(ActionInvocation invocation,
Object obj,
String resultCode,
Writer out) |
String |
getContentType()
Gets the content type for this handler
|
String |
getExtension()
Gets the extension this handler supports
|
void |
toObject(ActionInvocation invocation,
Reader in,
Object target) |
fromObject, toObject
public String fromObject(ActionInvocation invocation, Object obj, String resultCode, Writer out) throws IOException
IOException
public void toObject(ActionInvocation invocation, Reader in, Object target)
@Deprecated protected com.thoughtworks.xstream.XStream createXStream()
ActionInvocation
protected com.thoughtworks.xstream.XStream createXStream(ActionInvocation invocation)
protected void addDefaultPermissions(ActionInvocation invocation, com.thoughtworks.xstream.XStream stream)
public String getContentType()
ContentTypeHandler
public String getExtension()
ContentTypeHandler
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.