站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档

JavaServiceImplWriter (JAXRPC API) - JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档


org.apache.axis.wsdl.toJava
Class JavaServiceImplWriter

java.lang.Object
  extended byorg.apache.axis.wsdl.toJava.JavaWriter
      extended byorg.apache.axis.wsdl.toJava.JavaClassWriter
          extended byorg.apache.axis.wsdl.toJava.JavaServiceImplWriter
All 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
emitter, type
 
Constructor Summary
protected 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, javax.wsdl.Port p)
          Write the private address field for this port and the public getter for it.
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)
          Write the getPort(QName portName, Class serviceInterfaceWriter) method.
protected  void writeGetPorts(PrintWriter pw, Vector portNames)
          Write the getPorts method.
protected  void writeGetServiceName(PrintWriter pw, javax.xml.namespace.QName qname)
          Write the getServiceName method.
protected  void writeWSDDServiceNameInfo(PrintWriter pw, String wsddServiceName, String portName)
          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, getPrintWriter, isFileGenerated, verboseMessage, writeComment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaServiceImplWriter

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

Method Detail

getExtendsText

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

Overrides:
getExtendsText in class JavaClassWriter
Returns:
""

getImplementsText

protected String getImplementsText()
Returns "implements ".

Overrides:
getImplementsText in class JavaClassWriter
Returns:
""

writeFileBody

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

Specified by:
writeFileBody in class JavaWriter
Throws:
IOException

writeAddressInfo

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.


writeWSDDServiceNameInfo

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


writeGetPortName

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


writeGetPortNameURL

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


writeGetPortClass

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


writeGetPortQNameClass

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


writeGetServiceName

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


writeGetPorts

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



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.