Class VerifiedStreamMessage
- java.lang.Object
-
- com.sun.xml.ws.api.message.Message
-
- com.sun.xml.ws.message.AbstractMessageImpl
-
- com.sun.xml.ws.security.opt.impl.incoming.VerifiedStreamMessage
-
public final class VerifiedStreamMessage extends com.sun.xml.ws.message.AbstractMessageImplMessageimplementation backed byXMLStreamReader. TODO: we need another message class that keepsXMLStreamReaderthat points at the start of the envelope element.
-
-
Constructor Summary
Constructors Constructor 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 aStreamMessagefrom aXMLStreamReaderthat 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 aStreamMessagefrom aXMLStreamReaderand the complete infoset of the SOAP envelope.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsume()com.sun.xml.ws.api.message.Messagecopy()com.sun.xml.ws.api.message.AttachmentSetgetAttachments()com.sun.xml.ws.api.message.HeaderListgetHeaders()StringgetPayloadLocalPart()StringgetPayloadNamespaceURI()booleanhasHeaders()booleanhasPayload()javax.xml.soap.SOAPMessagereadAsSOAPMessage()XMLStreamReaderreadPayload()<T> TreadPayloadAsJAXB(com.sun.xml.bind.api.Bridge<T> bridge)<T> TreadPayloadAsJAXB(javax.xml.bind.Unmarshaller unmarshaller)SourcereadPayloadAsSource()voidwritePayloadTo(XMLStreamWriter writer)voidwritePayloadTo(ContentHandler contentHandler, ErrorHandler errorHandler, boolean fragment)voidwriteTo(XMLStreamWriter sw)voidwriteTo(ContentHandler contentHandler, ErrorHandler errorHandler)-
Methods inherited from class com.sun.xml.ws.message.AbstractMessageImpl
getSOAPVersion, readAsSOAPMessage, readEnvelopeAsSource, readPayloadAsJAXB, toSAAJ, writeToBodyStart
-
Methods inherited from class com.sun.xml.ws.api.message.Message
addSOAPMimeHeaders, assertOneWay, copyFrom, generateMessageID, getFirstDetailEntryName, getID, getID, getMethod, getOperation, getOperation, getTransportHeaders, getTransportHeaders, hasAttachments, isFault, isOneWay, setMessageMedadata
-
-
-
-
Constructor Detail
-
VerifiedStreamMessage
public 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)Creates aStreamMessagefrom aXMLStreamReaderthat points at the start element of the payload, and headers.This method creaets a
Messagefrom a payload.- Parameters:
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)
-
VerifiedStreamMessage
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)Creates aStreamMessagefrom aXMLStreamReaderand the complete infoset of the SOAP envelope.See #StreamMessage(MessageHeaders, AttachmentSet, XMLStreamReader, SOAPVersion) for the description of the basic parameters.
- Parameters:
headerTag- Null if the message didn't have a header tag.
-
-
Method Detail
-
hasHeaders
public boolean hasHeaders()
- Specified by:
hasHeadersin classcom.sun.xml.ws.api.message.Message
-
getHeaders
public com.sun.xml.ws.api.message.HeaderList getHeaders()
- Specified by:
getHeadersin classcom.sun.xml.ws.api.message.Message
-
getAttachments
@NotNull public com.sun.xml.ws.api.message.AttachmentSet getAttachments()
- Overrides:
getAttachmentsin classcom.sun.xml.ws.api.message.Message
-
getPayloadLocalPart
public String getPayloadLocalPart()
- Specified by:
getPayloadLocalPartin classcom.sun.xml.ws.api.message.Message
-
getPayloadNamespaceURI
public String getPayloadNamespaceURI()
- Specified by:
getPayloadNamespaceURIin classcom.sun.xml.ws.api.message.Message
-
hasPayload
public boolean hasPayload()
- Specified by:
hasPayloadin classcom.sun.xml.ws.api.message.Message
-
readPayloadAsSource
public Source readPayloadAsSource()
- Specified by:
readPayloadAsSourcein classcom.sun.xml.ws.api.message.Message
-
readPayloadAsJAXB
public <T> T readPayloadAsJAXB(javax.xml.bind.Unmarshaller unmarshaller) throws javax.xml.bind.JAXBException- Overrides:
readPayloadAsJAXBin classcom.sun.xml.ws.message.AbstractMessageImpl- Throws:
javax.xml.bind.JAXBException
-
readPayloadAsJAXB
public <T> T readPayloadAsJAXB(com.sun.xml.bind.api.Bridge<T> bridge) throws javax.xml.bind.JAXBException- Overrides:
readPayloadAsJAXBin classcom.sun.xml.ws.message.AbstractMessageImpl- Throws:
javax.xml.bind.JAXBException
-
consume
public void consume()
- Overrides:
consumein classcom.sun.xml.ws.api.message.Message
-
readPayload
public XMLStreamReader readPayload()
- Specified by:
readPayloadin classcom.sun.xml.ws.api.message.Message
-
writePayloadTo
public void writePayloadTo(XMLStreamWriter writer) throws XMLStreamException
- Specified by:
writePayloadToin classcom.sun.xml.ws.api.message.Message- Throws:
XMLStreamException
-
writeTo
public void writeTo(XMLStreamWriter sw) throws XMLStreamException
- Overrides:
writeToin classcom.sun.xml.ws.message.AbstractMessageImpl- Throws:
XMLStreamException
-
writePayloadTo
public void writePayloadTo(ContentHandler contentHandler, ErrorHandler errorHandler, boolean fragment) throws SAXException
- Specified by:
writePayloadToin classcom.sun.xml.ws.message.AbstractMessageImpl- Throws:
SAXException
-
copy
public com.sun.xml.ws.api.message.Message copy()
- Specified by:
copyin classcom.sun.xml.ws.api.message.Message
-
readAsSOAPMessage
public javax.xml.soap.SOAPMessage readAsSOAPMessage() throws javax.xml.soap.SOAPException- Overrides:
readAsSOAPMessagein classcom.sun.xml.ws.message.AbstractMessageImpl- Throws:
javax.xml.soap.SOAPException
-
writeTo
public void writeTo(ContentHandler contentHandler, ErrorHandler errorHandler) throws SAXException
- Overrides:
writeToin classcom.sun.xml.ws.message.AbstractMessageImpl- Throws:
SAXException
-
-