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.DefinitionField definitionprotected EmitterField emitterprotected static org.apache.commons.logging.LogField logprotected SymbolTableField 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 TypeMethodDescriptionvoidgenerate()Generate deploy.wsdd.protected StringReturn the fully-qualified name of the deploy.wsdd file to be generated.getModeString(byte mode) Method getModeStringprotected PrintWritergetPrintWriter(String filename) Method getPrintWriterprotected voidwriteArrayTypeMapping(PrintWriter pw, String namespaceURI, String localPart, String javaType, String encodingStyle, QName innerType) Raw routine that writes out the typeMapping.protected voidwriteDeployBinding(PrintWriter pw, BindingEntry bEntry) Write out deployment instructions for given WSDL bindingprotected voidwriteDeployPort(PrintWriter pw, javax.wsdl.Port port, javax.wsdl.Service service, BindingEntry bEntry) Write out deployment and undeployment instructions for given WSDL portprotected voidWrite out deployment and undeployment instructions for each WSDL serviceprotected voidwriteDeployTypes(PrintWriter pw, javax.wsdl.Binding binding, boolean hasLiteral, boolean hasMIME, Use use) Write out bean mappings for each typeprotected voidWrite the body of the deploy.wsdd file.protected voidReplace the default file header with the deployment doc file header.protected voidwriteOperation(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 voidwriteTypeMapping(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:
generatein interfaceGenerator- Overrides:
generatein classJavaWriter- Throws:
IOException
-
getFileName
Return the fully-qualified name of the deploy.wsdd file to be generated.- Specified by:
getFileNamein classJavaWriter- Returns:
-
writeFileHeader
Replace the default file header with the deployment doc file header.- Overrides:
writeFileHeaderin classJavaWriter- Parameters:
pw-- Throws:
IOException
-
writeFileBody
Write the body of the deploy.wsdd file.- Specified by:
writeFileBodyin 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-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
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:
getPrintWriterin classJavaWriter- Parameters:
filename-- Returns:
- Throws:
IOException
-