Package org.wso2.carbon.core.transports

Examples of org.wso2.carbon.core.transports.TransportService


     * @throws Exception on error
     */
    public TransportParameter[] getServiceSpecificInParameters(String transport,
                                                               String service) throws Exception {

        TransportService trpService = TransportStore.getInstance().getTransport(transport);
        if (service != null) {
            return trpService.getServiceLevelTransportParameters(service, true, getAxisConfig());
        }
        return null;
    }
View Full Code Here


     * @throws Exception on error
     */
    public TransportParameter[] getServiceSpecificOutParameters(String transport,
                                                                String service) throws Exception {

        TransportService trpService = TransportStore.getInstance().getTransport(transport);
        if (service != null) {
            return trpService.getServiceLevelTransportParameters(service, false, getAxisConfig());
        }
        return null;
    }
View Full Code Here

     */
    public void updateServiceSpecificInParameters(String transport, String service,
                                                  TransportParameter[] params) throws Exception {


        TransportService trpService = TransportStore.getInstance().getTransport(transport);
        if (trpService != null) {
            trpService.updateServiceLevelTransportParameters(service, params, true, getConfigContext());
        } else {
            throw new Exception("Transport management service is not available for : " + transport);
        }
    }
View Full Code Here

     * @throws Exception on error
     */
    public void updateServiceSpecificOutParameters(String transport, String service,
                                                  TransportParameter[] params) throws Exception {

        TransportService trpService = TransportStore.getInstance().getTransport(transport);
        if (trpService != null) {
            trpService.updateServiceLevelTransportParameters(service, params, false, getConfigContext());
        } else {
            throw new Exception("Transport management service is not available for : " + transport);
        }
    }
View Full Code Here

            throw new Exception("Transport management service is not available for : " + transport);
        }
    }

    public void disableListener(String transport) throws Exception {
        TransportService trpService = TransportStore.getInstance().getTransport(transport);
        if (trpService != null) {
            trpService.disableTransport(true, getAxisConfig());
        }
    }
View Full Code Here

            trpService.disableTransport(true, getAxisConfig());
        }
    }

    public void disableSender(String transport) throws Exception {
        TransportService trpService = TransportStore.getInstance().getTransport(transport);
        if (trpService != null) {
            trpService.disableTransport(false, getAxisConfig());
        }
    }
View Full Code Here

            trpService.disableTransport(false, getAxisConfig());
        }
    }

    public boolean dependenciesAvailable(String transport, TransportParameter[] params) throws Exception {
        TransportService trpService = TransportStore.getInstance().getTransport(transport);
        if (trpService == null) {
            throw new Exception("The transport management service for " + transport + " is not" +
                    " available in the transport store");
        }

        return trpService.dependenciesAvailable(params);
    }
View Full Code Here

    TransportParameter[] params;
    AxisService service;
    String factoryName;
    TransportParameter[] tempParams;

        TransportService trpService = JMSServiceHolder.getInstance().getService();
    params = trpService.getServiceLevelTransportParameters(serviceName, true, getAxisConfig());
        service = axisConfig.getServiceForActivation(serviceName);

        if (service.getParameter(CONNECTION_FACTORY) == null) {
      // services.xml defines NO connection factory - let's settle with
      // the default one.
View Full Code Here

   * @param serviceName Service name corresponding to the parameters are required.
   * @return TransportParameter[]
   * @throws Exception on error
   */
  public TransportParameter[] getServiceSpecificOutParameters(String serviceName) throws Exception {
    TransportService trpService = JMSServiceHolder.getInstance().getService();
        return trpService.getServiceLevelTransportParameters(serviceName, false, getAxisConfig());
  }
View Full Code Here

   *
   * @param inParams TransportParameter
   * @throws Exception on error
   */
  public void updateGloballyDefinedInParameters(TransportParameter[] inParams) throws Exception {
    TransportService trpService = JMSServiceHolder.getInstance().getService();
        if (trpService.dependenciesAvailable(inParams)) {
            trpService.updateGlobalTransportParameters(inParams, true, getConfigContext());
        } else {
            log.warn("Initial factory class cannot be found");
        }
    }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.core.transports.TransportService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.