public abstract class WSDLGeneratorExtension extends Object
Constructor and Description |
---|
WSDLGeneratorExtension() |
Modifier and Type | Method and 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 fault,
JavaMethod method,
CheckedException ce)
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 ce)
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 ce)
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 |
end(WSDLGenExtnContext ctxt)
Called before writing .
|
void |
start(com.sun.xml.txw2.TypedXmlWriter root,
SEIModel model,
WSBinding binding,
Container container)
Deprecated.
|
void |
start(WSDLGenExtnContext ctxt)
Called at the very beginning of the process.
|
public void start(@NotNull com.sun.xml.txw2.TypedXmlWriter root, @NotNull SEIModel model, @NotNull WSBinding binding, @NotNull Container container)
root
- This is the root element of the generated WSDL.model
- WSDL is being generated from this SEIModel
.binding
- The binding for which we generate WSDL. the binding WSBinding
represents a particular
configuration of JAXWS. This can be typically be overriden bycontainer
- The entry point to the external environment.
If this extension is used at the runtime to generate WSDL, you get a Container
that was given to WSEndpoint.create(java.lang.Class<T>, boolean, com.sun.xml.ws.api.server.Invoker, javax.xml.namespace.QName, javax.xml.namespace.QName, com.sun.xml.ws.api.server.Container, com.sun.xml.ws.api.WSBinding, com.sun.xml.ws.api.server.SDDocumentSource, java.util.Collection<? extends com.sun.xml.ws.api.server.SDDocumentSource>, org.xml.sax.EntityResolver, boolean)
.
TODO: think about tool sidepublic void end(@NotNull WSDLGenExtnContext ctxt)
ctxt
- public void start(WSDLGenExtnContext ctxt)
ctxt
- Provides the context for the generator extensionspublic void addDefinitionsExtension(com.sun.xml.txw2.TypedXmlWriter definitions)
wsdl:definitions
element can be generated.definitions
- This is the wsdl:defintions
element that the extension can be added to.public void addServiceExtension(com.sun.xml.txw2.TypedXmlWriter service)
wsdl:service
element can be generated.service
- This is the wsdl:service
element that the extension can be added to.public void addPortExtension(com.sun.xml.txw2.TypedXmlWriter port)
wsdl:port
element can be generated.port
- This is the wsdl:port element that the extension can be added to.public void addPortTypeExtension(com.sun.xml.txw2.TypedXmlWriter portType)
wsdl:portType
element can be generated.
portType
- This is the wsdl:portType element that the extension can be added to.public void addBindingExtension(com.sun.xml.txw2.TypedXmlWriter binding)
wsdl:binding
element can be generated.
TODO: Some other information may need to be passedbinding
- This is the wsdl:binding element that the extension can be added to.public void addOperationExtension(com.sun.xml.txw2.TypedXmlWriter operation, JavaMethod method)
wsdl:portType/wsdl:operation
element can be generated.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:operationpublic void addBindingOperationExtension(com.sun.xml.txw2.TypedXmlWriter operation, JavaMethod method)
wsdl:binding/wsdl:operation
element can be generated.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:operationpublic void addInputMessageExtension(com.sun.xml.txw2.TypedXmlWriter message, JavaMethod method)
wsdl:message
element can be generated.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:operationpublic void addOutputMessageExtension(com.sun.xml.txw2.TypedXmlWriter message, JavaMethod method)
wsdl:message
element can be generated.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:operationpublic void addOperationInputExtension(com.sun.xml.txw2.TypedXmlWriter input, JavaMethod method)
wsdl:portType/wsdl:operation/wsdl:input
element can be generated.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:operationpublic void addOperationOutputExtension(com.sun.xml.txw2.TypedXmlWriter output, JavaMethod method)
wsdl:portType/wsdl:operation/wsdl:output
element can be generated.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:operationpublic void addBindingOperationInputExtension(com.sun.xml.txw2.TypedXmlWriter input, JavaMethod method)
wsdl:binding/wsdl:operation/wsdl:input
element can be generated.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:operationpublic void addBindingOperationOutputExtension(com.sun.xml.txw2.TypedXmlWriter output, JavaMethod method)
wsdl:binding/wsdl:operation/wsdl:output
element can be generated.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:operationpublic void addBindingOperationFaultExtension(com.sun.xml.txw2.TypedXmlWriter fault, JavaMethod method, CheckedException ce)
wsdl:binding/wsdl:operation/wsdl:fault
element can be generated.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:operationpublic void addFaultMessageExtension(com.sun.xml.txw2.TypedXmlWriter message, JavaMethod method, CheckedException ce)
wsdl:portType/wsdl:operation/wsdl:fault
element can be generated.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:operationce
- CheckedException
that abstracts wsdl:faultpublic void addOperationFaultExtension(com.sun.xml.txw2.TypedXmlWriter fault, JavaMethod method, CheckedException ce)
wsdl:portType/wsdl:operation/wsdl:fault
element can be generated.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:operationce
- CheckedException
that abstracts wsdl:faultCopyright © 2015 Oracle Corporation. All rights reserved.