Class WSDLGeneratorExtension

    • Constructor Detail

      • WSDLGeneratorExtension

        public WSDLGeneratorExtension()
    • Method Detail

      • end

        public void end​(@NotNull
                        WSDLGenExtnContext ctxt)
        Called before writing </wsdl:defintions>.
        Parameters:
        ctxt -
      • start

        public void start​(WSDLGenExtnContext ctxt)
        Called at the very beginning of the process.
        This method is invoked so that the root element can be manipulated before any tags have been written. This allows to set e.g. namespace prefixes.
        Another purpose of this method is to let extensions know what model we are generating a WSDL for.
        Parameters:
        ctxt - Provides the context for the generator extensions
      • addDefinitionsExtension

        public void addDefinitionsExtension​(TypedXmlWriter definitions)
        This method is invoked so that extensions to a wsdl:definitions element can be generated.
        Parameters:
        definitions - This is the wsdl:defintions element that the extension can be added to.
      • addServiceExtension

        public void addServiceExtension​(TypedXmlWriter service)
        This method is invoked so that extensions to a wsdl:service element can be generated.
        Parameters:
        service - This is the wsdl:service element that the extension can be added to.
      • addPortExtension

        public void addPortExtension​(TypedXmlWriter port)
        This method is invoked so that extensions to a wsdl:port element can be generated.
        Parameters:
        port - This is the wsdl:port element that the extension can be added to.
      • addPortTypeExtension

        public void addPortTypeExtension​(TypedXmlWriter portType)
        This method is invoked so that extensions to a wsdl:portType element can be generated.
        Parameters:
        portType - This is the wsdl:portType element that the extension can be added to.
      • addBindingExtension

        public void addBindingExtension​(TypedXmlWriter binding)
        This method is invoked so that extensions to a wsdl:binding element can be generated.

        TODO: Some other information may need to be passed
        Parameters:
        binding - This is the wsdl:binding element that the extension can be added to.
      • addOperationExtension

        public void addOperationExtension​(TypedXmlWriter operation,
                                          JavaMethod method)
        This method is invoked so that extensions to a wsdl:portType/wsdl:operation element can be generated.
        Parameters:
        operation - This is the wsdl:portType/wsdl:operation element that the extension can be added to.
        method - JavaMethod which captures all the information to generate wsdl:portType/wsdl:operation
      • addBindingOperationExtension

        public void addBindingOperationExtension​(TypedXmlWriter operation,
                                                 JavaMethod method)
        This method is invoked so that extensions to a wsdl:binding/wsdl:operation element can be generated.
        Parameters:
        operation - This is the wsdl:binding/wsdl:operation element that the extension can be added to.
        method - JavaMethod which captures all the information to generate wsdl:portType/wsdl:operation
      • addInputMessageExtension

        public void addInputMessageExtension​(TypedXmlWriter message,
                                             JavaMethod method)
        This method is invoked so that extensions to an input wsdl:message element can be generated.
        Parameters:
        message - This is the input wsdl:message element that the extension can be added to.
        method - JavaMethod which captures all the information to generate wsdl:portType/wsdl:operation
      • addOutputMessageExtension

        public void addOutputMessageExtension​(TypedXmlWriter message,
                                              JavaMethod method)
        This method is invoked so that extensions to an output wsdl:message element can be generated.
        Parameters:
        message - This is the output wsdl:message element that the extension can be added to.
        method - JavaMethod which captures all the information to generate wsdl:portType/wsdl:operation
      • addOperationInputExtension

        public void addOperationInputExtension​(TypedXmlWriter input,
                                               JavaMethod method)
        This method is invoked so that extensions to a wsdl:portType/wsdl:operation/wsdl:input element can be generated.
        Parameters:
        input - This is the wsdl:portType/wsdl:operation/wsdl:input element that the extension can be added to.
        method - JavaMethod which captures all the information to generate wsdl:portType/wsdl:operation
      • addOperationOutputExtension

        public void addOperationOutputExtension​(TypedXmlWriter output,
                                                JavaMethod method)
        This method is invoked so that extensions to a wsdl:portType/wsdl:operation/wsdl:output element can be generated.
        Parameters:
        output - This is the wsdl:portType/wsdl:operation/wsdl:output element that the extension can be added to.
        method - JavaMethod which captures all the information to generate wsdl:portType/wsdl:operation
      • addBindingOperationInputExtension

        public void addBindingOperationInputExtension​(TypedXmlWriter input,
                                                      JavaMethod method)
        This method is invoked so that extensions to a wsdl:binding/wsdl:operation/wsdl:input element can be generated.
        Parameters:
        input - This is the wsdl:binding/wsdl:operation/wsdl:input element that the extension can be added to.
        method - JavaMethod which captures all the information to generate wsdl:portType/wsdl:operation
      • addBindingOperationOutputExtension

        public void addBindingOperationOutputExtension​(TypedXmlWriter output,
                                                       JavaMethod method)
        This method is invoked so that extensions to a wsdl:binding/wsdl:operation/wsdl:output element can be generated.
        Parameters:
        output - This is the wsdl:binding/wsdl:operation/wsdl:output element that the extension can be added to.
        method - JavaMethod which captures all the information to generate wsdl:portType/wsdl:operation
      • addBindingOperationFaultExtension

        public void addBindingOperationFaultExtension​(TypedXmlWriter fault,
                                                      JavaMethod method,
                                                      CheckedException ce)
        This method is invoked so that extensions to a wsdl:binding/wsdl:operation/wsdl:fault element can be generated.
        Parameters:
        fault - This is the wsdl:binding/wsdl:operation/wsdl:fault or wsdl:portType/wsdl:output/wsdl:operation/wsdl:fault element that the extension can be added to.
        method - JavaMethod which captures all the information to generate wsdl:portType/wsdl:operation
      • addFaultMessageExtension

        public void addFaultMessageExtension​(TypedXmlWriter message,
                                             JavaMethod method,
                                             CheckedException ce)
        This method is invoked so that extensions to a wsdl:portType/wsdl:operation/wsdl:fault element can be generated.
        Parameters:
        message - This is the fault wsdl:message element that the extension can be added to.
        method - JavaMethod which captures all the information to generate wsdl:portType/wsdl:operation
        ce - CheckedException that abstracts wsdl:fault
      • addOperationFaultExtension

        public void addOperationFaultExtension​(TypedXmlWriter fault,
                                               JavaMethod method,
                                               CheckedException ce)
        This method is invoked so that extensions to a wsdl:portType/wsdl:operation/wsdl:fault element can be generated.
        Parameters:
        fault - This is the wsdl:portType/wsdl:operation/wsdl:fault element that the extension can be added to.
        method - JavaMethod which captures all the information to generate wsdl:portType/wsdl:operation
        ce - CheckedException that abstracts wsdl:fault