Package org.somda.sdc.dpws.helper
Class JaxbMarshalling
-
- All Implemented Interfaces:
-
com.google.common.util.concurrent.Service
public class JaxbMarshalling extends AbstractIdleServiceCreates XML input and output streams from/to JAXB instances.
-
-
Method Summary
Modifier and Type Method Description <T> voidmarshal(JAXBElement<T> objectToMarshal, OutputStream outputStream)Marshals a JAXBElement into a stream. Objectunmarshal(InputStream inputStream)Takes an input stream and unmarshals it. Objectunmarshal(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
<T> void marshal(JAXBElement<T> objectToMarshal, OutputStream outputStream)
Marshals a JAXBElement into a stream.
- Parameters:
objectToMarshal- to marshaloutputStream- to marshal into
-
unmarshal
Object unmarshal(InputStream inputStream)
Takes an input stream and unmarshals it.
- Parameters:
inputStream- the input stream to unmarshal.- Returns:
the unmarshalled SOAP envelope.
-
-
-
-