Class TransportStore
- java.lang.Object
-
- org.wso2.carbon.cloud.gateway.agent.service.TransportStore
-
public class TransportStore extends Object
Whenever a transport specific bundle drops in, TransportListener will load corresponding attributes in to the TransportStore. We only maintain a single instance of the TransportStore.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTransport(String name, org.wso2.carbon.core.transports.TransportService transportService, org.apache.axis2.engine.AxisConfiguration axisConfig)Store corresponding transport information to facilitate management through the management console.Map<String,org.wso2.carbon.core.transports.TransportService>getAvailableTransports()Get the set of available transports in a mapstatic TransportStoregetInstance()org.wso2.carbon.core.transports.TransportServicegetTransport(String protocol)voidremoveTransport(String name)
-
-
-
Method Detail
-
getInstance
public static TransportStore getInstance()
-
addTransport
public void addTransport(String name, org.wso2.carbon.core.transports.TransportService transportService, org.apache.axis2.engine.AxisConfiguration axisConfig)
Store corresponding transport information to facilitate management through the management console.- Parameters:
name- Name of the transport to be addedtransportService- TransportServiceaxisConfig- AxisConfiguration of the super tenant
-
removeTransport
public void removeTransport(String name)
-
getAvailableTransports
public Map<String,org.wso2.carbon.core.transports.TransportService> getAvailableTransports()
Get the set of available transports in a map- Returns:
- a map of transports
-
getTransport
public org.wso2.carbon.core.transports.TransportService getTransport(String protocol)
- Parameters:
protocol- name of the transport- Returns:
- a TransportInfo object for the specified transoport
-
-