com.sun.tools.ws.wsdl.parser
Class SOAPExtensionHandler

java.lang.Object
  extended by com.sun.tools.ws.api.wsdl.TWSDLExtensionHandler
      extended by com.sun.tools.ws.wsdl.parser.AbstractExtensionHandler
          extended by com.sun.tools.ws.wsdl.parser.SOAPExtensionHandler
Direct Known Subclasses:
SOAP12ExtensionHandler

public class SOAPExtensionHandler
extends AbstractExtensionHandler

The SOAP extension handler for WSDL.

Author:
WS Development Team

Constructor Summary
SOAPExtensionHandler(java.util.Map<java.lang.String,AbstractExtensionHandler> extensionHandlerMap)
           
 
Method Summary
protected  javax.xml.namespace.QName getAddressQName()
           
protected  javax.xml.namespace.QName getBindingQName()
           
protected  javax.xml.namespace.QName getBodyQName()
           
protected  javax.xml.namespace.QName getFaultQName()
           
protected  javax.xml.namespace.QName getHeaderfaultQName()
           
protected  javax.xml.namespace.QName getHeaderQName()
           
 java.lang.String getNamespaceURI()
          Gives the namespace of an extensibility element.
protected  javax.xml.namespace.QName getOperationQName()
           
protected  SOAPBinding getSOAPBinding(org.xml.sax.Locator location)
           
 boolean handleBindingExtension(TWSDLParserContext context, TWSDLExtensible parent, org.w3c.dom.Element e)
          Callback for wsdl:binding
 boolean handleDefinitionsExtension(TWSDLParserContext context, TWSDLExtensible parent, org.w3c.dom.Element e)
          Callback for wsdl:definitions
 boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, org.w3c.dom.Element e)
          Callback for wsdl:fault
 boolean handleInputExtension(TWSDLParserContext context, TWSDLExtensible parent, org.w3c.dom.Element e)
          Callback for wsdl:input
protected  boolean handleInputOutputExtension(TWSDLParserContext contextif, TWSDLExtensible parent, org.w3c.dom.Element e)
           
protected  boolean handleMIMEPartExtension(TWSDLParserContext context, TWSDLExtensible parent, org.w3c.dom.Element e)
          Callback for wsdl:mime
 boolean handleOperationExtension(TWSDLParserContext context, TWSDLExtensible parent, org.w3c.dom.Element e)
          Callback for wsdl:portType/wsdl:operation.
 boolean handleOutputExtension(TWSDLParserContext context, TWSDLExtensible parent, org.w3c.dom.Element e)
          Callback for wsdl:output
 boolean handlePortExtension(TWSDLParserContext context, TWSDLExtensible parent, org.w3c.dom.Element e)
          Callback for wsdl:port
 boolean handlePortTypeExtension(TWSDLParserContext context, TWSDLExtensible parent, org.w3c.dom.Element e)
          Callback for wsdl:portType
 boolean handleServiceExtension(TWSDLParserContext context, TWSDLExtensible parent, org.w3c.dom.Element e)
          Callback for wsdl:service
 boolean handleTypesExtension(TWSDLParserContext context, TWSDLExtensible parent, org.w3c.dom.Element e)
          Callback for wsdl:type
 
Methods inherited from class com.sun.tools.ws.wsdl.parser.AbstractExtensionHandler
doHandleExtension, getExtensionHandlers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPExtensionHandler

public SOAPExtensionHandler(java.util.Map<java.lang.String,AbstractExtensionHandler> extensionHandlerMap)
Method Detail

getNamespaceURI

public java.lang.String getNamespaceURI()
Description copied from class: TWSDLExtensionHandler
Gives the namespace of an extensibility element.

For example a soap 1.1 XXExtensionHandler would return ""http://schemas.xmlsoap.org/wsdl/soap/"

Overrides:
getNamespaceURI in class TWSDLExtensionHandler

handleDefinitionsExtension

public boolean handleDefinitionsExtension(TWSDLParserContext context,
                                          TWSDLExtensible parent,
                                          org.w3c.dom.Element e)
Description copied from class: TWSDLExtensionHandler
Callback for wsdl:definitions

Overrides:
handleDefinitionsExtension in class TWSDLExtensionHandler
Parameters:
context - Parser context that will be passed on by the wsdl parser
parent - The Parent element within which the extensibility element is defined
e - The extensibility elemenet
Returns:
false if there was some error during the extension handling otherwise returns true. If returned false then the WSDL parser can abort if the wsdl extensibility element had required attribute set to true

handleTypesExtension

public boolean handleTypesExtension(TWSDLParserContext context,
                                    TWSDLExtensible parent,
                                    org.w3c.dom.Element e)
Description copied from class: TWSDLExtensionHandler
Callback for wsdl:type

Overrides:
handleTypesExtension in class TWSDLExtensionHandler
Parameters:
context - Parser context that will be passed on by the wsdl parser
parent - The Parent element within which the extensibility element is defined
e - The extensibility elemenet
Returns:
false if there was some error during the extension handling otherwise returns true. If returned false then the WSDL parser can abort if the wsdl extensibility element had required attribute set to true

getSOAPBinding

protected SOAPBinding getSOAPBinding(org.xml.sax.Locator location)

handleBindingExtension

public boolean handleBindingExtension(TWSDLParserContext context,
                                      TWSDLExtensible parent,
                                      org.w3c.dom.Element e)
Description copied from class: TWSDLExtensionHandler
Callback for wsdl:binding

Overrides:
handleBindingExtension in class TWSDLExtensionHandler
Parameters:
context - Parser context that will be passed on by the wsdl parser
parent - The Parent element within which the extensibility element is defined
e - The extensibility elemenet
Returns:
false if there was some error during the extension handling otherwise returns true. If returned false then the WSDL parser can abort if the wsdl extensibility element had required attribute set to true

handleOperationExtension

public boolean handleOperationExtension(TWSDLParserContext context,
                                        TWSDLExtensible parent,
                                        org.w3c.dom.Element e)
Description copied from class: TWSDLExtensionHandler
Callback for wsdl:portType/wsdl:operation.

Overrides:
handleOperationExtension in class TWSDLExtensionHandler
Parameters:
context - Parser context that will be passed on by the wsdl parser
parent - The Parent element within which the extensibility element is defined
e - The extensibility elemenet
Returns:
false if there was some error during the extension handling otherwise returns true. If returned false then the WSDL parser can abort if the wsdl extensibility element had required attribute set to true

handleInputExtension

public boolean handleInputExtension(TWSDLParserContext context,
                                    TWSDLExtensible parent,
                                    org.w3c.dom.Element e)
Description copied from class: TWSDLExtensionHandler
Callback for wsdl:input

Overrides:
handleInputExtension in class TWSDLExtensionHandler
Parameters:
context - Parser context that will be passed on by the wsdl parser
parent - The Parent element within which the extensibility element is defined
e - The extensibility elemenet
Returns:
false if there was some error during the extension handling otherwise returns true. If returned false then the WSDL parser can abort if the wsdl extensibility element had required attribute set to true

handleOutputExtension

public boolean handleOutputExtension(TWSDLParserContext context,
                                     TWSDLExtensible parent,
                                     org.w3c.dom.Element e)
Description copied from class: TWSDLExtensionHandler
Callback for wsdl:output

Overrides:
handleOutputExtension in class TWSDLExtensionHandler
Parameters:
context - Parser context that will be passed on by the wsdl parser
parent - The Parent element within which the extensibility element is defined
e - The extensibility elemenet
Returns:
false if there was some error during the extension handling otherwise returns true. If returned false then the WSDL parser can abort if the wsdl extensibility element had required attribute set to true

handleMIMEPartExtension

protected boolean handleMIMEPartExtension(TWSDLParserContext context,
                                          TWSDLExtensible parent,
                                          org.w3c.dom.Element e)
Description copied from class: AbstractExtensionHandler
Callback for wsdl:mime

Overrides:
handleMIMEPartExtension in class AbstractExtensionHandler
Parameters:
context - Parser context that will be passed on by the wsdl parser
parent - The Parent element within which the extensibility element is defined
e - The extensibility elemenet
Returns:
false if there was some error during the extension handling otherwise returns true. If returned false then the WSDL parser can abort if the wsdl extensibility element had required attribute set to true

handleInputOutputExtension

protected boolean handleInputOutputExtension(TWSDLParserContext contextif,
                                             TWSDLExtensible parent,
                                             org.w3c.dom.Element e)

handleFaultExtension

public boolean handleFaultExtension(TWSDLParserContext context,
                                    TWSDLExtensible parent,
                                    org.w3c.dom.Element e)
Description copied from class: TWSDLExtensionHandler
Callback for wsdl:fault

Overrides:
handleFaultExtension in class TWSDLExtensionHandler
Parameters:
context - Parser context that will be passed on by the wsdl parser
parent - The Parent element within which the extensibility element is defined
e - The extensibility elemenet
Returns:
false if there was some error during the extension handling otherwise returns true. If returned false then the WSDL parser can abort if the wsdl extensibility element had required attribute set to true

handleServiceExtension

public boolean handleServiceExtension(TWSDLParserContext context,
                                      TWSDLExtensible parent,
                                      org.w3c.dom.Element e)
Description copied from class: TWSDLExtensionHandler
Callback for wsdl:service

Overrides:
handleServiceExtension in class TWSDLExtensionHandler
Parameters:
context - Parser context that will be passed on by the wsdl parser
parent - The Parent element within which the extensibility element is defined
e - The extensibility elemenet
Returns:
false if there was some error during the extension handling otherwise returns true. If returned false then the WSDL parser can abort if the wsdl extensibility element had required attribute set to true

handlePortExtension

public boolean handlePortExtension(TWSDLParserContext context,
                                   TWSDLExtensible parent,
                                   org.w3c.dom.Element e)
Description copied from class: TWSDLExtensionHandler
Callback for wsdl:port

Overrides:
handlePortExtension in class TWSDLExtensionHandler
Parameters:
context - Parser context that will be passed on by the wsdl parser
parent - The Parent element within which the extensibility element is defined
e - The extensibility elemenet
Returns:
false if there was some error during the extension handling otherwise returns true. If returned false then the WSDL parser can abort if the wsdl extensibility element had required attribute set to true

handlePortTypeExtension

public boolean handlePortTypeExtension(TWSDLParserContext context,
                                       TWSDLExtensible parent,
                                       org.w3c.dom.Element e)
Description copied from class: TWSDLExtensionHandler
Callback for wsdl:portType

Overrides:
handlePortTypeExtension in class TWSDLExtensionHandler
Parameters:
context - Parser context that will be passed on by the wsdl parser
parent - The Parent element within which the extensibility element is defined
e - The extensibility elemenet
Returns:
false if there was some error during the extension handling otherwise returns true. If returned false then the WSDL parser can abort if the wsdl extensibility element had required attribute set to true

getBodyQName

protected javax.xml.namespace.QName getBodyQName()

getHeaderQName

protected javax.xml.namespace.QName getHeaderQName()

getHeaderfaultQName

protected javax.xml.namespace.QName getHeaderfaultQName()

getOperationQName

protected javax.xml.namespace.QName getOperationQName()

getFaultQName

protected javax.xml.namespace.QName getFaultQName()

getAddressQName

protected javax.xml.namespace.QName getAddressQName()

getBindingQName

protected javax.xml.namespace.QName getBindingQName()


Copyright © 2005-2011 Oracle Corporation. All Rights Reserved.