|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.wsdlgen.Emitter
WSDL utility class, 1st cut. Right now all the WSDL functionality for dynamic Java->WSDL is in here - it probably wants to move elsewhere when a more solid design stabilizes.
Field Summary | |
static int |
MODE_ALL
|
static int |
MODE_IMPLEMENTATION
|
static int |
MODE_INTERFACE
|
Constructor Summary | |
Emitter()
Construct Emitter. |
Method Summary | |
void |
emit(java.lang.String filename)
Generates a complete WSDL document for a given Class |
void |
emit(java.lang.String filename,
int mode)
Generates a WSDL document for a given Class . |
void |
emit(java.lang.String filename1,
java.lang.String filename2)
Generates WSDL documents for a given Class |
java.lang.String |
getAllowedMethods()
Returns a list of a space separated list of methods to export |
java.lang.Class |
getCls()
Returns the Class to export |
java.lang.String |
getDescription()
Returns the service description |
java.lang.String |
getImplNamespace()
Returns the implementation namespace |
javax.wsdl.Definition |
getImplWSDL()
Get implementation WSDL Definition for the current configuration parameters |
java.lang.String |
getImportUrl()
Returns the String representation of the interface import location URL |
java.lang.String |
getIntfNamespace()
Returns the interface namespace |
javax.wsdl.Definition |
getIntfWSDL()
Get a interface WSDL Definition for the current configuration parameters |
java.lang.String |
getLocationUrl()
Returns the String representation of the service endpoint URL |
java.util.Map |
getNamespaceMap()
get the packagename to namespace map |
TypeMappingRegistry |
getReg()
Returns the TypeMappingRegistry used by the service |
java.lang.String |
getServiceName()
Returns the String representation of the service URN |
java.lang.String |
getTargetService()
Returns the target service name |
boolean |
getUseInheritedMethods()
|
javax.wsdl.Definition |
getWSDL()
Get a Full WSDL Definition for the current configuration parameters |
void |
setAllowedMethods(java.lang.String allowedMethods)
Set a space separated list of methods to export |
void |
setCls(java.lang.Class cls)
Sets the Class to export |
void |
setCls(java.lang.String className,
java.lang.String classDir)
Sets the Class to export |
void |
setDescription(java.lang.String description)
Set the service description |
void |
setImplNamespace(java.lang.String ns)
Set the implementation namespace |
void |
setImportUrl(java.lang.String importUrl)
Set the String representation of the interface location URL for importing |
void |
setIntfNamespace(java.lang.String ns)
Set the interface namespace |
void |
setLocationUrl(java.lang.String locationUrl)
Set the String representation of the service endpoint URL |
void |
setNamespaceMap(java.util.Map map)
Set the packagename to namespace map with the given map |
void |
setReg(TypeMappingRegistry reg)
Sets the TypeMappingRegistry used by the service |
void |
setServiceName(java.lang.String serviceName)
Set the String representation of the service URN |
void |
setTargetService(java.lang.String targetService)
Set the target service name |
void |
setUseInheritedMethods(boolean useInheritedMethods)
|
void |
writePartToMessage(javax.wsdl.Definition def,
javax.wsdl.Message msg,
java.lang.String name,
java.lang.Class param)
Create a Part |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MODE_ALL
public static final int MODE_INTERFACE
public static final int MODE_IMPLEMENTATION
Constructor Detail |
public Emitter()
Method Detail |
public void emit(java.lang.String filename1, java.lang.String filename2) throws java.lang.Exception
Class
filename1
- interface WSDLfilename2
- implementation WSDLjava.lang.Exception
- public void emit(java.lang.String filename) throws java.lang.Exception
Class
filename
- WSDLjava.lang.Exception
- public void emit(java.lang.String filename, int mode) throws java.lang.Exception
Class
. The sections of
the WSDL generated are controlled by the mode parameter
mode 0: All
mode 1: Interface
mode 2: Implementationfilename
- WSDLmode
- generation mode - all, interface, implementationjava.lang.Exception
- public javax.wsdl.Definition getWSDL() throws java.lang.Exception
Definition
for the current configuration parametersDefinition
java.lang.Exception
- public javax.wsdl.Definition getIntfWSDL() throws java.lang.Exception
Definition
for the current configuration parametersDefinition
java.lang.Exception
- public javax.wsdl.Definition getImplWSDL() throws java.lang.Exception
Definition
for the current configuration parametersDefinition
java.lang.Exception
- public void writePartToMessage(javax.wsdl.Definition def, javax.wsdl.Message msg, java.lang.String name, java.lang.Class param) throws java.lang.Exception
def
- msg
- name
- String name of partparam
- Class type of parameterjava.lang.Exception
- public java.lang.Class getCls()
Class
to exportClass
to exportpublic void setCls(java.lang.Class cls)
Class
to exportcls
- the Class
to exportpublic java.lang.String getIntfNamespace()
public void setIntfNamespace(java.lang.String ns)
ns
- interface target namespacepublic java.lang.String getImplNamespace()
public void setImplNamespace(java.lang.String ns)
ns
- implementation target namespacepublic void setCls(java.lang.String className, java.lang.String classDir)
Class
to exportclassName
- the name of the Class
to exportclassDir
- the directory containing the class (optional)public java.lang.String getAllowedMethods()
public void setAllowedMethods(java.lang.String allowedMethods)
allowedMethods
- a space separated list of methods to exportpublic boolean getUseInheritedMethods()
public void setUseInheritedMethods(boolean useInheritedMethods)
public java.util.Map getNamespaceMap()
Map
public void setNamespaceMap(java.util.Map map)
map
- packagename/namespace Map
public java.lang.String getLocationUrl()
public void setLocationUrl(java.lang.String locationUrl)
locationUrl
- the String representation of the service endpoint URLpublic java.lang.String getImportUrl()
public void setImportUrl(java.lang.String importUrl)
locationUrl
- the String representation of the interface location URL for importingpublic java.lang.String getServiceName()
public void setServiceName(java.lang.String serviceName)
serviceUrn
- the String representation of the service URNpublic java.lang.String getTargetService()
public void setTargetService(java.lang.String targetService)
targetService
- the target service namepublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- service description Stringpublic TypeMappingRegistry getReg()
TypeMappingRegistry
used by the serviceTypeMappingRegistry
used by the servicepublic void setReg(TypeMappingRegistry reg)
TypeMappingRegistry
used by the servicereg
- the TypeMappingRegistry
used by the service
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |