Class PolicyWSDLGeneratorExtension

java.lang.Object
com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtension
com.sun.xml.ws.policy.jaxws.PolicyWSDLGeneratorExtension

public class PolicyWSDLGeneratorExtension extends WSDLGeneratorExtension
Marshals the contents of a policy map to WSDL.
Author:
Jakub Podlesak (jakub.podlesak at sun.com), Fabian Ritzmann
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addBindingExtension(com.sun.xml.txw2.TypedXmlWriter binding)
    This method is invoked so that extensions to a wsdl:binding element can be generated.
    void
    addBindingOperationExtension(com.sun.xml.txw2.TypedXmlWriter operation, JavaMethod method)
    This method is invoked so that extensions to a wsdl:binding/wsdl:operation element can be generated.
    void
    addBindingOperationFaultExtension(com.sun.xml.txw2.TypedXmlWriter writer, JavaMethod method, CheckedException exception)
    This method is invoked so that extensions to a wsdl:binding/wsdl:operation/wsdl:fault element can be generated.
    void
    addBindingOperationInputExtension(com.sun.xml.txw2.TypedXmlWriter input, JavaMethod method)
    This method is invoked so that extensions to a wsdl:binding/wsdl:operation/wsdl:input element can be generated.
    void
    addBindingOperationOutputExtension(com.sun.xml.txw2.TypedXmlWriter output, JavaMethod method)
    This method is invoked so that extensions to a wsdl:binding/wsdl:operation/wsdl:output element can be generated.
    void
    addDefinitionsExtension(com.sun.xml.txw2.TypedXmlWriter definitions)
    This method is invoked so that extensions to a wsdl:definitions element can be generated.
    void
    addFaultMessageExtension(com.sun.xml.txw2.TypedXmlWriter message, JavaMethod method, CheckedException exception)
    This method is invoked so that extensions to a wsdl:portType/wsdl:operation/wsdl:fault element can be generated.
    void
    addInputMessageExtension(com.sun.xml.txw2.TypedXmlWriter message, JavaMethod method)
    This method is invoked so that extensions to an input wsdl:message element can be generated.
    void
    addOperationExtension(com.sun.xml.txw2.TypedXmlWriter operation, JavaMethod method)
    This method is invoked so that extensions to a wsdl:portType/wsdl:operation element can be generated.
    void
    addOperationFaultExtension(com.sun.xml.txw2.TypedXmlWriter fault, JavaMethod method, CheckedException exception)
    This method is invoked so that extensions to a wsdl:portType/wsdl:operation/wsdl:fault element can be generated.
    void
    addOperationInputExtension(com.sun.xml.txw2.TypedXmlWriter input, JavaMethod method)
    This method is invoked so that extensions to a wsdl:portType/wsdl:operation/wsdl:input element can be generated.
    void
    addOperationOutputExtension(com.sun.xml.txw2.TypedXmlWriter output, JavaMethod method)
    This method is invoked so that extensions to a wsdl:portType/wsdl:operation/wsdl:output element can be generated.
    void
    addOutputMessageExtension(com.sun.xml.txw2.TypedXmlWriter message, JavaMethod method)
    This method is invoked so that extensions to an output wsdl:message element can be generated.
    void
    addPortExtension(com.sun.xml.txw2.TypedXmlWriter port)
    This method is invoked so that extensions to a wsdl:port element can be generated.
    void
    addPortTypeExtension(com.sun.xml.txw2.TypedXmlWriter portType)
    This method is invoked so that extensions to a wsdl:portType element can be generated.
    void
    addServiceExtension(com.sun.xml.txw2.TypedXmlWriter service)
    This method is invoked so that extensions to a wsdl:service element can be generated.
    void
    Called at the very beginning of the process.

    Methods inherited from class com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtension

    end, start

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PolicyWSDLGeneratorExtension

      public PolicyWSDLGeneratorExtension()
  • Method Details

    • start

      public void start(WSDLGenExtnContext context)
      Description copied from class: WSDLGeneratorExtension
      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.
      Overrides:
      start in class WSDLGeneratorExtension
      Parameters:
      context - Provides the context for the generator extensions
    • addDefinitionsExtension

      public void addDefinitionsExtension(com.sun.xml.txw2.TypedXmlWriter definitions)
      Description copied from class: WSDLGeneratorExtension
      This method is invoked so that extensions to a wsdl:definitions element can be generated.
      Overrides:
      addDefinitionsExtension in class WSDLGeneratorExtension
      Parameters:
      definitions - This is the wsdl:defintions element that the extension can be added to.
    • addServiceExtension

      public void addServiceExtension(com.sun.xml.txw2.TypedXmlWriter service)
      Description copied from class: WSDLGeneratorExtension
      This method is invoked so that extensions to a wsdl:service element can be generated.
      Overrides:
      addServiceExtension in class WSDLGeneratorExtension
      Parameters:
      service - This is the wsdl:service element that the extension can be added to.
    • addPortExtension

      public void addPortExtension(com.sun.xml.txw2.TypedXmlWriter port)
      Description copied from class: WSDLGeneratorExtension
      This method is invoked so that extensions to a wsdl:port element can be generated.
      Overrides:
      addPortExtension in class WSDLGeneratorExtension
      Parameters:
      port - This is the wsdl:port element that the extension can be added to.
    • addPortTypeExtension

      public void addPortTypeExtension(com.sun.xml.txw2.TypedXmlWriter portType)
      Description copied from class: WSDLGeneratorExtension
      This method is invoked so that extensions to a wsdl:portType element can be generated.
      Overrides:
      addPortTypeExtension in class WSDLGeneratorExtension
      Parameters:
      portType - This is the wsdl:portType element that the extension can be added to.
    • addBindingExtension

      public void addBindingExtension(com.sun.xml.txw2.TypedXmlWriter binding)
      Description copied from class: WSDLGeneratorExtension
      This method is invoked so that extensions to a wsdl:binding element can be generated.

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

      public void addOperationExtension(com.sun.xml.txw2.TypedXmlWriter operation, JavaMethod method)
      Description copied from class: WSDLGeneratorExtension
      This method is invoked so that extensions to a wsdl:portType/wsdl:operation element can be generated.
      Overrides:
      addOperationExtension in class WSDLGeneratorExtension
      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(com.sun.xml.txw2.TypedXmlWriter operation, JavaMethod method)
      Description copied from class: WSDLGeneratorExtension
      This method is invoked so that extensions to a wsdl:binding/wsdl:operation element can be generated.
      Overrides:
      addBindingOperationExtension in class WSDLGeneratorExtension
      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(com.sun.xml.txw2.TypedXmlWriter message, JavaMethod method)
      Description copied from class: WSDLGeneratorExtension
      This method is invoked so that extensions to an input wsdl:message element can be generated.
      Overrides:
      addInputMessageExtension in class WSDLGeneratorExtension
      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(com.sun.xml.txw2.TypedXmlWriter message, JavaMethod method)
      Description copied from class: WSDLGeneratorExtension
      This method is invoked so that extensions to an output wsdl:message element can be generated.
      Overrides:
      addOutputMessageExtension in class WSDLGeneratorExtension
      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
    • addFaultMessageExtension

      public void addFaultMessageExtension(com.sun.xml.txw2.TypedXmlWriter message, JavaMethod method, CheckedException exception)
      Description copied from class: WSDLGeneratorExtension
      This method is invoked so that extensions to a wsdl:portType/wsdl:operation/wsdl:fault element can be generated.
      Overrides:
      addFaultMessageExtension in class WSDLGeneratorExtension
      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
      exception - CheckedException that abstracts wsdl:fault
    • addOperationInputExtension

      public void addOperationInputExtension(com.sun.xml.txw2.TypedXmlWriter input, JavaMethod method)
      Description copied from class: WSDLGeneratorExtension
      This method is invoked so that extensions to a wsdl:portType/wsdl:operation/wsdl:input element can be generated.
      Overrides:
      addOperationInputExtension in class WSDLGeneratorExtension
      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(com.sun.xml.txw2.TypedXmlWriter output, JavaMethod method)
      Description copied from class: WSDLGeneratorExtension
      This method is invoked so that extensions to a wsdl:portType/wsdl:operation/wsdl:output element can be generated.
      Overrides:
      addOperationOutputExtension in class WSDLGeneratorExtension
      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
    • addOperationFaultExtension

      public void addOperationFaultExtension(com.sun.xml.txw2.TypedXmlWriter fault, JavaMethod method, CheckedException exception)
      Description copied from class: WSDLGeneratorExtension
      This method is invoked so that extensions to a wsdl:portType/wsdl:operation/wsdl:fault element can be generated.
      Overrides:
      addOperationFaultExtension in class WSDLGeneratorExtension
      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
      exception - CheckedException that abstracts wsdl:fault
    • addBindingOperationInputExtension

      public void addBindingOperationInputExtension(com.sun.xml.txw2.TypedXmlWriter input, JavaMethod method)
      Description copied from class: WSDLGeneratorExtension
      This method is invoked so that extensions to a wsdl:binding/wsdl:operation/wsdl:input element can be generated.
      Overrides:
      addBindingOperationInputExtension in class WSDLGeneratorExtension
      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(com.sun.xml.txw2.TypedXmlWriter output, JavaMethod method)
      Description copied from class: WSDLGeneratorExtension
      This method is invoked so that extensions to a wsdl:binding/wsdl:operation/wsdl:output element can be generated.
      Overrides:
      addBindingOperationOutputExtension in class WSDLGeneratorExtension
      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(com.sun.xml.txw2.TypedXmlWriter writer, JavaMethod method, CheckedException exception)
      Description copied from class: WSDLGeneratorExtension
      This method is invoked so that extensions to a wsdl:binding/wsdl:operation/wsdl:fault element can be generated.
      Overrides:
      addBindingOperationFaultExtension in class WSDLGeneratorExtension
      Parameters:
      writer - 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