public interface Message2SOAPGenerator
| Modifier and Type | Method and Description |
|---|---|
ByteArrayBuffer |
generateSOAPMessage(Message msg,
IPConnectionInfo connectionInfo,
AttributedURI optionalMessageId,
boolean includeXAddrsInUDPHello)
Serialize an DPWS Message Object to an array of bytes.
|
void |
generateSOAPMessage(java.io.OutputStream out,
Message msg,
IPConnectionInfo connectionInfo,
AttributedURI optionalMessageId)
Serialize an DPWS Message Object to the given output stream.
|
ByteArrayBuffer |
getCurrentBuffer()
Return the current buffer of this instance
|
void |
returnCurrentBufferToCache()
Return the current buffer of this instance to the cache for reuse
|
void generateSOAPMessage(java.io.OutputStream out,
Message msg,
IPConnectionInfo connectionInfo,
AttributedURI optionalMessageId)
throws java.lang.IllegalArgumentException,
WS4DIllegalStateException,
java.io.IOException,
DiscoveryProxyProbeMatchesException
out - stream, to which the element should be serialized.connectionInfo - msg, - which is use to get the Informationjava.lang.IllegalArgumentExceptionWS4DIllegalStateExceptionjava.io.IOExceptionDiscoveryProxyProbeMatchesExceptionByteArrayBuffer generateSOAPMessage(Message msg, IPConnectionInfo connectionInfo, AttributedURI optionalMessageId, boolean includeXAddrsInUDPHello) throws java.io.IOException, DiscoveryProxyProbeMatchesException
ATTENTION: When the message generated by this method is not needed anymore return it
for reuse by calling returnBuffer(ByteArrayBuffer buffer)
msg - the message which is use to get the Informationjava.io.IOExceptionDiscoveryProxyProbeMatchesExceptionvoid returnCurrentBufferToCache()
buffer - the message-buffer returned by the latest invocation of generateSOAPMessage(Message msg,
ConnectionInfo ci)ByteArrayBuffer getCurrentBuffer()
generateSOAPMessage(Message msg,
ConnectionInfo ci)