Class ConfluenceXStreamImpl
java.lang.Object
com.atlassian.confluence.impl.xstream.ConfluenceXStreamImpl
- All Implemented Interfaces:
ConfluenceXStream,ConfluenceXStreamInternal
Default Confluence XStream implementation which adds an XStream 1.1.1 storage compatibility layer.
- Since:
- 7.10.0
-
Constructor Summary
ConstructorsConstructorDescriptionConfluenceXStreamImpl(com.thoughtworks.xstream.XStream xStreamPrimary, com.thoughtworks.xstream.XStream xStreamSecondary) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidallowTypes(String[] toArray) voidallowTypesByRegExp(String[] toArray) voidallowTypesByWildcard(String[] toArray) Deserialize an object from an XML Reader.Deserialize an object from an XML String.com.thoughtworks.xstream.XStreamAlways try to return XStream111 till the time it is supported in Confluence.voidregisterConverter(com.thoughtworks.xstream.converters.Converter converter, Integer integer) voidSerialize an object to a pretty-printed XML String.voidSerialize an object to the given Writer as pretty-printed XML.
-
Constructor Details
-
ConfluenceXStreamImpl
public ConfluenceXStreamImpl(com.thoughtworks.xstream.XStream xStreamPrimary, com.thoughtworks.xstream.XStream xStreamSecondary)
-
-
Method Details
-
toXML
Description copied from interface:ConfluenceXStreamSerialize an object to a pretty-printed XML String.- Specified by:
toXMLin interfaceConfluenceXStream
-
toXML
Description copied from interface:ConfluenceXStreamSerialize an object to the given Writer as pretty-printed XML. The Writer will be flushed afterwards and in case of an exception.- Specified by:
toXMLin interfaceConfluenceXStream
-
fromXML
Description copied from interface:ConfluenceXStreamDeserialize an object from an XML String.- Specified by:
fromXMLin interfaceConfluenceXStream
-
fromXML
Description copied from interface:ConfluenceXStreamDeserialize an object from an XML Reader.- Specified by:
fromXMLin interfaceConfluenceXStream
-
getXStream
public com.thoughtworks.xstream.XStream getXStream()Always try to return XStream111 till the time it is supported in Confluence. This helps plugin developer to have Confluence backed XStream with backward compatibility.- Specified by:
getXStreamin interfaceConfluenceXStreamInternal- Returns:
- Stream's 1.1.1 storage compatible instance.
-
registerConverter
public void registerConverter(com.thoughtworks.xstream.converters.Converter converter, Integer integer) - Specified by:
registerConverterin interfaceConfluenceXStreamInternal
-
alias
- Specified by:
aliasin interfaceConfluenceXStreamInternal
-
setUpDefaultSecurity
public void setUpDefaultSecurity()- Specified by:
setUpDefaultSecurityin interfaceConfluenceXStreamInternal
-
allowTypes
- Specified by:
allowTypesin interfaceConfluenceXStreamInternal
-
allowTypesByWildcard
- Specified by:
allowTypesByWildcardin interfaceConfluenceXStreamInternal
-
allowTypesByRegExp
- Specified by:
allowTypesByRegExpin interfaceConfluenceXStreamInternal
-