public class XStreamSecurityClassFilter extends Object implements com.thoughtworks.xstream.converters.Converter
ConversionException
if the class to be
converted is not whitelisted. Newer versions of XStream do provide a whitelisting API similar to this, however upgrading
XStream causes its own problems, so this is a temporary fix (see CONF-28247)Constructor and Description |
---|
XStreamSecurityClassFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class type) |
void |
marshal(Object o,
com.thoughtworks.xstream.io.HierarchicalStreamWriter hierarchicalStreamWriter,
com.thoughtworks.xstream.converters.MarshallingContext marshallingContext) |
Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader hierarchicalStreamReader,
com.thoughtworks.xstream.converters.UnmarshallingContext unmarshallingContext) |
public boolean canConvert(Class type)
canConvert
in interface com.thoughtworks.xstream.converters.Converter
public void marshal(Object o, com.thoughtworks.xstream.io.HierarchicalStreamWriter hierarchicalStreamWriter, com.thoughtworks.xstream.converters.MarshallingContext marshallingContext)
marshal
in interface com.thoughtworks.xstream.converters.Converter
public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader hierarchicalStreamReader, com.thoughtworks.xstream.converters.UnmarshallingContext unmarshallingContext)
unmarshal
in interface com.thoughtworks.xstream.converters.Converter
Copyright © 2003–2016 Atlassian. All rights reserved.