Package com.sun.xml.ws.api.message
Interface MessageHeaders
- All Known Implementing Classes:
HeaderList,SAAJMessageHeaders
public interface MessageHeaders
Interface representing all the headers of a
Message-
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(Header header) True if the header has been explicitly marked understood, false otherwisebooleanisUnderstood(String nsUri, String header) True if the header has been explicitly marked understood, false otherwisebooleanisUnderstood(QName header) True if the header has been explicitly marked understood, false otherwisevoidvoidunderstood(Header header) voidunderstood(String nsUri, String localName) voidunderstood(QName name)
-
Method Details
-
understood
-
understood
-
understood
-
get
-
get
-
getHeaders
-
getHeaders
Get all headers in specified namespace- Parameters:
nsUri-markAsUnderstood-- Returns:
-
getHeaders
-
getHeaders
-
hasHeaders
boolean hasHeaders() -
add
-
remove
-
remove
-
replace
-
addOrReplace
Replaces 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.
- Returns:
- always true. Don't use the return value.
-
getUnderstoodHeaders
Return a Set of QNames of headers that have been explicitly marked as understood. If none have been marked, this method could return null -
getNotUnderstoodHeaders
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 in- Parameters:
roles-knownHeaders-binding-- Returns:
-
isUnderstood
True if the header has been explicitly marked understood, false otherwise- Parameters:
header-- Returns:
-
isUnderstood
True if the header has been explicitly marked understood, false otherwise- Parameters:
header-- Returns:
-
isUnderstood
True if the header has been explicitly marked understood, false otherwise- Parameters:
header-- Returns:
-
asList
ReturnsHeaderinstances in aList.- Returns:
ListcontainingHeaderinstances
-