public final class VerifiedStreamMessage
extends com.sun.xml.ws.message.AbstractMessageImpl
Message implementation backed by XMLStreamReader.
TODO: we need another message class that keeps XMLStreamReader that points
at the start of the envelope element.| Constructor and Description |
|---|
VerifiedStreamMessage(com.sun.xml.ws.api.message.MessageHeaders headers,
com.sun.xml.ws.api.message.AttachmentSet attachmentSet,
XMLStreamReader reader,
com.sun.xml.ws.api.SOAPVersion soapVersion,
Map<String,String> bodyEnvNs)
Creates a
StreamMessage from a XMLStreamReader
that points at the start element of the payload, and headers. |
VerifiedStreamMessage(com.sun.xml.ws.encoding.TagInfoset envelopeTag,
com.sun.xml.ws.encoding.TagInfoset headerTag,
com.sun.xml.ws.api.message.AttachmentSet attachmentSet,
com.sun.xml.ws.api.message.MessageHeaders headers,
com.sun.xml.ws.encoding.TagInfoset bodyTag,
XMLStreamReader reader,
com.sun.xml.ws.api.SOAPVersion soapVersion,
Map<String,String> bodyEnvNs)
Creates a
StreamMessage from a XMLStreamReader
and the complete infoset of the SOAP envelope. |
| Modifier and Type | Method and Description |
|---|---|
void |
consume() |
com.sun.xml.ws.api.message.Message |
copy() |
com.sun.xml.ws.api.message.AttachmentSet |
getAttachments() |
com.sun.xml.ws.api.message.HeaderList |
getHeaders() |
String |
getPayloadLocalPart() |
String |
getPayloadNamespaceURI() |
boolean |
hasHeaders() |
boolean |
hasPayload() |
SOAPMessage |
readAsSOAPMessage() |
XMLStreamReader |
readPayload() |
<T> T |
readPayloadAsJAXB(com.sun.xml.bind.api.Bridge<T> bridge) |
<T> T |
readPayloadAsJAXB(Unmarshaller unmarshaller) |
Source |
readPayloadAsSource() |
void |
writePayloadTo(ContentHandler contentHandler,
ErrorHandler errorHandler,
boolean fragment) |
void |
writePayloadTo(XMLStreamWriter writer) |
void |
writeTo(ContentHandler contentHandler,
ErrorHandler errorHandler) |
void |
writeTo(XMLStreamWriter sw) |
getSOAPVersion, readAsSOAPMessage, readEnvelopeAsSource, readPayloadAsJAXB, toSAAJ, writeToBodyStartaddSOAPMimeHeaders, assertOneWay, copyFrom, generateMessageID, getFirstDetailEntryName, getID, getID, getMethod, getOperation, getOperation, getTransportHeaders, getTransportHeaders, hasAttachments, isFault, isOneWay, setMessageMedadatapublic VerifiedStreamMessage(@Nullable
com.sun.xml.ws.api.message.MessageHeaders headers,
@NotNull
com.sun.xml.ws.api.message.AttachmentSet attachmentSet,
@NotNull
XMLStreamReader reader,
@NotNull
com.sun.xml.ws.api.SOAPVersion soapVersion,
Map<String,String> bodyEnvNs)
StreamMessage from a XMLStreamReader
that points at the start element of the payload, and headers.
This method creaets a Message from a payload.
headers - if null, it means no headers. if non-null,
it will be owned by this message.reader - points at the start element/document of the payload (or the end element of the <s:Body>
if there's no payload)public VerifiedStreamMessage(@NotNull
com.sun.xml.ws.encoding.TagInfoset envelopeTag,
@Nullable
com.sun.xml.ws.encoding.TagInfoset headerTag,
@NotNull
com.sun.xml.ws.api.message.AttachmentSet attachmentSet,
@Nullable
com.sun.xml.ws.api.message.MessageHeaders headers,
@NotNull
com.sun.xml.ws.encoding.TagInfoset bodyTag,
@NotNull
XMLStreamReader reader,
@NotNull
com.sun.xml.ws.api.SOAPVersion soapVersion,
Map<String,String> bodyEnvNs)
StreamMessage from a XMLStreamReader
and the complete infoset of the SOAP envelope.
See #StreamMessage(MessageHeaders, AttachmentSet, XMLStreamReader, SOAPVersion) for the description of the basic parameters.
headerTag - Null if the message didn't have a header tag.public boolean hasHeaders()
hasHeaders in class com.sun.xml.ws.api.message.Messagepublic com.sun.xml.ws.api.message.HeaderList getHeaders()
getHeaders in class com.sun.xml.ws.api.message.Message@NotNull public com.sun.xml.ws.api.message.AttachmentSet getAttachments()
getAttachments in class com.sun.xml.ws.api.message.Messagepublic String getPayloadLocalPart()
getPayloadLocalPart in class com.sun.xml.ws.api.message.Messagepublic String getPayloadNamespaceURI()
getPayloadNamespaceURI in class com.sun.xml.ws.api.message.Messagepublic boolean hasPayload()
hasPayload in class com.sun.xml.ws.api.message.Messagepublic Source readPayloadAsSource()
readPayloadAsSource in class com.sun.xml.ws.api.message.Messagepublic <T> T readPayloadAsJAXB(Unmarshaller unmarshaller) throws JAXBException
readPayloadAsJAXB in class com.sun.xml.ws.message.AbstractMessageImplJAXBExceptionpublic <T> T readPayloadAsJAXB(com.sun.xml.bind.api.Bridge<T> bridge)
throws JAXBException
readPayloadAsJAXB in class com.sun.xml.ws.message.AbstractMessageImplJAXBExceptionpublic void consume()
consume in class com.sun.xml.ws.api.message.Messagepublic XMLStreamReader readPayload()
readPayload in class com.sun.xml.ws.api.message.Messagepublic void writePayloadTo(XMLStreamWriter writer) throws XMLStreamException
writePayloadTo in class com.sun.xml.ws.api.message.MessageXMLStreamExceptionpublic void writeTo(XMLStreamWriter sw) throws XMLStreamException
writeTo in class com.sun.xml.ws.message.AbstractMessageImplXMLStreamExceptionpublic void writePayloadTo(ContentHandler contentHandler, ErrorHandler errorHandler, boolean fragment) throws SAXException
writePayloadTo in class com.sun.xml.ws.message.AbstractMessageImplSAXExceptionpublic com.sun.xml.ws.api.message.Message copy()
copy in class com.sun.xml.ws.api.message.Messagepublic SOAPMessage readAsSOAPMessage() throws SOAPException
readAsSOAPMessage in class com.sun.xml.ws.message.AbstractMessageImplSOAPExceptionpublic void writeTo(ContentHandler contentHandler, ErrorHandler errorHandler) throws SAXException
writeTo in class com.sun.xml.ws.message.AbstractMessageImplSAXExceptionCopyright © 2005–2018 Oracle Corporation. All rights reserved.