com.sun.xml.ws.security.opt.impl.incoming
Class GenericSecuredHeader

java.lang.Object
  extended by com.sun.xml.ws.message.AbstractHeaderImpl
      extended by 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

Nested Class Summary
protected static class GenericSecuredHeader.Attribute
           
 
Field Summary
 
Fields inherited from class com.sun.xml.ws.message.AbstractHeaderImpl
EMPTY_ATTS
 
Constructor Summary
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)
           
 
Method Summary
 String getAttribute(String nsUri, String localName)
           
 HashMap<String,String> getInscopeNSContext()
          map of all inscope namespace declarations.
 String getLocalPart()
           
 String getNamespaceURI()
           
 String getRole(com.sun.xml.ws.api.SOAPVersion soapVersion)
           
 String getStringContent()
           
 boolean hasEncData()
           
 boolean hasID(String id)
           
 boolean isIgnorable(com.sun.xml.ws.api.SOAPVersion soapVersion, Set<String> roles)
           
 boolean isRelay()
           
<T> T
readAsJAXB(com.sun.xml.bind.api.Bridge<T> bridge)
           
<T> T
readAsJAXB(javax.xml.bind.Unmarshaller um)
           
 javax.xml.stream.XMLStreamReader readHeader()
          Reads the header as a XMLStreamReader
 void writeTo(ContentHandler contentHandler, ErrorHandler errorHandler)
           
 void writeTo(javax.xml.soap.SOAPMessage saaj)
           
 void writeTo(javax.xml.stream.XMLStreamWriter w)
           
 
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
 

Constructor Detail

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
Method Detail

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.