Package com.sun.tools.ws.wsdl.parser
Class AbstractExtensionHandler
- java.lang.Object
-
- com.sun.tools.ws.api.wsdl.TWSDLExtensionHandler
-
- com.sun.tools.ws.wsdl.parser.AbstractExtensionHandler
-
- Direct Known Subclasses:
HTTPExtensionHandler
,JAXWSBindingExtensionHandler
,MIMEExtensionHandler
,SOAPExtensionHandler
,W3CAddressingExtensionHandler
,W3CAddressingMetadataExtensionHandler
public abstract class AbstractExtensionHandler extends TWSDLExtensionHandler
An abstract implementation class ofTWSDLExtensionHandler
- Author:
- Vivek Pandey
-
-
Constructor Summary
Constructors Constructor Description AbstractExtensionHandler(Map<String,AbstractExtensionHandler> extensionHandlerMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doHandleExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e)
Callback that gets called by the WSDL parser or any other extension handler on finding an extensibility element that it can't understand.Map<String,AbstractExtensionHandler>
getExtensionHandlers()
protected boolean
handleMIMEPartExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e)
Callback forwsdl:mime
-
Methods inherited from class com.sun.tools.ws.api.wsdl.TWSDLExtensionHandler
getNamespaceURI, handleBindingExtension, handleDefinitionsExtension, handleFaultExtension, handleInputExtension, handleOperationExtension, handleOutputExtension, handlePortExtension, handlePortTypeExtension, handleServiceExtension, handleTypesExtension
-
-
-
-
Constructor Detail
-
AbstractExtensionHandler
public AbstractExtensionHandler(Map<String,AbstractExtensionHandler> extensionHandlerMap)
-
-
Method Detail
-
getExtensionHandlers
public Map<String,AbstractExtensionHandler> getExtensionHandlers()
-
doHandleExtension
public boolean doHandleExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e)
Callback that gets called by the WSDL parser or any other extension handler on finding an extensibility element that it can't understand.- Overrides:
doHandleExtension
in classTWSDLExtensionHandler
- Parameters:
parent
- The Parent element within which the extensibility element is definede
- The extensibility elemenetcontext
- Parser context that will be passed on by the wsdl parser- 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, Element e)
Callback forwsdl:mime
- Parameters:
context
- Parser context that will be passed on by the wsdl parserparent
- The Parent element within which the extensibility element is definede
- 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
-
-