Package org.apache.axis.wsdl.toJava
Class JavaStubWriter
java.lang.Object
org.apache.axis.wsdl.toJava.JavaWriter
org.apache.axis.wsdl.toJava.JavaClassWriter
org.apache.axis.wsdl.toJava.JavaStubWriter
- All Implemented Interfaces:
Generator
This is Wsdl2java's stub writer. It writes the Stub.java
file which contains the Stub class.
-
Field Summary
FieldsFields inherited from class org.apache.axis.wsdl.toJava.JavaClassWriter
className, namespaces, packageNameFields inherited from class org.apache.axis.wsdl.toJava.JavaWriter
emitter, LINE_LENGTH, type -
Constructor Summary
ConstructorsConstructorDescriptionJavaStubWriter(Emitter emitter, BindingEntry bEntry, SymbolTable symbolTable) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturns "extends org.apache.axis.client.Stub ".protected StringReturns "implements". protected voidwriteBindingMethods(PrintWriter pw, List deferredBindings) for each of the TypeEntry objects in the deferredBindings list, we need to write code that will associate a class with a schema namespace/name.protected voidwriteFaultInfo(PrintWriter pw, javax.wsdl.BindingOperation bindOp) This function writes the regsiterFaultInfo API callsprotected voidWrite the body of the binding's stub file.protected voidwriteOperation(PrintWriter pw, javax.wsdl.BindingOperation operation, Parameters parms, String soapAction, String opStyle, boolean oneway, int opIndex) Write the stub code for the given operation.protected voidMethod writeOperationMapprotected voidwriteOutputAssign(PrintWriter pw, String target, Parameter param, String source) writeOutputAssignprotected voidwriteParameters(PrintWriter pw, Parameters parms) Method writeParametersprotected voidwriteResponseHandling(PrintWriter pw, Parameters parms) Method writeResponseHandlingprotected voidwriteSerializationDecls(PrintWriter pw, boolean hasMIME, String namespace) In the stub constructor, write the serializer code for the complex types.protected voidwriteSerializationInit(PrintWriter pw, TypeEntry type) Method writeSerializationInitMethods inherited from class org.apache.axis.wsdl.toJava.JavaClassWriter
getClassModifiers, getClassName, getClassText, getFileName, getPackage, registerFile, writeFileFooter, writeFileHeader, writeHeaderComments, writePackageMethods inherited from class org.apache.axis.wsdl.toJava.JavaWriter
closePrintWriter, generate, getJavadocDescriptionPart, getPrintWriter, isFileGenerated, verboseMessage, writeComment, writeComment
-
Field Details
-
log
protected static org.apache.commons.logging.Log logField log
-
-
Constructor Details
-
JavaStubWriter
Constructor.- Parameters:
emitter-bEntry-symbolTable-
-
-
Method Details
-
getExtendsText
Returns "extends org.apache.axis.client.Stub ".- Overrides:
getExtendsTextin classJavaClassWriter- Returns:
-
getImplementsText
Returns "implements". - Overrides:
getImplementsTextin classJavaClassWriter- Returns:
-
writeFileBody
Write the body of the binding's stub file.- Specified by:
writeFileBodyin classJavaWriter- Parameters:
pw-- Throws:
IOException
-
writeBindingMethods
for each of the TypeEntry objects in the deferredBindings list, we need to write code that will associate a class with a schema namespace/name. This method writes a number of private methods out that do this in batches of size MAXIMUM_BINDINGS_PER_METHOD so that generated classes do not end up with a single method that exceeds the 64K limit that the VM imposes on all methods.- Parameters:
pw- aPrintWritervaluedeferredBindings- aListof TypeEntry objects
-
writeOperationMap
Method writeOperationMap- Parameters:
pw-
-
writeFaultInfo
This function writes the regsiterFaultInfo API calls- Parameters:
pw-bindOp-
-
writeSerializationDecls
In the stub constructor, write the serializer code for the complex types.- Parameters:
pw-hasMIME-namespace-
-
writeSerializationInit
Method writeSerializationInit- Parameters:
pw-type-
-
writeOperation
protected void writeOperation(PrintWriter pw, javax.wsdl.BindingOperation operation, Parameters parms, String soapAction, String opStyle, boolean oneway, int opIndex) Write the stub code for the given operation.- Parameters:
pw-operation-parms-soapAction-opStyle-oneway-opIndex-
-
writeParameters
Method writeParameters- Parameters:
pw-parms-
-
writeResponseHandling
Method writeResponseHandling- Parameters:
pw-parms-
-
writeOutputAssign
writeOutputAssign- Parameters:
pw-target- (either "return" or "something ="source- (source String)
-