Class JavaDeployWriter

java.lang.Object
org.apache.axis.wsdl.toJava.JavaWriter
org.apache.axis.wsdl.toJava.JavaDeployWriter
All Implemented Interfaces:
Generator

public class JavaDeployWriter extends JavaWriter
This is Wsdl2java's deploy Writer. It writes the deploy.wsdd file.
  • Field Details

    • log

      protected static org.apache.commons.logging.Log log
      Field log
    • definition

      protected javax.wsdl.Definition definition
      Field definition
    • symbolTable

      protected SymbolTable symbolTable
      Field symbolTable
    • emitter

      protected Emitter emitter
      Field emitter
  • Constructor Details

    • JavaDeployWriter

      public JavaDeployWriter(Emitter emitter, javax.wsdl.Definition definition, SymbolTable symbolTable)
      Constructor.
      Parameters:
      emitter -
      definition -
      symbolTable -
  • Method Details

    • generate

      public void generate() throws IOException
      Generate deploy.wsdd. Only generate it if the emitter is generating server-side mappings.
      Specified by:
      generate in interface Generator
      Overrides:
      generate in class JavaWriter
      Throws:
      IOException
    • getFileName

      protected String getFileName()
      Return the fully-qualified name of the deploy.wsdd file to be generated.
      Specified by:
      getFileName in class JavaWriter
      Returns:
    • writeFileHeader

      protected void writeFileHeader(PrintWriter pw) throws IOException
      Replace the default file header with the deployment doc file header.
      Overrides:
      writeFileHeader in class JavaWriter
      Parameters:
      pw -
      Throws:
      IOException
    • writeFileBody

      protected void writeFileBody(PrintWriter pw) throws IOException
      Write the body of the deploy.wsdd file.
      Specified by:
      writeFileBody in class JavaWriter
      Parameters:
      pw -
      Throws:
      IOException
    • writeDeployServices

      protected void writeDeployServices(PrintWriter pw) throws IOException
      Write out deployment and undeployment instructions for each WSDL service
      Parameters:
      pw -
      Throws:
      IOException
    • writeDeployTypes

      protected void writeDeployTypes(PrintWriter pw, javax.wsdl.Binding binding, boolean hasLiteral, boolean hasMIME, Use use) throws IOException
      Write out bean mappings for each type
      Parameters:
      pw -
      binding -
      hasLiteral -
      hasMIME -
      use -
      Throws:
      IOException
    • writeArrayTypeMapping

      protected void writeArrayTypeMapping(PrintWriter pw, String namespaceURI, String localPart, String javaType, String encodingStyle, QName innerType) throws IOException
      Raw routine that writes out the typeMapping.
      Parameters:
      pw -
      namespaceURI -
      localPart -
      javaType -
      encodingStyle -
      serializerFactory -
      deserializerFactory -
      Throws:
      IOException
    • writeTypeMapping

      protected void writeTypeMapping(PrintWriter pw, String namespaceURI, String localPart, String javaType, String serializerFactory, String deserializerFactory, String encodingStyle) throws IOException
      Raw routine that writes out the typeMapping.
      Parameters:
      pw -
      namespaceURI -
      localPart -
      javaType -
      serializerFactory -
      deserializerFactory -
      encodingStyle -
      Throws:
      IOException
    • writeDeployPort

      protected void writeDeployPort(PrintWriter pw, javax.wsdl.Port port, javax.wsdl.Service service, BindingEntry bEntry) throws IOException
      Write out deployment and undeployment instructions for given WSDL port
      Parameters:
      pw -
      port -
      service -
      bEntry -
      Throws:
      IOException
    • writeDeployBinding

      protected void writeDeployBinding(PrintWriter pw, BindingEntry bEntry) throws IOException
      Write out deployment instructions for given WSDL binding
      Parameters:
      pw -
      bEntry -
      Throws:
      IOException
    • writeOperation

      protected void writeOperation(PrintWriter pw, String javaOperName, QName elementQName, QName returnQName, QName returnType, Parameters params, QName bindingQName, ArrayList faults, String SOAPAction)
      Raw routine that writes out the operation and parameters.
      Parameters:
      pw -
      javaOperName -
      elementQName -
      returnQName -
      returnType -
      params -
      bindingQName -
      faults -
    • getModeString

      public String getModeString(byte mode)
      Method getModeString
      Parameters:
      mode -
      Returns:
    • getPrintWriter

      protected PrintWriter getPrintWriter(String filename) throws IOException
      Method getPrintWriter
      Overrides:
      getPrintWriter in class JavaWriter
      Parameters:
      filename -
      Returns:
      Throws:
      IOException