public class TransportPersistenceManager extends AbstractPersistenceManager
axisConfig, configRegistry, fpm, omFactory, pf, WRITE_LOCK
Constructor and Description |
---|
TransportPersistenceManager(org.apache.axis2.engine.AxisConfiguration axisConfig)
Constructor gets the axis config and create reference to the config registry instances.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(String name,
boolean listener,
boolean enabled,
org.apache.axis2.description.Parameter p) |
String[] |
getEnabledTransports(boolean listener) |
org.apache.axiom.om.OMElement |
getTransportElement(String name,
boolean listener) |
org.apache.axis2.description.TransportInDescription |
getTransportListener(String name,
boolean init) |
org.wso2.carbon.registry.core.Resource |
getTransportResource(String name) |
org.apache.axis2.description.TransportOutDescription |
getTransportSender(String name,
boolean init) |
void |
removeParameter(String name,
boolean listener,
boolean enabled,
String paramName) |
void |
saveTransport(org.apache.axiom.om.OMElement element,
boolean enabled) |
void |
saveTransportConfiguration(String transport,
URL configFileURL)
This method checks whether the configuration of a particular transport is available in
the registry.
|
void |
saveTransportListener(org.apache.axis2.description.TransportInDescription transportIn,
boolean enabled) |
void |
saveTransportSender(org.apache.axis2.description.TransportOutDescription transportOut,
boolean enabled) |
void |
setTransportEnabled(String name,
boolean listener,
boolean enabled) |
void |
updateEnabledTransports(Collection<org.apache.axis2.description.TransportInDescription> listeners,
Collection<org.apache.axis2.description.TransportOutDescription> senders) |
convertStreamToString, getCurrentFPM, getExistingAxisModule, getModuleFilePM, getProperty, getPropertyValues, getServiceGroupFilePM, handleException, handleException, handleExceptionWithRollback, handleModuleForAxisDescription, isGloballyEngaged, loadDocumentation, loadParameters, loadPolicies, persistPolicyToRegistry, removeParameter, removeResource, updateParameter, writeAxisDescription, writeParameters
public TransportPersistenceManager(org.apache.axis2.engine.AxisConfiguration axisConfig) throws org.apache.axis2.AxisFault
axisConfig
- - AxisConfigurationorg.apache.axis2.AxisFault
- - if the config registry is not foundpublic void saveTransportListener(org.apache.axis2.description.TransportInDescription transportIn, boolean enabled) throws Exception
Exception
public void saveTransportSender(org.apache.axis2.description.TransportOutDescription transportOut, boolean enabled) throws Exception
Exception
public void saveTransport(org.apache.axiom.om.OMElement element, boolean enabled) throws Exception
Exception
public org.apache.axiom.om.OMElement getTransportElement(String name, boolean listener) throws Exception
Exception
public org.apache.axis2.description.TransportInDescription getTransportListener(String name, boolean init) throws Exception
Exception
public org.apache.axis2.description.TransportOutDescription getTransportSender(String name, boolean init) throws Exception
Exception
public void addParameter(String name, boolean listener, boolean enabled, org.apache.axis2.description.Parameter p) throws Exception
Exception
public void removeParameter(String name, boolean listener, boolean enabled, String paramName) throws Exception
Exception
public String[] getEnabledTransports(boolean listener) throws Exception
Exception
public org.wso2.carbon.registry.core.Resource getTransportResource(String name) throws Exception
Exception
public void setTransportEnabled(String name, boolean listener, boolean enabled) throws Exception
Exception
public void updateEnabledTransports(Collection<org.apache.axis2.description.TransportInDescription> listeners, Collection<org.apache.axis2.description.TransportOutDescription> senders) throws Exception
Exception
public void saveTransportConfiguration(String transport, URL configFileURL) throws Exception
transport
- Name of the transportconfigFileURL
- URL to the transport configuration file available in the transport bundleException
- on errorCopyright © 2016 WSO2 Inc. All rights reserved.