|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.description.AxisDescription
org.apache.axis2.description.AxisService
Class AxisService
Field Summary |
Fields inherited from interface org.apache.axis2.description.DescriptionConstants |
CLASSLOADER_KEY, CONTEXTPATH_KEY, EXECUTION_CHAIN_KEY, EXECUTION_FAULT_CHAIN_KEY, EXECUTION_OUT_CHAIN_KEY, IN_FAULTFLOW_KEY, INFLOW_KEY, MESSAGE_RECEIVER_KEY, MODULEREF_KEY, OPERATION_KEY, OUT_FAULTFLOW_KEY, OUTFLOW_KEY, PARAMETER_KEY, PHASES_KEY, SERVICE_CLASS, SERVICE_CLASS_NAME, STYLE_KEY |
Constructor Summary | |
AxisService()
Constructor AxisService. |
|
AxisService(String name)
Constructor AxisService. |
Method Summary | |
void |
addMessageReceiver(String mepURL,
MessageReceiver messageReceiver)
|
void |
addModuleConfig(ModuleConfiguration moduleConfiguration)
Adds module configuration , if there is moduleConfig tag in service. |
void |
addModuleOperations(AxisModule module,
AxisConfiguration axisConfig)
Adds an operation to a service if a module is required to do so. |
void |
addModuleref(QName moduleref)
|
void |
addOperation(AxisOperation axisOperation)
Method addOperation. |
void |
addSchema(Collection schemas)
|
void |
addSchema(org.apache.ws.commons.schema.XmlSchema schema)
|
static AxisService |
createClientSideAxisService(javax.wsdl.Definition wsdlDefinition,
QName wsdlServiceName,
String portName,
Options options)
|
static AxisService |
createClientSideAxisService(URL wsdlURL,
QName wsdlServiceName,
String portName,
Options options)
To create a AxisService for a given WSDL and the created client is most suitable for clinet side invocation not for server side invocation. |
static AxisService |
createService(String implClass,
AxisConfiguration axisConfig)
|
static AxisService |
createService(String implClass,
AxisConfiguration axisConfig,
Class messageReceiverClass)
To create an AxisService using given service impl class name fisrt generate schema corresponding to the given java class , next for each methods AxisOperation will be created. |
static AxisService |
createService(String implClass,
AxisConfiguration axisConfig,
Class messageReceiverClass,
String targetNameSpace,
String scheamNameSpace)
To create a service for a given java class with user defined schema and target namespaces |
void |
disEngageModule(AxisModule module)
|
void |
engageModule(AxisModule axisModule,
AxisConfiguration axisConfig)
Engages a module. |
AxisConfiguration |
getAxisConfiguration()
|
ClassLoader |
getClassLoader()
Method getClassLoader. |
ArrayList |
getControlOperations()
Gets the control operation which are added by module like RM. |
String |
getCustomSchemaNamePrefix()
|
String |
getCustomSchemaNameSuffix()
|
String |
getEndpoint()
get the endpoint |
Collection |
getEngagedModules()
Method getEngagedModules. |
String[] |
getExposeTransports()
|
URL |
getFileName()
|
Object |
getKey()
|
long |
getLastupdate()
|
MessageReceiver |
getMessageReceiver(String mepURL)
|
ModuleConfiguration |
getModuleConfig(QName moduleName)
|
ArrayList |
getModules()
|
String |
getName()
|
Map |
getNameSpacesMap()
|
AxisOperation |
getOperation(QName operationName)
Method getOperation. |
AxisOperation |
getOperationByAction(String action)
Returns the AxisOperation which has been mapped to the given action. |
AxisOperation |
getOperationBySOAPAction(String soapAction)
Returns the operation given a SOAP Action. |
Iterator |
getOperations()
Method getOperations. |
ArrayList |
getPublishedOperations()
Gets only the published operations. |
ArrayList |
getSchema()
|
org.apache.ws.commons.schema.XmlSchema |
getSchema(int index)
|
org.apache.ws.commons.schema.XmlSchemaElement |
getSchemaElement(QName elementQName)
|
Hashtable |
getSchemaMappingTable()
|
String |
getSchematargetNamespace()
|
String |
getSchematargetNamespacePrefix()
|
String |
getScope()
|
String |
getServiceDescription()
Gets the description about the service which is specified in services.xml. |
String |
getSoapNsUri()
get the SOAPVersion |
String |
getTargetNamespace()
|
String |
getTargetNamespacePrefix()
|
boolean |
isActive()
|
boolean |
isEnableAllTransport()
|
boolean |
isEngaged(QName moduleName)
|
boolean |
isSchemaLocationsAdjusted()
|
boolean |
isUseDefaultChains()
|
boolean |
isWsdlfound()
|
void |
mapActionToOperation(String action,
AxisOperation axisOperation)
Maps an action (aka WSA action) to the given operation. |
void |
populateSchemaMappings()
runs the schema mappings if it has not been run previously it is best that this logic be in the axis service since one can call the axis service to populate the schema mappings |
void |
printPolicy(OutputStream out)
|
void |
printPolicy(OutputStream out,
String operationName)
|
void |
printSchema(OutputStream out)
|
void |
printWSDL(OutputStream out)
Print the WSDL with a default URL |
void |
printWSDL(OutputStream out,
String requestIP)
|
void |
removeOperation(QName opName)
|
void |
setActive(boolean active)
|
void |
setClassLoader(ClassLoader classLoader)
Method setClassLoader. |
void |
setCustomSchemaNamePrefix(String customSchemaNamePrefix)
|
void |
setCustomSchemaNameSuffix(String customSchemaNameSuffix)
|
void |
setEndpoint(String endpoint)
|
void |
setExposeTransports(String[] exposeTransports)
|
void |
setFileName(URL fileName)
|
void |
setLastupdate()
Sets the current time as last update time of the service. |
void |
setName(String name)
|
void |
setNameSpacesMap(Map nameSpacesMap)
|
void |
setSchemaLocationsAdjusted(boolean schemaLocationsAdjusted)
|
void |
setSchemaMappingTable(Hashtable schemaMappingTable)
|
void |
setSchematargetNamespace(String schematargetNamespace)
|
void |
setSchematargetNamespacePrefix(String schematargetNamespacePrefix)
|
void |
setScope(String scope)
|
void |
setServiceDescription(String serviceDescription)
Sets the description about the service whish is specified in services.xml |
void |
setSoapNsUri(String soapNsUri)
|
void |
setTargetNamespace(String targetNamespace)
|
void |
setTargetNamespacePrefix(String targetNamespacePrefix)
|
void |
setUseDefaultChains(boolean useDefaultChains)
|
void |
setWsdlfound(boolean wsdlfound)
|
Methods inherited from class org.apache.axis2.description.AxisDescription |
addChild, addChild, addParameter, deserializeParameters, getChild, getChildren, getParameter, getParameters, getParent, getPolicyInclude, isParameterLocked, removeChild, removeParameter, setParent, setPolicyInclude |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AxisService()
public AxisService(String name)
Method Detail |
public boolean isSchemaLocationsAdjusted()
public void setSchemaLocationsAdjusted(boolean schemaLocationsAdjusted)
public Hashtable getSchemaMappingTable()
public void setSchemaMappingTable(Hashtable schemaMappingTable)
public String getCustomSchemaNamePrefix()
public void setCustomSchemaNamePrefix(String customSchemaNamePrefix)
public String getCustomSchemaNameSuffix()
public void setCustomSchemaNameSuffix(String customSchemaNameSuffix)
public String getSoapNsUri()
public void setSoapNsUri(String soapNsUri)
public String getEndpoint()
public void setEndpoint(String endpoint)
public void addMessageReceiver(String mepURL, MessageReceiver messageReceiver)
public MessageReceiver getMessageReceiver(String mepURL)
public void addModuleConfig(ModuleConfiguration moduleConfiguration)
moduleConfiguration
- public void addModuleOperations(AxisModule module, AxisConfiguration axisConfig) throws AxisFault
module
-
AxisFault
public void addModuleref(QName moduleref)
public void addOperation(AxisOperation axisOperation)
axisOperation
- public void engageModule(AxisModule axisModule, AxisConfiguration axisConfig) throws AxisFault
axisModule
-
AxisFault
public void mapActionToOperation(String action, AxisOperation axisOperation)
action
- the action keyaxisOperation
- the operation to map topublic void printSchema(OutputStream out) throws AxisFault
AxisFault
public org.apache.ws.commons.schema.XmlSchema getSchema(int index)
public void printPolicy(OutputStream out) throws AxisFault
AxisFault
public void printPolicy(OutputStream out, String operationName) throws AxisFault
AxisFault
public AxisConfiguration getAxisConfiguration()
public void printWSDL(OutputStream out, String requestIP) throws AxisFault
AxisFault
public void printWSDL(OutputStream out) throws AxisFault
out
-
AxisFault
public String getServiceDescription()
public ClassLoader getClassLoader()
public ArrayList getControlOperations()
public Collection getEngagedModules()
public URL getFileName()
public long getLastupdate()
public ModuleConfiguration getModuleConfig(QName moduleName)
public ArrayList getModules()
public String getName()
public AxisOperation getOperation(QName operationName)
operationName
-
public AxisOperation getOperationByAction(String action)
action
- the action key
public AxisOperation getOperationBySOAPAction(String soapAction)
soapAction
- SOAP Action defined for the particular Operation
public Iterator getOperations()
public ArrayList getPublishedOperations()
public void setServiceDescription(String serviceDescription)
serviceDescription
- public void setClassLoader(ClassLoader classLoader)
classLoader
- public void setFileName(URL fileName)
public void setLastupdate()
public void setName(String name)
public ArrayList getSchema()
public void addSchema(org.apache.ws.commons.schema.XmlSchema schema)
public void addSchema(Collection schemas)
public boolean isWsdlfound()
public void setWsdlfound(boolean wsdlfound)
public String getScope()
public void setScope(String scope)
scope
- - Available scopes :
Constants.SCOPE_APPLICATION
Constants.SCOPE_TRANSPORT_SESSION
Constants.SCOPE_SOAP_SESSION
Constants.SCOPE_REQUEST.equalspublic boolean isUseDefaultChains()
public void setUseDefaultChains(boolean useDefaultChains)
public Object getKey()
getKey
in class AxisDescription
public boolean isActive()
public void setActive(boolean active)
public String getSchematargetNamespace()
public void setSchematargetNamespace(String schematargetNamespace)
public String getSchematargetNamespacePrefix()
public void setSchematargetNamespacePrefix(String schematargetNamespacePrefix)
public String getTargetNamespace()
public void setTargetNamespace(String targetNamespace)
public String getTargetNamespacePrefix()
public void setTargetNamespacePrefix(String targetNamespacePrefix)
public org.apache.ws.commons.schema.XmlSchemaElement getSchemaElement(QName elementQName)
public boolean isEnableAllTransport()
public String[] getExposeTransports()
public void setExposeTransports(String[] exposeTransports)
public void disEngageModule(AxisModule module)
public boolean isEngaged(QName moduleName)
public static AxisService createClientSideAxisService(URL wsdlURL, QName wsdlServiceName, String portName, Options options) throws AxisFault
wsdlURL
- location of the WSDLwsdlServiceName
- name of the service to be invoke , if it is null then the first one will
be selected if there are more than oneportName
- name of the port , if there are more than one , if it is null then the
first one in the iterator will be selectedoptions
- Service client options, to set the target EPR
AxisFault
public static AxisService createClientSideAxisService(javax.wsdl.Definition wsdlDefinition, QName wsdlServiceName, String portName, Options options) throws AxisFault
AxisFault
public static AxisService createService(String implClass, AxisConfiguration axisConfig, Class messageReceiverClass) throws AxisFault
implClass
- axisConfig
-
AxisFault
public static AxisService createService(String implClass, AxisConfiguration axisConfig, Class messageReceiverClass, String targetNameSpace, String scheamNameSpace) throws AxisFault
implClass
- : full name of the classaxisConfig
- : currcent AxisConfgiurationmessageReceiverClass
- : Messge reciver that you want to usetargetNameSpace
- : Service namespacescheamNameSpace
- : Scheam Name space
AxisFault
public static AxisService createService(String implClass, AxisConfiguration axisConfig) throws AxisFault
AxisFault
public void removeOperation(QName opName)
public Map getNameSpacesMap()
public void setNameSpacesMap(Map nameSpacesMap)
public void populateSchemaMappings()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |