Package org.apache.axis.wsdl.toJava
Class JavaUndeployWriter
- java.lang.Object
-
- org.apache.axis.wsdl.toJava.JavaWriter
-
- org.apache.axis.wsdl.toJava.JavaUndeployWriter
-
- All Implemented Interfaces:
Generator
public class JavaUndeployWriter extends JavaWriter
This is Wsdl2java's deploy Writer. It writes the deploy.java file.
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.wsdl.Definition
definition
Field definition-
Fields inherited from class org.apache.axis.wsdl.toJava.JavaWriter
emitter, LINE_LENGTH, type
-
-
Constructor Summary
Constructors Constructor Description JavaUndeployWriter(Emitter emitter, javax.wsdl.Definition definition, SymbolTable notUsed)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generate()
Generate undeploy.wsdd.protected java.lang.String
getFileName()
Return the fully-qualified name of the undeploy.wsdd file to be generated.protected java.io.PrintWriter
getPrintWriter(java.lang.String filename)
Method getPrintWriterprotected void
writeDeployPort(java.io.PrintWriter pw, javax.wsdl.Port port)
Write out deployment and undeployment instructions for given WSDL portprotected void
writeDeployServices(java.io.PrintWriter pw)
Write out deployment and undeployment instructions for each WSDL serviceprotected void
writeFileBody(java.io.PrintWriter pw)
Write the body of the deploy.wsdd file.protected void
writeFileHeader(java.io.PrintWriter pw)
Replace the default file header with the deployment doc file header.-
Methods inherited from class org.apache.axis.wsdl.toJava.JavaWriter
closePrintWriter, getJavadocDescriptionPart, isFileGenerated, registerFile, verboseMessage, writeComment, writeComment, writeFileFooter
-
-
-
-
Constructor Detail
-
JavaUndeployWriter
public JavaUndeployWriter(Emitter emitter, javax.wsdl.Definition definition, SymbolTable notUsed)
Constructor.- Parameters:
emitter
-definition
-notUsed
-
-
-
Method Detail
-
generate
public void generate() throws java.io.IOException
Generate undeploy.wsdd. Only generate it if the emitter is generating server-side mappings.- Specified by:
generate
in interfaceGenerator
- Overrides:
generate
in classJavaWriter
- Throws:
java.io.IOException
-
getFileName
protected java.lang.String getFileName()
Return the fully-qualified name of the undeploy.wsdd file to be generated.- Specified by:
getFileName
in classJavaWriter
- Returns:
-
writeFileHeader
protected void writeFileHeader(java.io.PrintWriter pw) throws java.io.IOException
Replace the default file header with the deployment doc file header.- Overrides:
writeFileHeader
in classJavaWriter
- Parameters:
pw
-- Throws:
java.io.IOException
-
writeFileBody
protected void writeFileBody(java.io.PrintWriter pw) throws java.io.IOException
Write the body of the deploy.wsdd file.- Specified by:
writeFileBody
in classJavaWriter
- Parameters:
pw
-- Throws:
java.io.IOException
-
writeDeployServices
protected void writeDeployServices(java.io.PrintWriter pw) throws java.io.IOException
Write out deployment and undeployment instructions for each WSDL service- Parameters:
pw
-- Throws:
java.io.IOException
-
writeDeployPort
protected void writeDeployPort(java.io.PrintWriter pw, javax.wsdl.Port port) throws java.io.IOException
Write out deployment and undeployment instructions for given WSDL port- Parameters:
pw
-port
-- Throws:
java.io.IOException
-
getPrintWriter
protected java.io.PrintWriter getPrintWriter(java.lang.String filename) throws java.io.IOException
Method getPrintWriter- Overrides:
getPrintWriter
in classJavaWriter
- Parameters:
filename
-- Returns:
- Throws:
java.io.IOException
-
-