|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.cnes.sitools.common.XStreamFactory
public final class XStreamFactory
TODO rendre les drivers XML / JSon pour XStream() configurables au lieu de ceux par defaut TODO representation JSON du recordSet - streaming Json ? TODO OSGi >> XStreamFactory service.
Method Summary | |
---|---|
static XStreamFactory |
getInstance()
Gets singleton instance |
com.thoughtworks.xstream.XStream |
getXStream(org.restlet.data.MediaType media)
Default XStream factory with media type |
com.thoughtworks.xstream.XStream |
getXStream(org.restlet.data.MediaType media,
boolean dropRootMode)
Default XStream factory with media type |
com.thoughtworks.xstream.XStream |
getXStream(org.restlet.data.MediaType media,
org.restlet.Context context)
Default XStream factory with media type |
com.thoughtworks.xstream.XStream |
getXStream(org.restlet.data.MediaType media,
org.restlet.Context context,
boolean strict)
Default XStream factory with media type |
com.thoughtworks.xstream.XStream |
getXStreamReader(org.restlet.data.MediaType media)
Customize XStream parser |
com.thoughtworks.xstream.XStream |
getXStreamWriter(org.restlet.data.MediaType media,
boolean dropRootMode,
org.restlet.Context context,
boolean strict)
Customize XStream serializer DROP ROOT NODE IN JSON Representation UTF8 encoding in XML serialization |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static XStreamFactory getInstance()
public com.thoughtworks.xstream.XStream getXStream(org.restlet.data.MediaType media)
media
- RESTlet MediaType
public com.thoughtworks.xstream.XStream getXStream(org.restlet.data.MediaType media, boolean dropRootMode)
media
- RESTlet MediaTypedropRootMode
- if true response has no root node
public com.thoughtworks.xstream.XStream getXStream(org.restlet.data.MediaType media, org.restlet.Context context)
media
- RESTlet MediaTypecontext
- a Restlet context
public com.thoughtworks.xstream.XStream getXStream(org.restlet.data.MediaType media, org.restlet.Context context, boolean strict)
media
- RESTlet MediaTypecontext
- a Restlet Context
strict
- whether or not the xstream should be strict about the object mapping or not with XML (ommit field that are
on the XML and not on the model object)
public com.thoughtworks.xstream.XStream getXStreamWriter(org.restlet.data.MediaType media, boolean dropRootMode, org.restlet.Context context, boolean strict)
media
- RESTlet MediaTypedropRootMode
- if true response has no root node * @param context a Restlet Context
strict
- whether or not the xstream should be strict about the object mapping or not with XML (ommit field that are
on the XML and not on the model object)
org.restlet.resource.ResourceException
public com.thoughtworks.xstream.XStream getXStreamReader(org.restlet.data.MediaType media)
media
- RESTlet MediaType
org.restlet.resource.ResourceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |