org.apache.axis.wsdl.toJava

Class JavaServiceImplWriter

Implemented Interfaces:
Generator

public class JavaServiceImplWriter
extends JavaClassWriter

This is Wsdl2java's service implementation writer. It writes the Locator.java file.

Field Summary

Fields inherited from class org.apache.axis.wsdl.toJava.JavaClassWriter

className, namespaces, packageName

Fields inherited from class org.apache.axis.wsdl.toJava.JavaWriter

LINE_LENGTH, emitter, type

Constructor Summary

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

Method Summary

protected String
getExtendsText()
Returns "extends org.apache.axis.client.Service ".
protected String
getImplementsText()
Returns "implements ".
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.
protected void
writeConstructors(PrintWriter pw)
write Constructors
protected void
writeFileBody(PrintWriter pw)
Write the body of the service file.
protected void
writeGetPortClass(PrintWriter pw, Vector getPortIfaces, Vector getPortStubClasses, Vector getPortPortNames, boolean printGetPortNotice)
Write the getPort(Class serviceInterfaceWriter) method.
protected void
writeGetPortName(PrintWriter pw, String bindingType, String portName)
Write the get() method.
protected void
writeGetPortNameURL(PrintWriter pw, String bindingType, String portName, String stubClass, String wsddServiceName)
Write the get(URL) method.
protected void
writeGetPortQNameClass(PrintWriter pw, Vector getPortPortNames, Vector getPortPortXmlNames)
Write the getPort(QName portName, Class serviceInterfaceWriter) method.
protected void
writeGetPorts(PrintWriter pw, String namespaceURI, Vector portNames)
Write the getPorts method.
protected void
writeGetServiceName(PrintWriter pw, QName qname)
Write the getServiceName method.
protected void
writeSetEndpointAddress(PrintWriter pw, Vector portNames)
Write the setEndpointAddress(String portName, String newAddress) and setEndpointAddress(QName portName, String newAddress) methods.
protected void
writeSetPortEndpointAddress(PrintWriter pw, String portName)
Write the setEndpointAddress(String) method.
protected void
writeWSDDServiceNameInfo(PrintWriter pw, String wsddServiceName, String portName, String portXmlName)
Write the private WSDD service name field and the public accessors for it.

Methods inherited from class org.apache.axis.wsdl.toJava.JavaClassWriter

getClassModifiers, getClassName, getClassText, getExtendsText, getFileName, getImplementsText, getPackage, registerFile, writeFileFooter, writeFileHeader, writeHeaderComments, writePackage

Methods inherited from class org.apache.axis.wsdl.toJava.JavaWriter

closePrintWriter, generate, getFileName, getJavadocDescriptionPart, getPrintWriter, isFileGenerated, registerFile, verboseMessage, writeComment, writeComment, writeFileBody, writeFileFooter, writeFileHeader

Constructor Details

JavaServiceImplWriter

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

Method Details

getExtendsText

protected String getExtendsText()
Returns "extends org.apache.axis.client.Service ".
Overrides:
getExtendsText in interface JavaClassWriter
Returns:

getImplementsText

protected String getImplementsText()
Returns "implements ".
Overrides:
getImplementsText in interface JavaClassWriter
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)
            throws IOException
Write the body of the service file.
Overrides:
writeFileBody in interface JavaWriter
Parameters:
pw -

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 © 2005 Apache Web Services Project. All Rights Reserved.