Class JAXWSEmitter
- java.lang.Object
-
- org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter
-
- org.apache.axis2.wsdl.codegen.emitter.jaxws.JAXWSEmitter
-
- All Implemented Interfaces:
Emitter
- Direct Known Subclasses:
JAXWS20Emitter
public abstract class JAXWSEmitter extends AxisServiceBasedMultiLanguageEmitter
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringEXCEPTION_SUFFIXprotected static StringJAXWS_IMPL_SUFFIXprotected static StringJAXWS_PORT_TYPE_NAMEprotected static StringSERVICE_SUFFIXprotected static StringTYPE_SUFFIX-
Fields inherited from class org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter
allServiceInfoHolder, axisBinding, axisEndpoint, axisService, axisServices, CALL_BACK_HANDLER_SUFFIX, codeGenConfiguration, constructorMap, DATABINDING_SUPPORTER_NAME_SUFFIX, faultClassNameMap, faultElementQNameMap, fullyQualifiedFaultClassNameMap, infoHolder, instantiatableMessageClassNames, log, mapper, mepToClassMap, mepToSuffixMap, MESSAGE_RECEIVER_SUFFIX, resolver, SKELETON_CLASS_SUFFIX, SKELETON_CLASS_SUFFIX_BACK, SKELETON_INTERFACE_SUFFIX, SKELETON_INTERFACE_SUFFIX_BACK, STUB_INTERFACE_SUFFIX_BACK, STUB_SUFFIX, TEST_SRC_DIR_NAME, TEST_SUFFIX, uniqueFaultNameCounter, useHolderClass_jaxws, wrapped_jaxws
-
-
Constructor Summary
Constructors Constructor Description JAXWSEmitter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract DocumentcreateDOMDocumentForException(String key)Creates the XML model for a Exception Classprotected abstract DocumentcreateDOMDocumentForSEI()Creates the XML model for the Service Endpoint interfaceprotected abstract DocumentcreateDOMDocumentForSEIImpl()Creates the XML model for the Service Endpoint interface Implementation classprotected abstract DocumentcreateDOMDocumentForServiceClass()Creates the XML model for the Service Classprotected DocumentcreateDOMDocumentForServiceXML()voidemitSkeleton()Emits the skeletonStringextratClassName(String fullyQualifiedName)protected StringgetFullyQualifiedName(String className, String packageName)protected ElementgetServiceElement(String serviceName, String className, Document doc)A resusable method to return the service element for creating the service xmlprotected StringresolveNameCollision(String className, String packageName, String suffix)voidsetCodeGenConfiguration(CodeGenConfiguration configuration)Sets the relevant codegen configurationprotected voidwriteExceptions()Writes the exception calsses.protected voidwriteServiceClass()Write the service classprotected voidwriteServiceEndpointInterface()Write the service endpoint interfaceprotected voidwriteServiceEndpointInterfaceImpl()-
Methods inherited from class org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter
addAttribute, addElement, addEndpoint, addFaultMessages, addHeaderOperations, addHeaderOperationsToFault, addShortType, addSOAPAction, addSoapVersion, copyMap, copyToFaultMap, createDocumentForMessageReceiver, createDOMDocumentForAntBuild, createDOMDocumentForCallbackHandler, createDOMDocumentForException, createDOMDocumentForInterface, createDOMDocumentForInterfaceImplementation, createDOMDocumentForSkeleton, createDOMDocumentForSkeletonInterface, createDOMDocumentForTestCase, createDOMElementforDatabinders, debugLogDocument, emitStub, fillSyncAttributes, generateAndPopulateFaultNames, generateMethodElement, generateOptionParamComponent, generateParamComponent, generateParamComponent, generateParamComponent, getBase64Elements, getBindingPolicyFromMessage, getBindingPropertyFromMessage, getBindingPropertyFromMessageFault, getBindingPropertyFromOperation, getEmptyDocument, getFaultElement, getFaultParamElements, getFullyQualifiedMessageReceiverName, getFullyQualifiedSkeletonInterfaceName, getFullyQualifiedSkeletonName, getFullyQualifiedStubName, getInputElement, getInputParamElement, getNewCopy, getOpNames, getOutputDirectory, getOutputElement, getOutputParamElement, getParameterElementList, getParameterElementListForHttpHeader, getParameterElementListForSOAPModules, getParamInitializer, getUniqueListofFaults, getUniqueListofFaultsofMep, loadOperations, makeJavaClassName, processModelObjects, resetFaultNames, setMapper, updateFaultPackageForStub, updateMapperClassnames, updateMapperForMessageReceiver, updateMapperForStub, writeAntBuild, writeCallBackHandlers, writeFile, writeInterface, writeInterfaceImplementation, writeMessageReceiver, writeServiceXml, writeSkeleton, writeSkeletonInterface, writeTestClasses, writeWSDLFiles
-
-
-
-
Field Detail
-
TYPE_SUFFIX
protected static final String TYPE_SUFFIX
- See Also:
- Constant Field Values
-
SERVICE_SUFFIX
protected static final String SERVICE_SUFFIX
- See Also:
- Constant Field Values
-
EXCEPTION_SUFFIX
protected static final String EXCEPTION_SUFFIX
- See Also:
- Constant Field Values
-
JAXWS_PORT_TYPE_NAME
protected static final String JAXWS_PORT_TYPE_NAME
- See Also:
- Constant Field Values
-
JAXWS_IMPL_SUFFIX
protected static final String JAXWS_IMPL_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
setCodeGenConfiguration
public void setCodeGenConfiguration(CodeGenConfiguration configuration)
Description copied from class:AxisServiceBasedMultiLanguageEmitterSets the relevant codegen configuration- Specified by:
setCodeGenConfigurationin interfaceEmitter- Overrides:
setCodeGenConfigurationin classAxisServiceBasedMultiLanguageEmitter- See Also:
Emitter.setCodeGenConfiguration(org.apache.axis2.wsdl.codegen.CodeGenConfiguration)
-
emitSkeleton
public void emitSkeleton() throws CodeGenerationExceptionDescription copied from class:AxisServiceBasedMultiLanguageEmitterEmits the skeleton- Specified by:
emitSkeletonin interfaceEmitter- Overrides:
emitSkeletonin classAxisServiceBasedMultiLanguageEmitter- Throws:
CodeGenerationException
-
writeServiceEndpointInterface
protected void writeServiceEndpointInterface() throws ExceptionWrite the service endpoint interface- Throws:
Exception
-
writeServiceEndpointInterfaceImpl
protected void writeServiceEndpointInterfaceImpl() throws Exception- Throws:
Exception
-
writeExceptions
protected void writeExceptions() throws ExceptionWrites the exception calsses.- Overrides:
writeExceptionsin classAxisServiceBasedMultiLanguageEmitter- Throws:
Exception
-
writeServiceClass
protected void writeServiceClass() throws ExceptionWrite the service class- Throws:
Exception
-
createDOMDocumentForServiceXML
protected Document createDOMDocumentForServiceXML()
- Overrides:
createDOMDocumentForServiceXMLin classAxisServiceBasedMultiLanguageEmitter
-
createDOMDocumentForSEI
protected abstract Document createDOMDocumentForSEI() throws AxisFault
Creates the XML model for the Service Endpoint interface- Returns:
- DOM Document
- Throws:
AxisFault
-
createDOMDocumentForSEIImpl
protected abstract Document createDOMDocumentForSEIImpl() throws AxisFault
Creates the XML model for the Service Endpoint interface Implementation class- Returns:
- DOM Document
- Throws:
AxisFault
-
createDOMDocumentForServiceClass
protected abstract Document createDOMDocumentForServiceClass()
Creates the XML model for the Service Class- Returns:
- DOM Document
-
createDOMDocumentForException
protected abstract Document createDOMDocumentForException(String key)
Creates the XML model for a Exception Class- Parameters:
key- String- Returns:
- DOM Document
-
getServiceElement
protected Element getServiceElement(String serviceName, String className, Document doc)
A resusable method to return the service element for creating the service xml- Overrides:
getServiceElementin classAxisServiceBasedMultiLanguageEmitter- Parameters:
serviceName-className-doc-- Returns:
- DOM Element
-
-