org.jvnet.jax_ws_commons.dime.wsdl
Class DimeWSDLGeneratorExtension

java.lang.Object
  extended by com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtension
      extended by org.jvnet.jax_ws_commons.dime.wsdl.DimeWSDLGeneratorExtension

public class DimeWSDLGeneratorExtension
extends com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtension

WSDLGeneratorExtension that adds DIME information to the generated WSDL. Adds the DIME name space declaration if the web service uses a DimeBindingID. Adds a <dime:message> tag to each binding operation that either has a DimeInput or a DimeOutput method annotation.

Author:
Oliver Treichel

Constructor Summary
DimeWSDLGeneratorExtension()
           
 
Method Summary
 void addBindingOperationInputExtension(com.sun.xml.txw2.TypedXmlWriter input, com.sun.xml.ws.api.model.JavaMethod method)
          Add a <dime:message> tag to the binding operation if the endpoint method has a DimeInput annotation.
 void addBindingOperationOutputExtension(com.sun.xml.txw2.TypedXmlWriter output, com.sun.xml.ws.api.model.JavaMethod method)
          Add a <dime:message> tag to the binding operation if the endpoint method has a DimeOutput annotation.
 void addDefinitionsExtension(com.sun.xml.txw2.TypedXmlWriter definitions)
          Declare extra XML name spaces.
 void start(com.sun.xml.ws.api.wsdl.writer.WSDLGenExtnContext ctx)
          Checks is the endpoint uses a DimeBindingID
 
Methods inherited from class com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtension
addBindingExtension, addBindingOperationExtension, addBindingOperationFaultExtension, addFaultMessageExtension, addInputMessageExtension, addOperationExtension, addOperationFaultExtension, addOperationInputExtension, addOperationOutputExtension, addOutputMessageExtension, addPortExtension, addPortTypeExtension, addServiceExtension, end, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DimeWSDLGeneratorExtension

public DimeWSDLGeneratorExtension()
Method Detail

addBindingOperationInputExtension

public void addBindingOperationInputExtension(com.sun.xml.txw2.TypedXmlWriter input,
                                              com.sun.xml.ws.api.model.JavaMethod method)
Add a <dime:message> tag to the binding operation if the endpoint method has a DimeInput annotation.

Overrides:
addBindingOperationInputExtension in class com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtension
See Also:
WSDLGeneratorExtension.addBindingOperationInputExtension(TypedXmlWriter, JavaMethod)

addBindingOperationOutputExtension

public void addBindingOperationOutputExtension(com.sun.xml.txw2.TypedXmlWriter output,
                                               com.sun.xml.ws.api.model.JavaMethod method)
Add a <dime:message> tag to the binding operation if the endpoint method has a DimeOutput annotation.

Overrides:
addBindingOperationOutputExtension in class com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtension
See Also:
WSDLGeneratorExtension.addBindingOperationOutputExtension(TypedXmlWriter, JavaMethod)

addDefinitionsExtension

public void addDefinitionsExtension(com.sun.xml.txw2.TypedXmlWriter definitions)
Declare extra XML name spaces.

Overrides:
addDefinitionsExtension in class com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtension
See Also:
WSDLGeneratorExtension.addDefinitionsExtension(TypedXmlWriter)

start

public void start(com.sun.xml.ws.api.wsdl.writer.WSDLGenExtnContext ctx)
Checks is the endpoint uses a DimeBindingID

Overrides:
start in class com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtension
See Also:
WSDLGeneratorExtension.start(WSDLGenExtnContext)


Copyright © 2008. All Rights Reserved.