public class PersistorToXMLFile extends PersistorToFileDelegate
<Response classname="org.safs.rest.Response"> <StatusCode>200</StatusCode> <Headers>{Date=Tue, 13 Dec 2016 03:29:27 GMT, Content-Length=4574, Connection=keep-alive, Content-Type=application/xml}</Headers> <EntityBody><![CDATA[<?xml version="1.0"?><CUSTOMERList xmlns:xlink="http://www.w3.org/1999/xlink"> <CUSTOMER xlink:href="http://www.thomas-bayer.com/sqlrest/CUSTOMER/0/">0</CUSTOMER> <CUSTOMER xlink:href="http://www.thomas-bayer.com/sqlrest/CUSTOMER/49/">49</CUSTOMER> </CUSTOMERList>]]></EntityBody> <Request classname="org.safs.rest.Request"> <Method>GET</Method> <Headers> Content-Type:application/octet-stream, Accept:application/octet-stream </Headers> </Request> </Response>NOTE: Be careful with the value starting with <?xml, which should be wrapped as <![CDATA[...]]>, as shown in the example above. For other special symbols to be escaped, please refer to
Constants.XMLConstants.SYMBOL_TO_ESCAPE
.delegatePersistor
filename, ignoredFieldsForUnpickle, persistFile, reader, writer
runtime
Constructor and Description |
---|
PersistorToXMLFile(RuntimeDataInterface runtime,
java.lang.String filename) |
Modifier and Type | Method and Description |
---|---|
protected void |
instantiateDelegatePersitor()
Instantiate a concrete PersistorToString.
|
beforeUnpickle, doUnpickle, unpickle, write
equals, escape, getPersistenceName, getType, isIgnoredFiled, persist, stringNeedQuoted, unpersist, writeHeader, writeTailer
validate
public PersistorToXMLFile(RuntimeDataInterface runtime, java.lang.String filename)
runtime
- filename
- protected void instantiateDelegatePersitor()
PersistorToFileDelegate
PersistorToFileDelegate.PersistorToFileDelegate(RuntimeDataInterface, String)
.instantiateDelegatePersitor
in class PersistorToFileDelegate
Copyright © SAS Institute. All Rights Reserved.