public final class RelatesToHeader extends StringHeader
| Modifier and Type | Field and Description |
|---|---|
protected String |
type |
MUST_UNDERSTAND, mustUnderstand, name, S11_MUST_UNDERSTAND_TRUE, S12_MUST_UNDERSTAND_TRUE, soapVersion, valueEMPTY_ATTS| Constructor and Description |
|---|
RelatesToHeader(QName name,
String mid) |
RelatesToHeader(QName name,
String messageId,
String type) |
| Modifier and Type | Method and Description |
|---|---|
String |
getType() |
void |
writeTo(javax.xml.soap.SOAPMessage saaj)
Writes out the header to the given SOAPMessage.
|
void |
writeTo(javax.xml.stream.XMLStreamWriter w)
Writes out the header as a fragment.
|
getAttribute, getLocalPart, getNamespaceURI, readHeader, writeTogetAttribute, getRole, getStringContent, isIgnorable, isRelay, parseBool, readAsEPR, readAsJAXB, readAsJAXB, readAsJAXB, readAsJAXBprotected String type
public String getType()
public void writeTo(javax.xml.stream.XMLStreamWriter w) throws javax.xml.stream.XMLStreamException
HeaderwriteTo in interface HeaderwriteTo in class StringHeaderjavax.xml.stream.XMLStreamException - if the operation fails for some reason. This leaves the
writer to an undefined state.public void writeTo(javax.xml.soap.SOAPMessage saaj) throws javax.xml.soap.SOAPException
Header
Sometimes a Message needs to produce itself
as SOAPMessage, in which case each header needs
to turn itself into a header.
writeTo in interface HeaderwriteTo in class StringHeaderjavax.xml.soap.SOAPException - if the operation fails for some reason. This leaves the
writer to an undefined state.Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.