Package org.somda.sdc.dpws.soap
Class JaxbSoapMarshalling
-
- All Implemented Interfaces:
-
com.google.common.util.concurrent.Service,org.somda.sdc.dpws.soap.SoapMarshalling
public class JaxbSoapMarshalling extends AbstractIdleService implements SoapMarshalling
Creates XML input and output streams from Envelope instances by using JAXB.
-
-
Method Summary
Modifier and Type Method Description voidmarshal(Envelope envelope, OutputStream outputStream)Takes a SOAP envelope and marshals it. Envelopeunmarshal(InputStream inputStream)Takes an input stream and unmarshals it. Envelopeunmarshal(Reader reader)Takes a reader and unmarshals it. -
Methods inherited from class com.google.common.util.concurrent.AbstractIdleService
addListener, awaitRunning, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
marshal
void marshal(Envelope envelope, OutputStream outputStream)
Takes a SOAP envelope and marshals it.
- Parameters:
envelope- the source envelope to marshal.outputStream- the destination of the marshalled data.
-
unmarshal
Envelope unmarshal(InputStream inputStream)
Takes an input stream and unmarshals it.
- Parameters:
inputStream- the input stream to unmarshal.- Returns:
the unmarshalled SOAP envelope.
-
-
-
-