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 String
EXCEPTION_SUFFIX
protected static String
JAXWS_IMPL_SUFFIX
protected static String
JAXWS_PORT_TYPE_NAME
protected static String
SERVICE_SUFFIX
protected static String
TYPE_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 Document
createDOMDocumentForException(String key)
Creates the XML model for a Exception Classprotected abstract Document
createDOMDocumentForSEI()
Creates the XML model for the Service Endpoint interfaceprotected abstract Document
createDOMDocumentForSEIImpl()
Creates the XML model for the Service Endpoint interface Implementation classprotected abstract Document
createDOMDocumentForServiceClass()
Creates the XML model for the Service Classprotected Document
createDOMDocumentForServiceXML()
void
emitSkeleton()
Emits the skeletonString
extratClassName(String fullyQualifiedName)
protected String
getFullyQualifiedName(String className, String packageName)
protected Element
getServiceElement(String serviceName, String className, Document doc)
A resusable method to return the service element for creating the service xmlprotected String
resolveNameCollision(String className, String packageName, String suffix)
void
setCodeGenConfiguration(CodeGenConfiguration configuration)
Sets the relevant codegen configurationprotected void
writeExceptions()
Writes the exception calsses.protected void
writeServiceClass()
Write the service classprotected void
writeServiceEndpointInterface()
Write the service endpoint interfaceprotected void
writeServiceEndpointInterfaceImpl()
-
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:AxisServiceBasedMultiLanguageEmitter
Sets the relevant codegen configuration- Specified by:
setCodeGenConfiguration
in interfaceEmitter
- Overrides:
setCodeGenConfiguration
in classAxisServiceBasedMultiLanguageEmitter
- See Also:
Emitter.setCodeGenConfiguration(org.apache.axis2.wsdl.codegen.CodeGenConfiguration)
-
emitSkeleton
public void emitSkeleton() throws CodeGenerationException
Description copied from class:AxisServiceBasedMultiLanguageEmitter
Emits the skeleton- Specified by:
emitSkeleton
in interfaceEmitter
- Overrides:
emitSkeleton
in classAxisServiceBasedMultiLanguageEmitter
- Throws:
CodeGenerationException
-
writeServiceEndpointInterface
protected void writeServiceEndpointInterface() throws Exception
Write the service endpoint interface- Throws:
Exception
-
writeServiceEndpointInterfaceImpl
protected void writeServiceEndpointInterfaceImpl() throws Exception
- Throws:
Exception
-
writeExceptions
protected void writeExceptions() throws Exception
Writes the exception calsses.- Overrides:
writeExceptions
in classAxisServiceBasedMultiLanguageEmitter
- Throws:
Exception
-
writeServiceClass
protected void writeServiceClass() throws Exception
Write the service class- Throws:
Exception
-
createDOMDocumentForServiceXML
protected Document createDOMDocumentForServiceXML()
- Overrides:
createDOMDocumentForServiceXML
in 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:
getServiceElement
in classAxisServiceBasedMultiLanguageEmitter
- Parameters:
serviceName
-className
-doc
-- Returns:
- DOM Element
-
-