Package com.sun.xml.ws.api.message.saaj
Class SAAJMessageHeaders
java.lang.Object
com.sun.xml.ws.api.message.saaj.SAAJMessageHeaders
- All Implemented Interfaces:
MessageHeaders
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddOrReplace(Header header) asList()ReturnsHeaderinstances in aList.getHeaders(String nsUri, boolean markAsUnderstood) Get all headers in specified namespacegetHeaders(String nsUri, String localName, boolean markAsUnderstood) getHeaders(QName headerName, boolean markAsUnderstood) Returns a Set of QNames of headers that satisfy ALL the following conditions: (a) Have mustUnderstand = true (b) have NOT been explicitly marked as understood (c) If roles argument is non-null, the header has isIgnorable = false for the roles argument and SOAP version (d) If non-null binding is passed in, are NOT understood by the binding (e) If (d) is met, the header is NOT in the knownHeaders list passed inReturn a Set of QNames of headers that have been explicitly marked as understood.booleanbooleanisUnderstood(int index) booleanisUnderstood(Header header) True if the header has been explicitly marked understood, false otherwisebooleanisUnderstood(String nsUri, String localName) True if the header has been explicitly marked understood, false otherwisebooleanisUnderstood(QName name) True if the header has been explicitly marked understood, false otherwisevoidvoidunderstood(Header header) voidunderstood(String nsUri, String localName) voidunderstood(QName qName)
-
Constructor Details
-
SAAJMessageHeaders
-
-
Method Details
-
understood
- Specified by:
understoodin interfaceMessageHeaders
-
understood
- Specified by:
understoodin interfaceMessageHeaders
-
understood
- Specified by:
understoodin interfaceMessageHeaders
-
isUnderstood
Description copied from interface:MessageHeadersTrue if the header has been explicitly marked understood, false otherwise- Specified by:
isUnderstoodin interfaceMessageHeaders- Returns:
-
isUnderstood
Description copied from interface:MessageHeadersTrue if the header has been explicitly marked understood, false otherwise- Specified by:
isUnderstoodin interfaceMessageHeaders- Returns:
-
isUnderstood
Description copied from interface:MessageHeadersTrue if the header has been explicitly marked understood, false otherwise- Specified by:
isUnderstoodin interfaceMessageHeaders- Returns:
-
isUnderstood
public boolean isUnderstood(int index) -
get
- Specified by:
getin interfaceMessageHeaders
-
get
- Specified by:
getin interfaceMessageHeaders
-
getHeaders
- Specified by:
getHeadersin interfaceMessageHeaders
-
getHeaders
- Specified by:
getHeadersin interfaceMessageHeaders
-
getHeaders
Description copied from interface:MessageHeadersGet all headers in specified namespace- Specified by:
getHeadersin interfaceMessageHeaders- Returns:
-
add
- Specified by:
addin interfaceMessageHeaders
-
remove
- Specified by:
removein interfaceMessageHeaders
-
remove
- Specified by:
removein interfaceMessageHeaders
-
addOrReplace
Description copied from interface:MessageHeadersReplaces an existingHeaderor adds a newHeader.Order doesn't matter in headers, so this method does not make any guarantee as to where the new header is inserted.
- Specified by:
addOrReplacein interfaceMessageHeaders- Returns:
- always true. Don't use the return value.
-
replace
- Specified by:
replacein interfaceMessageHeaders
-
getUnderstoodHeaders
Description copied from interface:MessageHeadersReturn a Set of QNames of headers that have been explicitly marked as understood. If none have been marked, this method could return null- Specified by:
getUnderstoodHeadersin interfaceMessageHeaders
-
getNotUnderstoodHeaders
public Set<QName> getNotUnderstoodHeaders(Set<String> roles, Set<QName> knownHeaders, WSBinding binding) Description copied from interface:MessageHeadersReturns a Set of QNames of headers that satisfy ALL the following conditions: (a) Have mustUnderstand = true (b) have NOT been explicitly marked as understood (c) If roles argument is non-null, the header has isIgnorable = false for the roles argument and SOAP version (d) If non-null binding is passed in, are NOT understood by the binding (e) If (d) is met, the header is NOT in the knownHeaders list passed in- Specified by:
getNotUnderstoodHeadersin interfaceMessageHeaders- Returns:
-
getHeaders
- Specified by:
getHeadersin interfaceMessageHeaders
-
hasHeaders
public boolean hasHeaders()- Specified by:
hasHeadersin interfaceMessageHeaders
-
asList
Description copied from interface:MessageHeadersReturnsHeaderinstances in aList.- Specified by:
asListin interfaceMessageHeaders- Returns:
ListcontainingHeaderinstances
-