| java.lang.Object com.sun.xml.ws.security.opt.impl.outgoing.SecurityHeader
SecurityHeader | public class SecurityHeader (Code) | | author: K.Venugopal@sun.com |
LAYOUT_LAX | final public static int LAYOUT_LAX(Code) | | |
LAYOUT_LAX_TS_FIRST | final public static int LAYOUT_LAX_TS_FIRST(Code) | | |
LAYOUT_LAX_TS_LAST | final public static int LAYOUT_LAX_TS_LAST(Code) | | |
LAYOUT_STRICT | final public static int LAYOUT_STRICT(Code) | | |
headerLayout | protected int headerLayout(Code) | | |
SecurityHeader | public SecurityHeader()(Code) | | Default constructor
uses Lax Message Layout and SOAP 1.1 version
|
SecurityHeader | public SecurityHeader(int layout, String soapVersion)(Code) | | |
getAttribute | public String getAttribute(String nsUri, String localName)(Code) | | Gets the attribute value on the header element.
Parameters: nsUri - The namespace URI of the attribute. Can be empty. Parameters: localName - The local name of the attribute.if the attribute is found, return the whitespace normalized value.(meaning no leading/trailing space, no consequtive whitespaces in-between.)Otherwise null. Note that the XML parsers are responsible forwhitespace-normalizing attributes, so Header implementationdoesn't have to do anything. |
getHeaderLayout | public int getHeaderLayout()(Code) | | |
getLocalPart | public String getLocalPart()(Code) | | Gets the local name of this header element.
this string must be interned. |
getNamespaceURI | public String getNamespaceURI()(Code) | | Gets the namespace URI of this header element.
this string must be interned. |
setHeaderLayout | public void setHeaderLayout(int headerLayout)(Code) | | |
setSOAPVersion | public void setSOAPVersion(String soapVersion)(Code) | | |
writeTo | public void writeTo(SOAPMessage saaj) throws SOAPException(Code) | | Writes out the header to the given SOAPMessage.
Sometimes a
Message needs to produce itself
as
SOAPMessage , in which case each header needs
to turn itself into a header.
throws: SOAPException - if the operation fails for some reason. This leaves thewriter to an undefined state. |
writeTo | public void writeTo(ContentHandler contentHandler, ErrorHandler errorHandler) throws SAXException(Code) | | Writes out the header as SAX events.
Sometimes a
Message needs to produce SAX events,
and this method is necessary for headers to participate to it.
A header is responsible for producing the SAX events for its part,
including startPrefixMapping and endPrefixMapping,
but not startDocument/endDocument.
Note that SAX contract requires that any error that does NOT originate
from
ContentHandler (meaning any parsing error and etc) must
be first reported to
ErrorHandler . If the SAX event production
cannot be continued and the processing needs to abort, the code may
then throw the same
SAXParseException reported to
ErrorHandler .
Parameters: contentHandler - The ContentHandler that receives SAX events. Parameters: errorHandler - The ErrorHandler that receives parsing errors. |
|
|