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
| 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,
StreamReaderBufferCreator creator,
java.util.HashMap nsDecl,
javax.xml.stream.XMLInputFactory staxIF,
boolean encHeaderContent)
throws XMLStreamBufferException,
javax.xml.stream.XMLStreamException
- Throws:
XMLStreamBufferException
javax.xml.stream.XMLStreamException
hasEncData
public boolean hasEncData()
hasID
public boolean hasID(java.lang.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,
java.util.Set<java.lang.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 java.lang.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 java.lang.String getNamespaceURI()
- Specified by:
getNamespaceURI in interface com.sun.xml.ws.api.message.Header
getLocalPart
public java.lang.String getLocalPart()
- Specified by:
getLocalPart in interface com.sun.xml.ws.api.message.Header
getAttribute
public java.lang.String getAttribute(java.lang.String nsUri,
java.lang.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(SOAPMessage saaj)
throws SOAPException
- Specified by:
writeTo in interface com.sun.xml.ws.api.message.Header
- Throws:
SOAPException
writeTo
public void writeTo(org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ErrorHandler errorHandler)
throws org.xml.sax.SAXException
- Specified by:
writeTo in interface com.sun.xml.ws.api.message.Header
- Throws:
org.xml.sax.SAXException
getStringContent
public java.lang.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(Unmarshaller um)
throws JAXBException
- Specified by:
readAsJAXB in interface com.sun.xml.ws.api.message.Header- Overrides:
readAsJAXB in class com.sun.xml.ws.message.AbstractHeaderImpl
- Throws:
JAXBException
readAsJAXB
public <T> T readAsJAXB(Bridge<T> bridge)
throws JAXBException
- Specified by:
readAsJAXB in interface com.sun.xml.ws.api.message.Header- Overrides:
readAsJAXB in class com.sun.xml.ws.message.AbstractHeaderImpl
- Throws:
JAXBException
getInscopeNSContext
public java.util.HashMap<java.lang.String,java.lang.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-2013 Oracle Corporation. All Rights Reserved.