public class AxisConfiguration extends AxisDescription
| Modifier and Type | Field and Description |
|---|---|
protected PhasesInfo |
phasesinfo |
engagedModules, parameterObservers, parentCLASSLOADER_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_NAME, STYLE_KEY| Constructor and Description |
|---|
AxisConfiguration()
Constructor AxisConfiguration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDataLocator(java.lang.String dialect,
AxisDataLocator dataLocator)
For internal used only! To store instance of DataLocator when it is first loaded.
|
void |
addDataLocatorClassNames(java.lang.String dialect,
java.lang.String classname)
Allows to define/configure Data Locator for specified dialect at Axis 2 Configuration.
|
void |
addDefaultModuleVersion(java.lang.String moduleName,
java.lang.String moduleVersion)
Adds a default module version, which can be done either programmatically
or by using axis2.xml.
|
void |
addFaultyServiceDuetoModule(java.lang.String moduleName,
FaultyServiceData faultyServiceData)
Updates the map that keeps track of faulty services due to modules
|
void |
addGlobalModuleRef(java.lang.String moduleName)
Add an AxisModule to the list of globally deployed modules.
|
void |
addLocalPolicyAssertion(javax.xml.namespace.QName name) |
void |
addMessageBuilder(java.lang.String contentType,
Builder messageBuilder)
Register a messageBuilder implementation against a content type.
|
void |
addMessageFormatter(java.lang.String contentType,
MessageFormatter messageFormatter)
Register a messageFormatter implementation against a content type.
|
void |
addMessageReceiver(java.lang.String mepURL,
MessageReceiver messageReceiver) |
void |
addModule(AxisModule module)
Add an available Module to this configuration
|
void |
addModuleConfig(ModuleConfiguration moduleConfiguration)
Adds module configuration, if there is a moduleConfig tag in service.
|
void |
addObservers(AxisObserver axisObserver)
Register given AxisObserver object to the
AxisConfiguration. |
void |
addService(AxisService service)
Add an AxisService to our global configuration.
|
void |
addServiceGroup(AxisServiceGroup axisServiceGroup) |
void |
addServiceToExistingServiceGroup(AxisService axisService,
java.lang.String serviceGroupName)
This method is used to add a service to an existing active service group in the axis configuration
|
void |
addTargetResolver(TargetResolver tr) |
void |
addToAllServicesMap(AxisService axisService) |
void |
addTransportIn(TransportInDescription transport)
Add an incoming transport description (i.e.
|
void |
addTransportOut(TransportOutDescription transport)
Add an outgoing transport description (i.e.
|
void |
cleanup() |
void |
deployModule(java.lang.String moduleFileName) |
void |
engageGlobalModules()
Engage all the previously added global modules.
|
void |
engageModule(javax.xml.namespace.QName moduleref)
Deprecated.
Please use the String version instead
|
void |
engageModule(java.lang.String moduleref)
Engages the default module version corresponding to given module name ,
or if the module name contains version number in it then it will engage
the correct module.
|
void |
engageModule(java.lang.String moduleName,
java.lang.String versionID)
Engages a module using given name and its version ID.
|
ClusteringAgent |
getClusteringAgent() |
AxisConfigurator |
getConfigurator() |
AxisDataLocator |
getDataLocator(java.lang.String dialect)
Return DataLocator instance for specified dialect.
|
java.lang.String |
getDataLocatorClassName(java.lang.String dialect)
Return classname of DataLocator configured for specified dialect.
|
AxisModule |
getDefaultModule(java.lang.String moduleName) |
java.lang.String |
getDefaultModuleVersion(java.lang.String moduleName) |
java.util.Hashtable<java.lang.String,java.lang.String> |
getFaultyModules() |
java.util.Hashtable<java.lang.String,java.lang.String> |
getFaultyServices() |
java.util.Map<java.lang.String,FaultyServiceData> |
getFaultyServicesDuetoModule(java.lang.String moduleName)
Returns a map which contains the faulty services due a particular module.
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,FaultyServiceData>> |
getFaultyServicesDuetoModules()
Returns the map which keeps track of faulty services due to modules.
|
java.util.List<java.lang.String> |
getGlobalModules()
Deprecated.
please use addGlobalModule()
|
java.util.List<Phase> |
getInFaultFlowPhases() |
java.util.List<Phase> |
getInFlowPhases() |
java.lang.Object |
getKey() |
java.util.List<javax.xml.namespace.QName> |
getLocalPolicyAssertions() |
Builder |
getMessageBuilder(java.lang.String contentType)
Get a Builder for a particular content type.
|
Builder |
getMessageBuilder(java.lang.String contentType,
boolean defaultBuilder) |
MessageFormatter |
getMessageFormatter(java.lang.String contentType)
Get a MessageFormatter for the specified content type.
|
MessageReceiver |
getMessageReceiver(java.lang.String mepURL) |
AxisModule |
getModule(java.lang.String name)
Get an AxisModule by name.
|
AxisModule |
getModule(java.lang.String moduleName,
java.lang.String moduleVersion)
Return the module having name=moduleName & version=moduleVersion
|
java.lang.ClassLoader |
getModuleClassLoader()
Get the class loader that becomes the parent of all the modules
|
ModuleConfiguration |
getModuleConfig(java.lang.String moduleName) |
java.util.HashMap<java.lang.String,AxisModule> |
getModules() |
java.util.List<AxisModule> |
getModulesForPolicyNamesapce(java.lang.String namesapce) |
java.util.ArrayList<AxisObserver> |
getObserversList()
This method returns read-only list of AxisObservers registered with this
AxisConfiguration. |
java.util.List<Phase> |
getOutFaultFlowPhases() |
java.util.List<Phase> |
getOutFlowPhases() |
PhasesInfo |
getPhasesInfo() |
java.net.URL |
getRepository() |
org.wso2.securevault.SecretResolver |
getSecretResolver() |
AxisService |
getService(java.lang.String name)
Method getService.
|
java.lang.ClassLoader |
getServiceClassLoader() |
AxisService |
getServiceForActivation(java.lang.String serviceName)
Service can start and stop, once stopped it cannot be accessed, so we
need a way to get the service even if service is not active.
|
AxisServiceGroup |
getServiceGroup(java.lang.String serviceNameAndGroupString) |
java.util.Iterator<AxisServiceGroup> |
getServiceGroups() |
java.util.HashMap<java.lang.String,AxisService> |
getServices() |
java.lang.ClassLoader |
getSystemClassLoader() |
TargetResolver |
getTargetResolverChain()
getTargetResolverChain returns an instance of
TargetResolver which iterates over the registered
TargetResolvers, calling each one in turn when
resolveTarget is called.
|
TransactionConfiguration |
getTransactionConfiguration() |
TransportInDescription |
getTransportIn(java.lang.String name) |
TransportOutDescription |
getTransportOut(java.lang.String name) |
java.util.HashMap<java.lang.String,TransportInDescription> |
getTransportsIn() |
java.util.HashMap<java.lang.String,TransportOutDescription> |
getTransportsOut() |
void |
insertPhase(Deployable d,
int flow)
This method can be used to insert a phase at the runtime for a given location
And the relative location can be specified by beforePhase and afterPhase.
|
boolean |
isAssertionLocal(javax.xml.namespace.QName name) |
boolean |
isChildFirstClassLoading() |
boolean |
isEngaged(AxisModule axisModule) |
boolean |
isEngaged(javax.xml.namespace.QName qname)
Deprecated.
|
boolean |
isEngaged(java.lang.String moduleId)
Check if a given module is engaged at this level.
|
boolean |
isStart() |
void |
notifyObservers(AxisEvent event,
AxisModule moule) |
void |
notifyObservers(AxisEvent event,
AxisService service) |
void |
notifyObservers(AxisEvent event,
AxisServiceGroup serviceGroup) |
void |
onDisengage(AxisModule module)
To dis-engage a module from the system.
|
void |
onEngage(AxisModule module,
AxisDescription engager) |
void |
registerLocalPolicyAssertions(AxisModule axisModule) |
void |
registerModulePolicySupport(AxisModule axisModule) |
void |
removeFaultyService(java.lang.String key) |
void |
removeFaultyServiceDuetoModule(java.lang.String moduleName,
java.lang.String serviceGroupName)
Removes a faulty service for a given module from the internal map.
|
void |
removeLocalPolicyAssertion(javax.xml.namespace.QName name) |
void |
removeModule(java.lang.String module)
Deprecated.
|
void |
removeModule(java.lang.String moduleName,
java.lang.String moduleVersion)
Remove a module with moduleName & moduleVersion
|
void |
removeModule(java.lang.String moduleName,
Version moduleVersion)
Remove a module with moduleName & moduleVersion
|
void |
removeObserver(AxisObserver axisObserver)
Unregister the given AxisObserver object if it is registered with
the
AxisConfiguration. |
void |
removeService(java.lang.String name)
Remove a service.
|
AxisServiceGroup |
removeServiceGroup(java.lang.String serviceGroupName) |
void |
setClusteringAgent(ClusteringAgent clusteringAgent) |
void |
setConfigurator(AxisConfigurator configurator) |
void |
setGlobalOutPhase(java.util.List<Phase> outPhases) |
void |
setInFaultPhases(java.util.List<Phase> list)
Set the inbound fault phases
TODO: Passing mutable lists like this and using them directly is bad practice.
|
void |
setInPhasesUptoAndIncludingPostDispatch(java.util.List<Phase> inPhasesUptoAndIncludingPostDispatch) |
void |
setModuleClassLoader(java.lang.ClassLoader classLoader) |
void |
setOutFaultPhases(java.util.List<Phase> list)
Set the outbound fault phases
TODO: Passing mutable lists like this and using them directly is bad practice.
|
void |
setPhasesInfo(PhasesInfo phasesInfo) |
void |
setRepository(java.net.URL axis2Repository) |
void |
setSecretResolver(org.wso2.securevault.SecretResolver secretResolver) |
void |
setServiceClassLoader(java.lang.ClassLoader classLoader) |
void |
setStart(boolean start) |
void |
setSystemClassLoader(java.lang.ClassLoader classLoader) |
void |
setTransactionConfig(TransactionConfiguration transactionConfiguration) |
void |
startService(java.lang.String serviceName) |
void |
stopService(java.lang.String serviceName) |
void |
validateSystemPredefinedPhases()
Checks whether the system pre-defined phases
for all the flows, have been changed.
|
addChild, addChild, addParameter, addParameter, addParameterObserver, applyPolicy, applyPolicy, deserializeParameters, disengageModule, engageModule, engageModule, getAxisConfiguration, getChild, getChildren, getDocumentation, getDocumentationNode, getEngagedModules, getParameter, getParameters, getParameterValue, getParent, getPolicyInclude, getPolicySubject, isParameterLocked, isParameterTrue, removeChild, removeParameter, removeParameterObserver, setDocumentation, setDocumentation, setParent, setPolicyIncludeprotected PhasesInfo phasesinfo
public void addMessageReceiver(java.lang.String mepURL,
MessageReceiver messageReceiver)
public void addMessageBuilder(java.lang.String contentType,
Builder messageBuilder)
contentType - the relevant content-type (i.e. "text/xml")messageBuilder - a Builder implementationpublic void addMessageFormatter(java.lang.String contentType,
MessageFormatter messageFormatter)
contentType - the relevant content-type (i.e. "text/xml")messageFormatter - a MessageFormatter implementationpublic void addModule(AxisModule module) throws AxisFault
module - an AxisModuleAxisFault - in case of errorpublic void deployModule(java.lang.String moduleFileName)
throws DeploymentException
DeploymentExceptionpublic void removeModule(java.lang.String module)
removeModule(String,String)module - name of module to removepublic void removeModule(java.lang.String moduleName,
java.lang.String moduleVersion)
moduleName - the name of the module to removemoduleVersion - the version of the module to removepublic void removeModule(java.lang.String moduleName,
Version moduleVersion)
moduleName - the name of the module to removemoduleVersion - the version of the module to removepublic void addModuleConfig(ModuleConfiguration moduleConfiguration)
moduleConfiguration - a ModuleConfiguration to rememberpublic void addObservers(AxisObserver axisObserver)
AxisConfiguration.axisObserver - the axis observerpublic void removeObserver(AxisObserver axisObserver)
AxisConfiguration.axisObserver - the axis observerpublic void addService(AxisService service) throws AxisFault
service - an AxisService to deploy.AxisFault - if something goes wrong (invalid service, service is
already deployed, etc...)public void addServiceGroup(AxisServiceGroup axisServiceGroup) throws AxisFault
AxisFaultpublic void addServiceToExistingServiceGroup(AxisService axisService, java.lang.String serviceGroupName) throws AxisFault
axisService - service to be added to the existing service group providedserviceGroupName - name of the service group which should be existing in the axis configurationAxisFault - in case of an error in adding the service to the group specified or if the group is not existingpublic void addToAllServicesMap(AxisService axisService) throws AxisFault
AxisFaultpublic AxisServiceGroup removeServiceGroup(java.lang.String serviceGroupName) throws AxisFault
AxisFaultpublic void addTransportIn(TransportInDescription transport) throws AxisFault
transport - TransportInDescription to add.AxisFaultpublic void addTransportOut(TransportOutDescription transport) throws AxisFault
transport - TransportOutDescription to add.AxisFaultpublic void engageModule(javax.xml.namespace.QName moduleref)
throws AxisFault
moduleref - QName of module to engageAxisFaultpublic void engageModule(java.lang.String moduleref)
throws AxisFault
moduleref - name of module to engageAxisFaultpublic void engageModule(java.lang.String moduleName,
java.lang.String versionID)
throws AxisFault
moduleName - name of module to engageversionID - version of module to engageAxisFaultpublic void onEngage(AxisModule module, AxisDescription engager) throws AxisFault
onEngage in class AxisDescriptionAxisFaultpublic void onDisengage(AxisModule module) throws AxisFault
onDisengage in class AxisDescriptionmodule - module to disengageAxisFaultpublic void notifyObservers(AxisEvent event, AxisService service)
public void notifyObservers(AxisEvent event, AxisModule moule)
public void notifyObservers(AxisEvent event, AxisServiceGroup serviceGroup)
public void removeService(java.lang.String name)
throws AxisFault
name - name of service to removeAxisFaultpublic void addGlobalModuleRef(java.lang.String moduleName)
moduleName - name of AxisModule to add to list.public void engageGlobalModules()
throws AxisFault
AxisFault - if an individual engageModule() failspublic java.util.Hashtable<java.lang.String,java.lang.String> getFaultyModules()
public java.util.Hashtable<java.lang.String,java.lang.String> getFaultyServices()
public void addFaultyServiceDuetoModule(java.lang.String moduleName,
FaultyServiceData faultyServiceData)
moduleName - This service has become faulty due this module.faultyServiceData - Data that are required when recovering the faulty service.public java.util.Map<java.lang.String,FaultyServiceData> getFaultyServicesDuetoModule(java.lang.String moduleName)
moduleName - name of the module about which to inquirepublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,FaultyServiceData>> getFaultyServicesDuetoModules()
public void removeFaultyServiceDuetoModule(java.lang.String moduleName,
java.lang.String serviceGroupName)
moduleName - name of the module to look upserviceGroupName - name of the service group to removepublic void removeFaultyService(java.lang.String key)
public java.util.List<Phase> getOutFlowPhases()
public java.util.List<Phase> getInFaultFlowPhases()
public java.util.List<Phase> getInFlowPhases()
public MessageReceiver getMessageReceiver(java.lang.String mepURL)
public Builder getMessageBuilder(java.lang.String contentType)
contentType - the desired content typepublic Builder getMessageBuilder(java.lang.String contentType, boolean defaultBuilder)
public MessageFormatter getMessageFormatter(java.lang.String contentType)
contentType - content type to look uppublic AxisModule getModule(java.lang.String name)
name - module name to look uppublic AxisModule getModule(java.lang.String moduleName, java.lang.String moduleVersion)
moduleName - The module namemoduleVersion - The version of the modulepublic java.lang.ClassLoader getModuleClassLoader()
public ModuleConfiguration getModuleConfig(java.lang.String moduleName)
public java.util.HashMap<java.lang.String,AxisModule> getModules()
public java.util.List<java.lang.String> getGlobalModules()
public java.util.List<Phase> getOutFaultFlowPhases()
public PhasesInfo getPhasesInfo()
public java.net.URL getRepository()
public AxisService getService(java.lang.String name) throws AxisFault
name - the name of the service to look upAxisFaultpublic AxisService getServiceForActivation(java.lang.String serviceName)
serviceName - name to look uppublic java.lang.ClassLoader getServiceClassLoader()
public AxisServiceGroup getServiceGroup(java.lang.String serviceNameAndGroupString)
public java.util.Iterator<AxisServiceGroup> getServiceGroups()
public java.util.HashMap<java.lang.String,AxisService> getServices()
public java.lang.ClassLoader getSystemClassLoader()
public TransportInDescription getTransportIn(java.lang.String name)
public TransportOutDescription getTransportOut(java.lang.String name)
public java.util.HashMap<java.lang.String,TransportInDescription> getTransportsIn()
public java.util.HashMap<java.lang.String,TransportOutDescription> getTransportsOut()
public boolean isEngaged(javax.xml.namespace.QName qname)
isEngaged(String)qname - QName of the modulepublic boolean isEngaged(java.lang.String moduleId)
AxisDescriptionisEngaged in class AxisDescriptionmoduleId - module to investigate.public boolean isEngaged(AxisModule axisModule)
isEngaged in class AxisDescriptionpublic void setGlobalOutPhase(java.util.List<Phase> outPhases)
public void setInFaultPhases(java.util.List<Phase> list)
list - a List of Phases which will become our inbound fault flowpublic void setInPhasesUptoAndIncludingPostDispatch(java.util.List<Phase> inPhasesUptoAndIncludingPostDispatch)
public void setModuleClassLoader(java.lang.ClassLoader classLoader)
public void setOutFaultPhases(java.util.List<Phase> list)
list - a List of Phases which will become our outbound fault flowpublic void setPhasesInfo(PhasesInfo phasesInfo)
public void setRepository(java.net.URL axis2Repository)
public void setServiceClassLoader(java.lang.ClassLoader classLoader)
public void setSystemClassLoader(java.lang.ClassLoader classLoader)
public void addDefaultModuleVersion(java.lang.String moduleName,
java.lang.String moduleVersion)
moduleName - the name of the module for which we're setting the default versionmoduleVersion - the default versionpublic java.lang.String getDefaultModuleVersion(java.lang.String moduleName)
public AxisModule getDefaultModule(java.lang.String moduleName)
public ClusteringAgent getClusteringAgent()
public void setClusteringAgent(ClusteringAgent clusteringAgent)
public TransactionConfiguration getTransactionConfiguration()
public void setTransactionConfig(TransactionConfiguration transactionConfiguration)
public java.lang.Object getKey()
getKey in class AxisDescriptionpublic void stopService(java.lang.String serviceName)
throws AxisFault
AxisFaultpublic void startService(java.lang.String serviceName)
throws AxisFault
AxisFaultpublic java.util.List<AxisModule> getModulesForPolicyNamesapce(java.lang.String namesapce)
public void registerModulePolicySupport(AxisModule axisModule)
public void registerLocalPolicyAssertions(AxisModule axisModule)
public java.util.ArrayList<AxisObserver> getObserversList()
AxisConfiguration.public boolean isStart()
public void setStart(boolean start)
public TargetResolver getTargetResolverChain()
public void addTargetResolver(TargetResolver tr)
public void addLocalPolicyAssertion(javax.xml.namespace.QName name)
public java.util.List<javax.xml.namespace.QName> getLocalPolicyAssertions()
public void removeLocalPolicyAssertion(javax.xml.namespace.QName name)
public boolean isAssertionLocal(javax.xml.namespace.QName name)
public void addDataLocatorClassNames(java.lang.String dialect,
java.lang.String classname)
dialect- - an absolute URI represents the format and version of dataclassname - - class name of the Data Locator configured to support retrieval
for the specified dialect.public void addDataLocator(java.lang.String dialect,
AxisDataLocator dataLocator)
dialect- - an absolute URI represents the format and version of datadataLocator - - specified an DataLocator instance to support retrieval
of the specified dialect.public AxisDataLocator getDataLocator(java.lang.String dialect)
dialect - the dialect to look uppublic java.lang.String getDataLocatorClassName(java.lang.String dialect)
dialect - the dialect to look uppublic void validateSystemPredefinedPhases()
throws DeploymentException
DeploymentExceptionpublic AxisConfigurator getConfigurator()
public void setConfigurator(AxisConfigurator configurator)
public void cleanup()
public void insertPhase(Deployable d, int flow) throws AxisFault
d - the Deployable representing the Phase to deployflow - the type of the flowAxisFault - : If something went wrongpublic boolean isChildFirstClassLoading()
public org.wso2.securevault.SecretResolver getSecretResolver()
public void setSecretResolver(org.wso2.securevault.SecretResolver secretResolver)
Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.