org.apache.axis.wsdl.toJava

Class JavaServiceImplWriter

public class JavaServiceImplWriter extends JavaClassWriter

This is Wsdl2java's service implementation writer. It writes the Locator.java file.
Constructor Summary
protected JavaServiceImplWriter(Emitter emitter, ServiceEntry sEntry, SymbolTable symbolTable)
Constructor.
Method Summary
protected StringgetExtendsText()
Returns "extends org.apache.axis.client.Service ".
protected StringgetImplementsText()
Returns "implements ".
protected voidwriteAddressInfo(PrintWriter pw, String portName, String address, Port p)
Write the private address field for this port and the public getter for it.
protected voidwriteConstructors(PrintWriter pw)
write Constructors
protected voidwriteFileBody(PrintWriter pw)
Write the body of the service file.
protected voidwriteGetPortClass(PrintWriter pw, Vector getPortIfaces, Vector getPortStubClasses, Vector getPortPortNames, boolean printGetPortNotice)
Write the getPort(Class serviceInterfaceWriter) method.
protected voidwriteGetPortName(PrintWriter pw, String bindingType, String portName)
Write the get() method.
protected voidwriteGetPortNameURL(PrintWriter pw, String bindingType, String portName, String stubClass, String wsddServiceName)
Write the get(URL) method.
protected voidwriteGetPortQNameClass(PrintWriter pw, Vector getPortPortNames, Vector getPortPortXmlNames)
Write the getPort(QName portName, Class serviceInterfaceWriter) method.
protected voidwriteGetPorts(PrintWriter pw, String namespaceURI, Vector portNames)
Write the getPorts method.
protected voidwriteGetServiceName(PrintWriter pw, QName qname)
Write the getServiceName method.
protected voidwriteSetEndpointAddress(PrintWriter pw, Vector portNames)
Write the setEndpointAddress(String portName, String newAddress) and setEndpointAddress(QName portName, String newAddress) methods.
protected voidwriteSetPortEndpointAddress(PrintWriter pw, String portName)
Write the setEndpointAddress(String) method.
protected voidwriteWSDDServiceNameInfo(PrintWriter pw, String wsddServiceName, String portName, String portXmlName)
Write the private WSDD service name field and the public accessors for it.

Constructor Detail

JavaServiceImplWriter

protected JavaServiceImplWriter(Emitter emitter, ServiceEntry sEntry, SymbolTable symbolTable)
Constructor.

Parameters: emitter sEntry symbolTable

Method Detail

getExtendsText

protected String getExtendsText()
Returns "extends org.apache.axis.client.Service ".

Returns:

getImplementsText

protected String getImplementsText()
Returns "implements ".

Returns:

writeAddressInfo

protected void writeAddressInfo(PrintWriter pw, String portName, String address, Port p)
Write the private address field for this port and the public getter for it.

Parameters: pw portName address p

writeConstructors

protected void writeConstructors(PrintWriter pw)
write Constructors

Parameters: pw

writeFileBody

protected void writeFileBody(PrintWriter pw)
Write the body of the service file.

Parameters: pw

Throws: IOException

writeGetPortClass

protected void writeGetPortClass(PrintWriter pw, Vector getPortIfaces, Vector getPortStubClasses, Vector getPortPortNames, boolean printGetPortNotice)
Write the getPort(Class serviceInterfaceWriter) method.

Parameters: pw getPortIfaces getPortStubClasses getPortPortNames printGetPortNotice

writeGetPortName

protected void writeGetPortName(PrintWriter pw, String bindingType, String portName)
Write the get() method.

Parameters: pw bindingType portName

writeGetPortNameURL

protected void writeGetPortNameURL(PrintWriter pw, String bindingType, String portName, String stubClass, String wsddServiceName)
Write the get(URL) method.

Parameters: pw bindingType portName stubClass wsddServiceName

writeGetPortQNameClass

protected void writeGetPortQNameClass(PrintWriter pw, Vector getPortPortNames, Vector getPortPortXmlNames)
Write the getPort(QName portName, Class serviceInterfaceWriter) method.

Parameters: pw getPortPortNames

writeGetPorts

protected void writeGetPorts(PrintWriter pw, String namespaceURI, Vector portNames)
Write the getPorts method.

Parameters: pw portNames

writeGetServiceName

protected void writeGetServiceName(PrintWriter pw, QName qname)
Write the getServiceName method.

Parameters: pw qname

writeSetEndpointAddress

protected void writeSetEndpointAddress(PrintWriter pw, Vector portNames)
Write the setEndpointAddress(String portName, String newAddress) and setEndpointAddress(QName portName, String newAddress) methods.

Parameters: pw portNames

writeSetPortEndpointAddress

protected void writeSetPortEndpointAddress(PrintWriter pw, String portName)
Write the setEndpointAddress(String) method.

Parameters: pw portName

writeWSDDServiceNameInfo

protected void writeWSDDServiceNameInfo(PrintWriter pw, String wsddServiceName, String portName, String portXmlName)
Write the private WSDD service name field and the public accessors for it.

Parameters: pw wsddServiceName portName

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.