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
-
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 PolicyWSDLGeneratorExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBindingExtension(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.voidaddPortExtension(TypedXmlWriter port)This 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
-
-
-
-
Method Detail
-
start
public void start(WSDLGenExtnContext context)
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
public void addDefinitionsExtension(TypedXmlWriter definitions)
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
public void addServiceExtension(TypedXmlWriter service)
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
public void addPortExtension(TypedXmlWriter port)
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
public void addPortTypeExtension(TypedXmlWriter portType)
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
public void addBindingExtension(TypedXmlWriter binding)
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
public void addOperationExtension(TypedXmlWriter operation, JavaMethod method)
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
public void addBindingOperationExtension(TypedXmlWriter operation, JavaMethod method)
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
public void addInputMessageExtension(TypedXmlWriter message, JavaMethod method)
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
public void addOutputMessageExtension(TypedXmlWriter message, JavaMethod method)
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
public void addOperationInputExtension(TypedXmlWriter input, JavaMethod method)
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
public void addOperationOutputExtension(TypedXmlWriter output, JavaMethod method)
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
public void addBindingOperationInputExtension(TypedXmlWriter input, JavaMethod method)
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
public void addBindingOperationOutputExtension(TypedXmlWriter output, JavaMethod method)
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
-
-