Class JavaServiceImplWriter

All Implemented Interfaces:
Generator

public class JavaServiceImplWriter extends JavaClassWriter
This is Wsdl2java's service implementation writer. It writes the Locator.java file.
  • 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 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
      Parameters:
      pw -
      Throws:
      IOException
    • writeConstructors

      protected void writeConstructors(PrintWriter pw)
      write Constructors
      Parameters:
      pw -
    • 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.
      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

      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 -
    • writeSetPortEndpointAddress

      protected void writeSetPortEndpointAddress(PrintWriter pw, String portName)
      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

      protected void writeGetServiceName(PrintWriter pw, QName qname)
      Write the getServiceName method.
      Parameters:
      pw -
      qname -
    • writeGetPorts

      protected void writeGetPorts(PrintWriter pw, String namespaceURI, Vector portNames)
      Write the getPorts method.
      Parameters:
      pw -
      portNames -
    • 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 -