Package org.apache.axis.wsdl.toJava
Class JavaDeployWriter
java.lang.Object
org.apache.axis.wsdl.toJava.JavaWriter
org.apache.axis.wsdl.toJava.JavaDeployWriter
- All Implemented Interfaces:
Generator
This is Wsdl2java's deploy Writer. It writes the deploy.wsdd file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javax.wsdl.Definition
Field definitionprotected Emitter
Field emitterprotected static org.apache.commons.logging.Log
Field logprotected SymbolTable
Field symbolTableFields inherited from class org.apache.axis.wsdl.toJava.JavaWriter
LINE_LENGTH, type
-
Constructor Summary
ConstructorsConstructorDescriptionJavaDeployWriter
(Emitter emitter, javax.wsdl.Definition definition, SymbolTable symbolTable) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
generate()
Generate deploy.wsdd.protected String
Return the fully-qualified name of the deploy.wsdd file to be generated.getModeString
(byte mode) Method getModeStringprotected PrintWriter
getPrintWriter
(String filename) Method getPrintWriterprotected void
writeArrayTypeMapping
(PrintWriter pw, String namespaceURI, String localPart, String javaType, String encodingStyle, QName innerType) Raw routine that writes out the typeMapping.protected void
writeDeployBinding
(PrintWriter pw, BindingEntry bEntry) Write out deployment instructions for given WSDL bindingprotected void
writeDeployPort
(PrintWriter pw, javax.wsdl.Port port, javax.wsdl.Service service, BindingEntry bEntry) Write out deployment and undeployment instructions for given WSDL portprotected void
Write out deployment and undeployment instructions for each WSDL serviceprotected void
writeDeployTypes
(PrintWriter pw, javax.wsdl.Binding binding, boolean hasLiteral, boolean hasMIME, Use use) Write out bean mappings for each typeprotected void
Write the body of the deploy.wsdd file.protected void
Replace the default file header with the deployment doc file header.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.protected void
writeTypeMapping
(PrintWriter pw, String namespaceURI, String localPart, String javaType, String serializerFactory, String deserializerFactory, String encodingStyle) Raw routine that writes out the typeMapping.Methods inherited from class org.apache.axis.wsdl.toJava.JavaWriter
closePrintWriter, getJavadocDescriptionPart, isFileGenerated, registerFile, verboseMessage, writeComment, writeComment, writeFileFooter
-
Field Details
-
log
protected static org.apache.commons.logging.Log logField log -
definition
protected javax.wsdl.Definition definitionField definition -
symbolTable
Field symbolTable -
emitter
Field emitter
-
-
Constructor Details
-
JavaDeployWriter
Constructor.- Parameters:
emitter
-definition
-symbolTable
-
-
-
Method Details
-
generate
Generate deploy.wsdd. Only generate it if the emitter is generating server-side mappings.- Specified by:
generate
in interfaceGenerator
- Overrides:
generate
in classJavaWriter
- Throws:
IOException
-
getFileName
Return the fully-qualified name of the deploy.wsdd file to be generated.- Specified by:
getFileName
in classJavaWriter
- Returns:
-
writeFileHeader
Replace the default file header with the deployment doc file header.- Overrides:
writeFileHeader
in classJavaWriter
- Parameters:
pw
-- Throws:
IOException
-
writeFileBody
Write the body of the deploy.wsdd file.- Specified by:
writeFileBody
in classJavaWriter
- Parameters:
pw
-- Throws:
IOException
-
writeDeployServices
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
-serializerFactory
-deserializerFactory
-encodingStyle
-- 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
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
Method getModeString- Parameters:
mode
-- Returns:
-
getPrintWriter
Method getPrintWriter- Overrides:
getPrintWriter
in classJavaWriter
- Parameters:
filename
-- Returns:
- Throws:
IOException
-