Class Policy15ExtensionHandler

java.lang.Object
com.sun.tools.ws.api.wsdl.TWSDLExtensionHandler
com.sun.tools.ws.wsdl.parser.Policy15ExtensionHandler

public class Policy15ExtensionHandler extends TWSDLExtensionHandler
Policies are evaluated at runtime. This class makes sure that wscompile/wsimport ignores all policy elements at tooltime.
Author:
Jakub Podlesak (jakub.podlesak at sun.com), Fabian Ritzmann
  • Constructor Details

    • Policy15ExtensionHandler

      public Policy15ExtensionHandler()
      Default constructor.
  • Method Details

    • 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
    • handlePortTypeExtension

      public boolean handlePortTypeExtension(TWSDLParserContext context, TWSDLExtensible parent, 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
    • handleDefinitionsExtension

      public boolean handleDefinitionsExtension(TWSDLParserContext context, TWSDLExtensible parent, 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
    • handleBindingExtension

      public boolean handleBindingExtension(TWSDLParserContext context, TWSDLExtensible parent, 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, 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, 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, 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
    • handleFaultExtension

      public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, 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, 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, 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