java.lang.Object
com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtension
com.sun.xml.ws.policy.jaxws.PolicyWSDLGeneratorExtension
Marshals the contents of a policy map to WSDL.
- Author:
- Jakub Podlesak (jakub.podlesak at sun.com), Fabian Ritzmann
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBindingExtension
(com.sun.xml.txw2.TypedXmlWriter binding) This method is invoked so that extensions to awsdl:binding
element can be generated.void
addBindingOperationExtension
(com.sun.xml.txw2.TypedXmlWriter operation, JavaMethod method) This method is invoked so that extensions to awsdl: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 awsdl: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 awsdl: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 awsdl: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 awsdl: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 awsdl: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 inputwsdl:message
element can be generated.void
addOperationExtension
(com.sun.xml.txw2.TypedXmlWriter operation, JavaMethod method) This method is invoked so that extensions to awsdl: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 awsdl: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 awsdl: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 awsdl: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 outputwsdl:message
element can be generated.void
addPortExtension
(com.sun.xml.txw2.TypedXmlWriter port) This method is invoked so that extensions to awsdl:port
element can be generated.void
addPortTypeExtension
(com.sun.xml.txw2.TypedXmlWriter portType) This method is invoked so that extensions to awsdl:portType
element can be generated.void
addServiceExtension
(com.sun.xml.txw2.TypedXmlWriter service) This method is invoked so that extensions to awsdl:service
element can be generated.void
start
(WSDLGenExtnContext context) Called at the very beginning of the process.Methods inherited from class com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtension
end, start
-
Constructor Details
-
PolicyWSDLGeneratorExtension
public PolicyWSDLGeneratorExtension()
-
-
Method Details
-
start
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 classWSDLGeneratorExtension
- 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 awsdl:definitions
element can be generated.- Overrides:
addDefinitionsExtension
in classWSDLGeneratorExtension
- Parameters:
definitions
- This is thewsdl: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 awsdl:service
element can be generated.- Overrides:
addServiceExtension
in classWSDLGeneratorExtension
- Parameters:
service
- This is thewsdl: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 awsdl:port
element can be generated.- Overrides:
addPortExtension
in classWSDLGeneratorExtension
- 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 awsdl:portType
element can be generated.- Overrides:
addPortTypeExtension
in classWSDLGeneratorExtension
- 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 awsdl:binding
element can be generated.
TODO: Some other information may need to be passed- Overrides:
addBindingExtension
in classWSDLGeneratorExtension
- Parameters:
binding
- This is the wsdl:binding element that the extension can be added to.
-
addOperationExtension
Description copied from class:WSDLGeneratorExtension
This method is invoked so that extensions to awsdl:portType/wsdl:operation
element can be generated.- Overrides:
addOperationExtension
in classWSDLGeneratorExtension
- 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 awsdl:binding/wsdl:operation
element can be generated.- Overrides:
addBindingOperationExtension
in classWSDLGeneratorExtension
- 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
Description copied from class:WSDLGeneratorExtension
This method is invoked so that extensions to an inputwsdl:message
element can be generated.- Overrides:
addInputMessageExtension
in classWSDLGeneratorExtension
- 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
Description copied from class:WSDLGeneratorExtension
This method is invoked so that extensions to an outputwsdl:message
element can be generated.- Overrides:
addOutputMessageExtension
in classWSDLGeneratorExtension
- 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 awsdl:portType/wsdl:operation/wsdl:fault
element can be generated.- Overrides:
addFaultMessageExtension
in classWSDLGeneratorExtension
- 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:operationexception
-CheckedException
that abstracts wsdl:fault
-
addOperationInputExtension
Description copied from class:WSDLGeneratorExtension
This method is invoked so that extensions to awsdl:portType/wsdl:operation/wsdl:input
element can be generated.- Overrides:
addOperationInputExtension
in classWSDLGeneratorExtension
- 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
Description copied from class:WSDLGeneratorExtension
This method is invoked so that extensions to awsdl:portType/wsdl:operation/wsdl:output
element can be generated.- Overrides:
addOperationOutputExtension
in classWSDLGeneratorExtension
- 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 awsdl:portType/wsdl:operation/wsdl:fault
element can be generated.- Overrides:
addOperationFaultExtension
in classWSDLGeneratorExtension
- 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:operationexception
-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 awsdl:binding/wsdl:operation/wsdl:input
element can be generated.- Overrides:
addBindingOperationInputExtension
in classWSDLGeneratorExtension
- 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 awsdl:binding/wsdl:operation/wsdl:output
element can be generated.- Overrides:
addBindingOperationOutputExtension
in classWSDLGeneratorExtension
- 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 awsdl:binding/wsdl:operation/wsdl:fault
element can be generated.- Overrides:
addBindingOperationFaultExtension
in classWSDLGeneratorExtension
- 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
-