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, packageNameFields inherited from class org.apache.axis.wsdl.toJava.JavaWriter
emitter, LINE_LENGTH, type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJavaServiceImplWriter(Emitter emitter, ServiceEntry sEntry, SymbolTable symbolTable) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturns "extends org.apache.axis.client.Service ".protected StringReturns "implements". protected voidwriteAddressInfo(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 voidwrite Constructorsprotected voidWrite 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.Methods inherited from class org.apache.axis.wsdl.toJava.JavaClassWriter
getClassModifiers, getClassName, getClassText, getFileName, getPackage, registerFile, writeFileFooter, writeFileHeader, writeHeaderComments, writePackageMethods 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:
getExtendsTextin classJavaClassWriter- Returns:
-
getImplementsText
Returns "implements". - Overrides:
getImplementsTextin classJavaClassWriter- Returns:
-
writeFileBody
Write the body of the service file.- Specified by:
writeFileBodyin 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-
-