org.apache.axis.wsdl.toJava

Class JavaDeployWriter

public class JavaDeployWriter extends JavaWriter

This is Wsdl2java's deploy Writer. It writes the deploy.wsdd file.
Field Summary
protected Definitiondefinition
Field definition
protected Emitteremitter
Field emitter
protected static Loglog
Field log
protected SymbolTablesymbolTable
Field symbolTable
Constructor Summary
JavaDeployWriter(Emitter emitter, Definition definition, SymbolTable symbolTable)
Constructor.
Method Summary
voidgenerate()
Generate deploy.wsdd.
protected StringgetFileName()
Return the fully-qualified name of the deploy.wsdd file to be generated.
StringgetModeString(byte mode)
Method getModeString
protected PrintWritergetPrintWriter(String filename)
Method getPrintWriter
protected 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 binding
protected voidwriteDeployPort(PrintWriter pw, Port port, Service service, BindingEntry bEntry)
Write out deployment and undeployment instructions for given WSDL port
protected voidwriteDeployServices(PrintWriter pw)
Write out deployment and undeployment instructions for each WSDL service
protected voidwriteDeployTypes(PrintWriter pw, Binding binding, boolean hasLiteral, boolean hasMIME, Use use)
Write out bean mappings for each type
protected voidwriteFileBody(PrintWriter pw)
Write the body of the deploy.wsdd file.
protected voidwriteFileHeader(PrintWriter pw)
Replace 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.

Field Detail

definition

protected Definition definition
Field definition

emitter

protected Emitter emitter
Field emitter

log

protected static Log log
Field log

symbolTable

protected SymbolTable symbolTable
Field symbolTable

Constructor Detail

JavaDeployWriter

public JavaDeployWriter(Emitter emitter, Definition definition, SymbolTable symbolTable)
Constructor.

Parameters: emitter definition symbolTable

Method Detail

generate

public void generate()
Generate deploy.wsdd. Only generate it if the emitter is generating server-side mappings.

Throws: IOException

getFileName

protected String getFileName()
Return the fully-qualified name of the deploy.wsdd file to be generated.

Returns:

getModeString

public String getModeString(byte mode)
Method getModeString

Parameters: mode

Returns:

getPrintWriter

protected PrintWriter getPrintWriter(String filename)
Method getPrintWriter

Parameters: filename

Returns:

Throws: IOException

writeArrayTypeMapping

protected void writeArrayTypeMapping(PrintWriter pw, String namespaceURI, String localPart, String javaType, String encodingStyle, QName innerType)
Raw routine that writes out the typeMapping.

Parameters: pw namespaceURI localPart javaType serializerFactory deserializerFactory encodingStyle

Throws: IOException

writeDeployBinding

protected void writeDeployBinding(PrintWriter pw, BindingEntry bEntry)
Write out deployment instructions for given WSDL binding

Parameters: pw bEntry

Throws: IOException

writeDeployPort

protected void writeDeployPort(PrintWriter pw, Port port, Service service, BindingEntry bEntry)
Write out deployment and undeployment instructions for given WSDL port

Parameters: pw port service bEntry

Throws: IOException

writeDeployServices

protected void writeDeployServices(PrintWriter pw)
Write out deployment and undeployment instructions for each WSDL service

Parameters: pw

Throws: IOException

writeDeployTypes

protected void writeDeployTypes(PrintWriter pw, Binding binding, boolean hasLiteral, boolean hasMIME, Use use)
Write out bean mappings for each type

Parameters: pw binding hasLiteral hasMIME use

Throws: IOException

writeFileBody

protected void writeFileBody(PrintWriter pw)
Write the body of the deploy.wsdd file.

Parameters: pw

Throws: IOException

writeFileHeader

protected void writeFileHeader(PrintWriter pw)
Replace the default file header with the deployment doc file header.

Parameters: pw

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

writeTypeMapping

protected void writeTypeMapping(PrintWriter pw, String namespaceURI, String localPart, String javaType, String serializerFactory, String deserializerFactory, String encodingStyle)
Raw routine that writes out the typeMapping.

Parameters: pw namespaceURI localPart javaType serializerFactory deserializerFactory encodingStyle

Throws: IOException

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.