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

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.MIMEExtensionHandler

public class MIMEExtensionHandler
extends AbstractExtensionHandler

The MIME extension handler for WSDL.


Constructor Summary
MIMEExtensionHandler(Map<String,AbstractExtensionHandler> extensionHandlerMap)
           
 
Method Summary
 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.
 String getNamespaceURI()
          Gives the namespace of an extensibility element.
protected  boolean handleInputOutputExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e)
           
protected  boolean handleMIMEPartExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e)
          Callback for wsdl:mime
protected  MIMEContent parseMIMEContent(TWSDLParserContext context, Element e)
           
protected  MIMEXml parseMIMEXml(TWSDLParserContext context, Element e)
           
 
Methods inherited from class com.sun.tools.ws.wsdl.parser.AbstractExtensionHandler
getExtensionHandlers
 
Methods inherited from class com.sun.tools.ws.api.wsdl.TWSDLExtensionHandler
handleBindingExtension, handleDefinitionsExtension, handleFaultExtension, handleInputExtension, handleOperationExtension, handleOutputExtension, handlePortExtension, handlePortTypeExtension, handleServiceExtension, handleTypesExtension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MIMEExtensionHandler

public MIMEExtensionHandler(Map<String,AbstractExtensionHandler> extensionHandlerMap)
Method Detail

getNamespaceURI

public 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

doHandleExtension

public boolean doHandleExtension(TWSDLParserContext context,
                                 TWSDLExtensible parent,
                                 Element e)
Description copied from class: AbstractExtensionHandler
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 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 context,
                                             TWSDLExtensible parent,
                                             Element e)

handleMIMEPartExtension

protected boolean handleMIMEPartExtension(TWSDLParserContext context,
                                          TWSDLExtensible parent,
                                          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

parseMIMEContent

protected MIMEContent parseMIMEContent(TWSDLParserContext context,
                                       Element e)

parseMIMEXml

protected MIMEXml parseMIMEXml(TWSDLParserContext context,
                               Element e)