public class SoapMsgHeaders extends Object implements MsgHeaders
Constructor and Description |
---|
SoapMsgHeaders(Element headerElt)
Deprecated.
Creates a new set of SOAPMsgHeaders
|
SoapMsgHeaders(SOAPMessage message)
Deprecated.
Creates a new set of SOAPMsgHeaders
|
Modifier and Type | Method and Description |
---|---|
void |
addHeader(MsgHeader msgHeader)
Deprecated.
Adds a new header.
|
void |
addHeaders(NodeList headers)
Deprecated.
Adds a bunch of headers in already serialized form
REVIEW mmihic Not sure if I like this method since it assumes XML serialization
|
String |
getActor(Element elem)
Deprecated.
|
MsgHeader |
getHeader(MsgHeaderType type)
Deprecated.
Gets a message header
|
boolean |
getMustUnderstand(Element elem)
Deprecated.
|
boolean |
isEmpty()
Deprecated.
Determines whether the set of message headers is empty
|
Iterator |
listHeaders()
Deprecated.
Lists the message headers
|
void |
replaceHeader(MsgHeader msgHeader)
Deprecated.
|
void |
setActor(Element elem,
String actor)
Deprecated.
|
void |
setMustUnderstand(Element elem,
boolean b)
Deprecated.
|
public SoapMsgHeaders(Element headerElt) throws MsgHeaderException
headerElt
- The element to contain the headersMsgHeaderException
public SoapMsgHeaders(SOAPMessage message) throws MsgHeaderException
message
- MsgHeaderException
public MsgHeader getHeader(MsgHeaderType type) throws MsgHeaderException
getHeader
in interface MsgHeaders
type
- The type of message headerMsgHeaderException
public void addHeader(MsgHeader msgHeader) throws MsgHeaderException
MsgHeader
object will not
affect the header as it appears in the message.addHeader
in interface MsgHeaders
msgHeader
- The header to addMsgHeaderException
public void replaceHeader(MsgHeader msgHeader) throws MsgHeaderException
MsgHeaderException
public void addHeaders(NodeList headers) throws MsgHeaderException
addHeaders
in interface MsgHeaders
headers
- The serialized headersMsgHeaderException
public boolean isEmpty()
isEmpty
in interface MsgHeaders
public Iterator listHeaders()
listHeaders
in interface MsgHeaders
public boolean getMustUnderstand(Element elem)
public void setMustUnderstand(Element elem, boolean b)