Package com.sun.xml.ws.policy.jaxws
Class PolicyWSDLGeneratorExtension
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBindingExtension(TypedXmlWriter binding) This method is invoked so that extensions to awsdl:bindingelement can be generated.voidaddBindingOperationExtension(TypedXmlWriter operation, JavaMethod method) This method is invoked so that extensions to awsdl:binding/wsdl:operationelement can be generated.voidaddBindingOperationFaultExtension(TypedXmlWriter writer, JavaMethod method, CheckedException exception) This method is invoked so that extensions to awsdl:binding/wsdl:operation/wsdl:faultelement can be generated.voidaddBindingOperationInputExtension(TypedXmlWriter input, JavaMethod method) This method is invoked so that extensions to awsdl:binding/wsdl:operation/wsdl:inputelement can be generated.voidaddBindingOperationOutputExtension(TypedXmlWriter output, JavaMethod method) This method is invoked so that extensions to awsdl:binding/wsdl:operation/wsdl:outputelement can be generated.voidaddDefinitionsExtension(TypedXmlWriter definitions) This method is invoked so that extensions to awsdl:definitionselement can be generated.voidaddFaultMessageExtension(TypedXmlWriter message, JavaMethod method, CheckedException exception) This method is invoked so that extensions to awsdl:portType/wsdl:operation/wsdl:faultelement can be generated.voidaddInputMessageExtension(TypedXmlWriter message, JavaMethod method) This method is invoked so that extensions to an inputwsdl:messageelement can be generated.voidaddOperationExtension(TypedXmlWriter operation, JavaMethod method) This method is invoked so that extensions to awsdl:portType/wsdl:operationelement can be generated.voidaddOperationFaultExtension(TypedXmlWriter fault, JavaMethod method, CheckedException exception) This method is invoked so that extensions to awsdl:portType/wsdl:operation/wsdl:faultelement can be generated.voidaddOperationInputExtension(TypedXmlWriter input, JavaMethod method) This method is invoked so that extensions to awsdl:portType/wsdl:operation/wsdl:inputelement can be generated.voidaddOperationOutputExtension(TypedXmlWriter output, JavaMethod method) This method is invoked so that extensions to awsdl:portType/wsdl:operation/wsdl:outputelement can be generated.voidaddOutputMessageExtension(TypedXmlWriter message, JavaMethod method) This method is invoked so that extensions to an outputwsdl:messageelement can be generated.voidThis method is invoked so that extensions to awsdl:portelement can be generated.voidaddPortTypeExtension(TypedXmlWriter portType) This method is invoked so that extensions to awsdl:portTypeelement can be generated.voidaddServiceExtension(TypedXmlWriter service) This method is invoked so that extensions to awsdl:serviceelement can be generated.voidstart(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:WSDLGeneratorExtensionCalled 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:
startin classWSDLGeneratorExtension- Parameters:
context- Provides the context for the generator extensions
-
addDefinitionsExtension
Description copied from class:WSDLGeneratorExtensionThis method is invoked so that extensions to awsdl:definitionselement can be generated.- Overrides:
addDefinitionsExtensionin classWSDLGeneratorExtension- Parameters:
definitions- This is thewsdl:defintionselement that the extension can be added to.
-
addServiceExtension
Description copied from class:WSDLGeneratorExtensionThis method is invoked so that extensions to awsdl:serviceelement can be generated.- Overrides:
addServiceExtensionin classWSDLGeneratorExtension- Parameters:
service- This is thewsdl:serviceelement that the extension can be added to.
-
addPortExtension
Description copied from class:WSDLGeneratorExtensionThis method is invoked so that extensions to awsdl:portelement can be generated.- Overrides:
addPortExtensionin classWSDLGeneratorExtension- Parameters:
port- This is the wsdl:port element that the extension can be added to.
-
addPortTypeExtension
Description copied from class:WSDLGeneratorExtensionThis method is invoked so that extensions to awsdl:portTypeelement can be generated.- Overrides:
addPortTypeExtensionin classWSDLGeneratorExtension- Parameters:
portType- This is the wsdl:portType element that the extension can be added to.
-
addBindingExtension
Description copied from class:WSDLGeneratorExtensionThis method is invoked so that extensions to awsdl:bindingelement can be generated.
TODO: Some other information may need to be passed- Overrides:
addBindingExtensionin classWSDLGeneratorExtension- Parameters:
binding- This is the wsdl:binding element that the extension can be added to.
-
addOperationExtension
Description copied from class:WSDLGeneratorExtensionThis method is invoked so that extensions to awsdl:portType/wsdl:operationelement can be generated.- Overrides:
addOperationExtensionin classWSDLGeneratorExtension- Parameters:
operation- This is the wsdl:portType/wsdl:operation element that the extension can be added to.method-JavaMethodwhich captures all the information to generate wsdl:portType/wsdl:operation
-
addBindingOperationExtension
Description copied from class:WSDLGeneratorExtensionThis method is invoked so that extensions to awsdl:binding/wsdl:operationelement can be generated.- Overrides:
addBindingOperationExtensionin classWSDLGeneratorExtension- Parameters:
operation- This is the wsdl:binding/wsdl:operation element that the extension can be added to.method-JavaMethodwhich captures all the information to generate wsdl:portType/wsdl:operation
-
addInputMessageExtension
Description copied from class:WSDLGeneratorExtensionThis method is invoked so that extensions to an inputwsdl:messageelement can be generated.- Overrides:
addInputMessageExtensionin classWSDLGeneratorExtension- Parameters:
message- This is the input wsdl:message element that the extension can be added to.method-JavaMethodwhich captures all the information to generate wsdl:portType/wsdl:operation
-
addOutputMessageExtension
Description copied from class:WSDLGeneratorExtensionThis method is invoked so that extensions to an outputwsdl:messageelement can be generated.- Overrides:
addOutputMessageExtensionin classWSDLGeneratorExtension- Parameters:
message- This is the output wsdl:message element that the extension can be added to.method-JavaMethodwhich captures all the information to generate wsdl:portType/wsdl:operation
-
addFaultMessageExtension
public void addFaultMessageExtension(TypedXmlWriter message, JavaMethod method, CheckedException exception) Description copied from class:WSDLGeneratorExtensionThis method is invoked so that extensions to awsdl:portType/wsdl:operation/wsdl:faultelement can be generated.- Overrides:
addFaultMessageExtensionin classWSDLGeneratorExtension- Parameters:
message- This is the fault wsdl:message element that the extension can be added to.method-JavaMethodwhich captures all the information to generate wsdl:portType/wsdl:operationexception-CheckedExceptionthat abstracts wsdl:fault
-
addOperationInputExtension
Description copied from class:WSDLGeneratorExtensionThis method is invoked so that extensions to awsdl:portType/wsdl:operation/wsdl:inputelement can be generated.- Overrides:
addOperationInputExtensionin classWSDLGeneratorExtension- Parameters:
input- This is the wsdl:portType/wsdl:operation/wsdl:input element that the extension can be added to.method-JavaMethodwhich captures all the information to generate wsdl:portType/wsdl:operation
-
addOperationOutputExtension
Description copied from class:WSDLGeneratorExtensionThis method is invoked so that extensions to awsdl:portType/wsdl:operation/wsdl:outputelement can be generated.- Overrides:
addOperationOutputExtensionin classWSDLGeneratorExtension- Parameters:
output- This is the wsdl:portType/wsdl:operation/wsdl:output element that the extension can be added to.method-JavaMethodwhich captures all the information to generate wsdl:portType/wsdl:operation
-
addOperationFaultExtension
public void addOperationFaultExtension(TypedXmlWriter fault, JavaMethod method, CheckedException exception) Description copied from class:WSDLGeneratorExtensionThis method is invoked so that extensions to awsdl:portType/wsdl:operation/wsdl:faultelement can be generated.- Overrides:
addOperationFaultExtensionin classWSDLGeneratorExtension- Parameters:
fault- This is the wsdl:portType/wsdl:operation/wsdl:fault element that the extension can be added to.method-JavaMethodwhich captures all the information to generate wsdl:portType/wsdl:operationexception-CheckedExceptionthat abstracts wsdl:fault
-
addBindingOperationInputExtension
Description copied from class:WSDLGeneratorExtensionThis method is invoked so that extensions to awsdl:binding/wsdl:operation/wsdl:inputelement can be generated.- Overrides:
addBindingOperationInputExtensionin classWSDLGeneratorExtension- Parameters:
input- This is the wsdl:binding/wsdl:operation/wsdl:input element that the extension can be added to.method-JavaMethodwhich captures all the information to generate wsdl:portType/wsdl:operation
-
addBindingOperationOutputExtension
Description copied from class:WSDLGeneratorExtensionThis method is invoked so that extensions to awsdl:binding/wsdl:operation/wsdl:outputelement can be generated.- Overrides:
addBindingOperationOutputExtensionin classWSDLGeneratorExtension- Parameters:
output- This is the wsdl:binding/wsdl:operation/wsdl:output element that the extension can be added to.method-JavaMethodwhich captures all the information to generate wsdl:portType/wsdl:operation
-
addBindingOperationFaultExtension
public void addBindingOperationFaultExtension(TypedXmlWriter writer, JavaMethod method, CheckedException exception) Description copied from class:WSDLGeneratorExtensionThis method is invoked so that extensions to awsdl:binding/wsdl:operation/wsdl:faultelement can be generated.- Overrides:
addBindingOperationFaultExtensionin 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-JavaMethodwhich captures all the information to generate wsdl:portType/wsdl:operation
-