public class XStreamUtils extends Object
| Constructor and Description |
|---|
XStreamUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.thoughtworks.xstream.XStream |
createNonTrustingXStream()
Use for XML or JSON that might not come from a trusted source (such as REST services payloads, ...).
|
static com.thoughtworks.xstream.XStream |
createNonTrustingXStream(com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver)
Use for XML or JSON that might not come from a trusted source (such as REST services payloads, ...).
|
static com.thoughtworks.xstream.XStream |
createNonTrustingXStream(com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver,
ClassLoader classLoader)
Use for XML or JSON that might not come from a trusted source (such as REST services payloads, ...).
|
static com.thoughtworks.xstream.XStream |
createNonTrustingXStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
Use for XML or JSON that might not come from a trusted source (such as REST services payloads, ...).
|
static com.thoughtworks.xstream.XStream |
createNonTrustingXStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider,
Function<com.thoughtworks.xstream.mapper.MapperWrapper,com.thoughtworks.xstream.mapper.MapperWrapper> mapper)
Use for XML or JSON that might not come from a trusted source (such as REST services payloads, ...).
|
static com.thoughtworks.xstream.XStream |
createNonTrustingXStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider,
com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver)
Use for XML or JSON that might not come from a trusted source (such as REST services payloads, ...).
|
static com.thoughtworks.xstream.XStream |
createTrustingXStream()
Only use for XML or JSON that comes from a 100% trusted source.
|
static com.thoughtworks.xstream.XStream |
createTrustingXStream(com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver)
Only use for XML or JSON that comes from a 100% trusted source.
|
static com.thoughtworks.xstream.XStream |
createTrustingXStream(com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver,
ClassLoader classLoader)
Only use for XML or JSON that comes from a 100% trusted source.
|
static com.thoughtworks.xstream.XStream |
createTrustingXStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
Only use for XML or JSON that comes from a 100% trusted source.
|
static com.thoughtworks.xstream.XStream |
createTrustingXStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider,
Function<com.thoughtworks.xstream.mapper.MapperWrapper,com.thoughtworks.xstream.mapper.MapperWrapper> mapper)
Only use for XML or JSON that comes from a 100% trusted source.
|
static com.thoughtworks.xstream.XStream |
createTrustingXStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider,
com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver)
Only use for XML or JSON that comes from a 100% trusted source.
|
static com.thoughtworks.xstream.XStream |
createXStream()
Deprecated.
in favor of
createTrustingXStream() and createNonTrustingXStream() |
static com.thoughtworks.xstream.XStream |
createXStream(com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver)
Deprecated.
in favor of
createTrustingXStream() and createNonTrustingXStream() |
static com.thoughtworks.xstream.XStream |
createXStream(com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver,
ClassLoader classLoader)
Deprecated.
in favor of
createTrustingXStream() and createNonTrustingXStream() |
static com.thoughtworks.xstream.XStream |
createXStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
Deprecated.
in favor of
createTrustingXStream() and createNonTrustingXStream() |
static com.thoughtworks.xstream.XStream |
createXStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider,
Function<com.thoughtworks.xstream.mapper.MapperWrapper,com.thoughtworks.xstream.mapper.MapperWrapper> mapper)
Deprecated.
in favor of
createTrustingXStream() and createNonTrustingXStream() |
@Deprecated public static com.thoughtworks.xstream.XStream createXStream()
createTrustingXStream() and createNonTrustingXStream()@Deprecated public static com.thoughtworks.xstream.XStream createXStream(com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver)
createTrustingXStream() and createNonTrustingXStream()@Deprecated public static com.thoughtworks.xstream.XStream createXStream(com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver, ClassLoader classLoader)
createTrustingXStream() and createNonTrustingXStream()@Deprecated public static com.thoughtworks.xstream.XStream createXStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
createTrustingXStream() and createNonTrustingXStream()@Deprecated public static com.thoughtworks.xstream.XStream createXStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider, Function<com.thoughtworks.xstream.mapper.MapperWrapper,com.thoughtworks.xstream.mapper.MapperWrapper> mapper)
createTrustingXStream() and createNonTrustingXStream()public static com.thoughtworks.xstream.XStream createTrustingXStream()
createNonTrustingXStream().public static com.thoughtworks.xstream.XStream createTrustingXStream(com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver)
createNonTrustingXStream().public static com.thoughtworks.xstream.XStream createTrustingXStream(com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver,
ClassLoader classLoader)
createNonTrustingXStream().public static com.thoughtworks.xstream.XStream createTrustingXStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
createNonTrustingXStream().public static com.thoughtworks.xstream.XStream createTrustingXStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider,
com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver)
createNonTrustingXStream().public static com.thoughtworks.xstream.XStream createTrustingXStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider,
Function<com.thoughtworks.xstream.mapper.MapperWrapper,com.thoughtworks.xstream.mapper.MapperWrapper> mapper)
createNonTrustingXStream().public static com.thoughtworks.xstream.XStream createNonTrustingXStream()
XStreamAlias annotation.
Often requires whitelisting additional domain specific classes, which you'll need to expose in your API's.public static com.thoughtworks.xstream.XStream createNonTrustingXStream(com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver)
XStreamAlias annotation.
Often requires whitelisting additional domain specific classes, which you'll need to expose in your API's.public static com.thoughtworks.xstream.XStream createNonTrustingXStream(com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver,
ClassLoader classLoader)
XStreamAlias annotation.
Often requires whitelisting additional domain specific classes, which you'll need to expose in your API's.public static com.thoughtworks.xstream.XStream createNonTrustingXStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
XStreamAlias annotation.
Often requires whitelisting additional domain specific classes, which you'll need to expose in your API's.public static com.thoughtworks.xstream.XStream createNonTrustingXStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider,
com.thoughtworks.xstream.io.HierarchicalStreamDriver hierarchicalStreamDriver)
XStreamAlias annotation.
Often requires whitelisting additional domain specific classes, which you'll need to expose in your API's.public static com.thoughtworks.xstream.XStream createNonTrustingXStream(com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider,
Function<com.thoughtworks.xstream.mapper.MapperWrapper,com.thoughtworks.xstream.mapper.MapperWrapper> mapper)
XStreamAlias annotation.
Often requires whitelisting additional domain specific classes, which you'll need to expose in your API's.Copyright © 2017–2020 JBoss by Red Hat. All rights reserved.