public interface ConfluenceXStream
XStream
directly to take advantages of
Confluence's XStream storage backward-compatibility.
We have introduced a xstream.allowlist.enable
system property which allows customers to enable the XStream allow list and block everything by default.
Plugins can use a new xstream-security
module in atlassian-plugin.xml
to configure Confluence's XStreams with types, regex or wildcards. We strongly recommend plugins implement this to avoid XStream restrictions if a customer goes into more strict mode. See:
<xstream-security key = "xstream-set" name="Some XStream allowlist set">
<type>com.atlassian.test.ExampleClass</type>
<type>com.atlassian.test.AnotherExampleClass</type>
<regex>com.atlassian.example.*</regex>
<wildcard>com.some.package.**</wildcard>
</xstream-security>
Modifier and Type | Method and Description |
---|---|
Object |
fromXML(Reader reader)
Deserialize an object from an XML Reader.
|
Object |
fromXML(String xml)
Deserialize an object from an XML String.
|
String |
toXML(Object obj)
Serialize an object to a pretty-printed XML String.
|
void |
toXML(Object obj,
Writer writer)
Serialize an object to the given Writer as pretty-printed XML.
|
String toXML(Object obj)
com.thoughtworks.xstream.XStreamException
- if the object cannot be serializedvoid toXML(Object obj, Writer writer)
com.thoughtworks.xstream.XStreamException
- if the object cannot be serializedObject fromXML(String xml)
com.thoughtworks.xstream.XStreamException
- if the object cannot be deserializedCopyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences