public class DefaultMarshaler extends AbstractDefaultXMLMarshaler implements RemotePublisherMarshaler
Modifier and Type | Field and Description |
---|---|
protected DocumentLocationMarshaler |
docLocMarshaler |
protected DocumentModelMarshaler |
documentModelMarshaler |
protected PublicationNodeMarshaler |
nodeMarshaler |
protected static org.dom4j.QName |
parameterTag |
protected Map<String,String> |
params |
protected PublishedDocumentMarshaler |
publishedDocumentMarshaler |
protected static org.dom4j.QName |
rootParametersTag |
protected static org.dom4j.QName |
rootResultTag |
protected CoreSession |
session |
publisherSerializerNS, publisherSerializerNSPrefix
Constructor and Description |
---|
DefaultMarshaler() |
DefaultMarshaler(CoreSession session) |
Modifier and Type | Method and Description |
---|---|
protected String |
buildParameterEnvelope(int nbParams) |
protected String |
buildResultEnvelope() |
String |
marshallParameters(List<Object> params) |
String |
marshallResult(Object result) |
protected String |
marshalSingleObject(Object ob) |
void |
setAssociatedCoreSession(CoreSession session) |
void |
setParameters(Map<String,String> params) |
List<Object> |
unMarshallParameters(String data) |
protected List<Object> |
unMarshallParameters(String data,
CoreSession session) |
Object |
unMarshallResult(String data) |
protected Object |
unMarshallResult(String data,
CoreSession coreSession) |
protected Object |
unMarshalSingleObject(String xml,
CoreSession coreSession) |
cleanUpXml
protected PublicationNodeMarshaler nodeMarshaler
protected PublishedDocumentMarshaler publishedDocumentMarshaler
protected DocumentModelMarshaler documentModelMarshaler
protected DocumentLocationMarshaler docLocMarshaler
protected static org.dom4j.QName rootParametersTag
protected static org.dom4j.QName parameterTag
protected static org.dom4j.QName rootResultTag
protected CoreSession session
public DefaultMarshaler()
public DefaultMarshaler(CoreSession session)
public String marshallParameters(List<Object> params)
marshallParameters
in interface RemotePublisherMarshaler
public String marshallResult(Object result)
marshallResult
in interface RemotePublisherMarshaler
public List<Object> unMarshallParameters(String data)
unMarshallParameters
in interface RemotePublisherMarshaler
protected List<Object> unMarshallParameters(String data, CoreSession session)
public Object unMarshallResult(String data)
unMarshallResult
in interface RemotePublisherMarshaler
protected Object unMarshallResult(String data, CoreSession coreSession)
protected String buildParameterEnvelope(int nbParams)
protected String buildResultEnvelope()
protected Object unMarshalSingleObject(String xml, CoreSession coreSession)
protected String marshalSingleObject(Object ob)
public void setAssociatedCoreSession(CoreSession session)
setAssociatedCoreSession
in interface RemotePublisherMarshaler
public void setParameters(Map<String,String> params)
setParameters
in interface RemotePublisherMarshaler
Copyright © 2015 Nuxeo SA. All rights reserved.