Package com.sun.xml.ws.message
Class RelatesToHeader
java.lang.Object
com.sun.xml.ws.message.AbstractHeaderImpl
com.sun.xml.ws.message.StringHeader
com.sun.xml.ws.message.RelatesToHeader
- All Implemented Interfaces:
Header
WS-Addressing <RelatesTo$gt; header.
Used for outbound only.
- Author:
- Arun Gupta
-
Field Summary
FieldsFields inherited from class com.sun.xml.ws.message.StringHeader
MUST_UNDERSTAND, mustUnderstand, name, S11_MUST_UNDERSTAND_TRUE, S12_MUST_UNDERSTAND_TRUE, soapVersion, valueFields inherited from class com.sun.xml.ws.message.AbstractHeaderImpl
EMPTY_ATTS -
Constructor Summary
ConstructorsConstructorDescriptionRelatesToHeader(QName name, String mid) RelatesToHeader(QName name, String messageId, String type) -
Method Summary
Methods inherited from class com.sun.xml.ws.message.StringHeader
getAttribute, getLocalPart, getNamespaceURI, readHeader, writeToMethods inherited from class com.sun.xml.ws.message.AbstractHeaderImpl
getAttribute, getRole, getStringContent, isIgnorable, isRelay, parseBool, readAsEPR, readAsJAXB, readAsJAXB, readAsJAXB, readAsJAXB
-
Field Details
-
type
-
-
Constructor Details
-
RelatesToHeader
-
RelatesToHeader
-
-
Method Details
-
getType
-
writeTo
Description copied from interface:HeaderWrites out the header as a fragment.- Specified by:
writeToin interfaceHeader- Overrides:
writeToin classStringHeader- Throws:
XMLStreamException- if the operation fails for some reason. This leaves the writer to an undefined state.
-
writeTo
public void writeTo(javax.xml.soap.SOAPMessage saaj) throws javax.xml.soap.SOAPException Description copied from interface:HeaderWrites out the header to the given SOAPMessage.Sometimes a
Messageneeds to produce itself asSOAPMessage, in which case each header needs to turn itself into a header.- Specified by:
writeToin interfaceHeader- Overrides:
writeToin classStringHeader- Throws:
javax.xml.soap.SOAPException- if the operation fails for some reason. This leaves the writer to an undefined state.
-