com.sun.xml.ws.security.opt.impl.incoming
Class GenericSecuredHeader
java.lang.Object
com.sun.xml.ws.message.AbstractHeaderImpl
com.sun.xml.ws.security.opt.impl.incoming.GenericSecuredHeader
- All Implemented Interfaces:
- com.sun.xml.ws.api.message.Header, NamespaceContextInfo, SecuredHeader
public class GenericSecuredHeader
- extends com.sun.xml.ws.message.AbstractHeaderImpl
- implements SecuredHeader, NamespaceContextInfo
- Author:
- K.Venugopal@sun.com
| Fields inherited from class com.sun.xml.ws.message.AbstractHeaderImpl |
EMPTY_ATTS |
| Methods inherited from class com.sun.xml.ws.message.AbstractHeaderImpl |
getAttribute, parseBool, readAsEPR, readAsJAXB, readAsJAXB |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericSecuredHeader
public GenericSecuredHeader(javax.xml.stream.XMLStreamReader reader,
com.sun.xml.ws.api.SOAPVersion soapVersion,
com.sun.xml.stream.buffer.stax.StreamReaderBufferCreator creator,
HashMap nsDecl,
javax.xml.stream.XMLInputFactory staxIF,
boolean encHeaderContent)
throws com.sun.xml.stream.buffer.XMLStreamBufferException,
javax.xml.stream.XMLStreamException
- Throws:
com.sun.xml.stream.buffer.XMLStreamBufferException
javax.xml.stream.XMLStreamException
hasEncData
public boolean hasEncData()
hasID
public boolean hasID(String id)
- Specified by:
hasID in interface SecuredHeader
- Parameters:
id - true if the SecuredHeader refers to id.
- Returns:
isIgnorable
public final boolean isIgnorable(com.sun.xml.ws.api.SOAPVersion soapVersion,
Set<String> roles)
- Specified by:
isIgnorable in interface com.sun.xml.ws.api.message.Header- Overrides:
isIgnorable in class com.sun.xml.ws.message.AbstractHeaderImpl
getRole
public String getRole(com.sun.xml.ws.api.SOAPVersion soapVersion)
- Specified by:
getRole in interface com.sun.xml.ws.api.message.Header- Overrides:
getRole in class com.sun.xml.ws.message.AbstractHeaderImpl
isRelay
public boolean isRelay()
- Specified by:
isRelay in interface com.sun.xml.ws.api.message.Header- Overrides:
isRelay in class com.sun.xml.ws.message.AbstractHeaderImpl
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURI in interface com.sun.xml.ws.api.message.Header
getLocalPart
public String getLocalPart()
- Specified by:
getLocalPart in interface com.sun.xml.ws.api.message.Header
getAttribute
public String getAttribute(String nsUri,
String localName)
- Specified by:
getAttribute in interface com.sun.xml.ws.api.message.Header
readHeader
public javax.xml.stream.XMLStreamReader readHeader()
throws javax.xml.stream.XMLStreamException
- Reads the header as a
XMLStreamReader
- Specified by:
readHeader in interface com.sun.xml.ws.api.message.Header
- Throws:
javax.xml.stream.XMLStreamException
writeTo
public void writeTo(javax.xml.stream.XMLStreamWriter w)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeTo in interface com.sun.xml.ws.api.message.Header
- Throws:
javax.xml.stream.XMLStreamException
writeTo
public void writeTo(javax.xml.soap.SOAPMessage saaj)
throws javax.xml.soap.SOAPException
- Specified by:
writeTo in interface com.sun.xml.ws.api.message.Header
- Throws:
javax.xml.soap.SOAPException
writeTo
public void writeTo(ContentHandler contentHandler,
ErrorHandler errorHandler)
throws SAXException
- Specified by:
writeTo in interface com.sun.xml.ws.api.message.Header
- Throws:
SAXException
getStringContent
public String getStringContent()
- Specified by:
getStringContent in interface com.sun.xml.ws.api.message.Header- Overrides:
getStringContent in class com.sun.xml.ws.message.AbstractHeaderImpl
readAsJAXB
public <T> T readAsJAXB(javax.xml.bind.Unmarshaller um)
throws javax.xml.bind.JAXBException
- Specified by:
readAsJAXB in interface com.sun.xml.ws.api.message.Header- Overrides:
readAsJAXB in class com.sun.xml.ws.message.AbstractHeaderImpl
- Throws:
javax.xml.bind.JAXBException
readAsJAXB
public <T> T readAsJAXB(com.sun.xml.bind.api.Bridge<T> bridge)
throws javax.xml.bind.JAXBException
- Specified by:
readAsJAXB in interface com.sun.xml.ws.api.message.Header- Overrides:
readAsJAXB in class com.sun.xml.ws.message.AbstractHeaderImpl
- Throws:
javax.xml.bind.JAXBException
getInscopeNSContext
public HashMap<String,String> getInscopeNSContext()
- Description copied from interface:
NamespaceContextInfo
- map of all inscope namespace declarations.
- Specified by:
getInscopeNSContext in interface NamespaceContextInfo
- Returns:
HashMap of all inscope namespaces.
Copyright © 2005-2012 Oracle Corporation. All Rights Reserved.