Package org.apache.axis.wsdl.toJava
Class JavaServiceImplWriter
java.lang.Object
org.apache.axis.wsdl.toJava.JavaWriter
org.apache.axis.wsdl.toJava.JavaClassWriter
org.apache.axis.wsdl.toJava.JavaServiceImplWriter
- All Implemented Interfaces:
Generator
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
emitter, LINE_LENGTH, type
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JavaServiceImplWriter
(Emitter emitter, ServiceEntry sEntry, SymbolTable symbolTable) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns "extends org.apache.axis.client.Service ".protected String
Returns "implements". protected void
writeAddressInfo
(PrintWriter pw, String portName, String address, javax.wsdl.Port p) Write the private address field for this port and the public getter for it.protected void
write Constructorsprotected void
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, getFileName, getPackage, registerFile, writeFileFooter, writeFileHeader, writeHeaderComments, writePackage
Methods inherited from class org.apache.axis.wsdl.toJava.JavaWriter
closePrintWriter, generate, getJavadocDescriptionPart, getPrintWriter, isFileGenerated, verboseMessage, writeComment, writeComment
-
Constructor Details
-
JavaServiceImplWriter
Constructor.- Parameters:
emitter
-sEntry
-symbolTable
-
-
-
Method Details
-
getExtendsText
Returns "extends org.apache.axis.client.Service ".- Overrides:
getExtendsText
in classJavaClassWriter
- Returns:
-
getImplementsText
Returns "implements". - Overrides:
getImplementsText
in classJavaClassWriter
- Returns:
-
writeFileBody
Write the body of the service file.- Specified by:
writeFileBody
in classJavaWriter
- Parameters:
pw
-- Throws:
IOException
-
writeConstructors
write Constructors- Parameters:
pw
-
-
writeAddressInfo
Write the private address field for this port and the public getter for it.- Parameters:
pw
-portName
-address
-p
-
-
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
-
-
writeGetPortName
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
-
-
writeSetPortEndpointAddress
Write the setEndpointAddress(String) method. - Parameters:
pw
-portName
-
-
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
-
-
writeGetPortQNameClass
protected void writeGetPortQNameClass(PrintWriter pw, Vector getPortPortNames, Vector getPortPortXmlNames) Write the getPort(QName portName, Class serviceInterfaceWriter) method.- Parameters:
pw
-getPortPortNames
-
-
writeGetServiceName
Write the getServiceName method.- Parameters:
pw
-qname
-
-
writeGetPorts
Write the getPorts method.- Parameters:
pw
-portNames
-
-
writeSetEndpointAddress
Write the setEndpointAddress(String portName, String newAddress) and setEndpointAddress(QName portName, String newAddress) methods.- Parameters:
pw
-portNames
-
-