com.sun.tools.ws.api.wsdl
Class TWSDLExtensionHandler

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

public abstract class TWSDLExtensionHandler
extends Object

JAXWS WSDL parser WSDLParser will call an TWSDLExtensionHandler registered with it for the WSDL extensibility elements thats not already defined in the WSDL 1.1 spec, such as SOAP or MIME.


Constructor Summary
TWSDLExtensionHandler()
           
 
Method Summary
 boolean doHandleExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e)
          This interface is called during WSDL parsing on detecting any wsdl extension.
 String getNamespaceURI()
          Gives the namespace of an extensibility element.
 boolean handleBindingExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e)
          Callback for wsdl:binding
 boolean handleDefinitionsExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e)
          Callback for wsdl:definitions
 boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e)
          Callback for wsdl:fault
 boolean handleInputExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e)
          Callback for wsdl:input
 boolean handleOperationExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e)
          Callback for wsdl:portType/wsdl:operation.
 boolean handleOutputExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e)
          Callback for wsdl:output
 boolean handlePortExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e)
          Callback for wsdl:port
 boolean handlePortTypeExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e)
          Callback for wsdl:portType
 boolean handleServiceExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e)
          Callback for wsdl:service
 boolean handleTypesExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e)
          Callback for wsdl:type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TWSDLExtensionHandler

public TWSDLExtensionHandler()
Method Detail

getNamespaceURI

public String getNamespaceURI()
Gives the namespace of an extensibility element.

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


doHandleExtension

public boolean doHandleExtension(TWSDLParserContext context,
                                 TWSDLExtensible parent,
                                 Element e)
This interface is called during WSDL parsing on detecting any wsdl extension.

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,
                                       Element e)
Callback for wsdl:portType

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

handleDefinitionsExtension

public boolean handleDefinitionsExtension(TWSDLParserContext context,
                                          TWSDLExtensible parent,
                                          Element e)
Callback for wsdl:definitions

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,
                                    Element e)
Callback for wsdl:type

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

handleBindingExtension

public boolean handleBindingExtension(TWSDLParserContext context,
                                      TWSDLExtensible parent,
                                      Element e)
Callback for wsdl:binding

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,
                                        Element e)
Callback for wsdl:portType/wsdl:operation.

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,
                                    Element e)
Callback for wsdl:input

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,
                                     Element e)
Callback for wsdl:output

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

handleFaultExtension

public boolean handleFaultExtension(TWSDLParserContext context,
                                    TWSDLExtensible parent,
                                    Element e)
Callback for wsdl:fault

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,
                                      Element e)
Callback for wsdl:service

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,
                                   Element e)
Callback for wsdl:port

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