Examples of ApplicationManagementServiceStub


Examples of org.apache.stratos.adc.mgt.stub.ApplicationManagementServiceStub

    HttpTransportProperties.Authenticator authenticator = new HttpTransportProperties.Authenticator();
        authenticator.setUsername(username);
        authenticator.setPassword(password);
        authenticator.setPreemptiveAuthentication(true);
   
        ApplicationManagementServiceStub stub;
        ConfigurationContext configurationContext = null;
        try {
            configurationContext = ConfigurationContextFactory.createDefaultConfigurationContext();
        } catch (Exception e) {
            String msg = "Backend error occurred. Please contact the service admins!";
            throw new AxisFault(msg, e);
        }
        HashMap<String, TransportOutDescription> transportsOut = configurationContext
                .getAxisConfiguration().getTransportsOut();
        for (TransportOutDescription transportOutDescription : transportsOut.values()) {
            transportOutDescription.getSender().init(configurationContext, transportOutDescription);
        }
        stub = new ApplicationManagementServiceStub(configurationContext, serverURL + "/services/ApplicationManagementService");
        ServiceClient client = stub._getServiceClient();
        Options option = client.getOptions();
        option.setManageSession(true);
        option.setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE, authenticator);
        option.setTimeOutInMilliSeconds(300000);
        this.stub = stub;
View Full Code Here

Examples of org.apache.stratos.adc.mgt.stub.ApplicationManagementServiceStub

      throw new RuntimeException("Session has expired");
    }
    String serviceURL = backendServerURL + "ApplicationManagementService";
    bundle = ResourceBundle.getBundle(BUNDLE, locale);

    stub = new ApplicationManagementServiceStub(configCtx, serviceURL);
    ServiceClient client = stub._getServiceClient();
    Options option = client.getOptions();
    option.setManageSession(true);
    option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
    option.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
View Full Code Here

Examples of org.apache.stratos.adc.mgt.stub.ApplicationManagementServiceStub

        option.setManageSession(true);
        option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
        option.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);

        String appServiceURL = backendServerURL + "ApplicationManagementService";
        appMgtStub = new ApplicationManagementServiceStub(configCtx, appServiceURL);
        ServiceClient appMgtClient = appMgtStub._getServiceClient();
        Options appMgtClientOptions = appMgtClient.getOptions();
        appMgtClientOptions.setManageSession(true);
        appMgtClientOptions.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
        appMgtClientOptions.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
View Full Code Here

Examples of org.apache.stratos.manager.stub.ApplicationManagementServiceStub

      throw new RuntimeException("Session has expired");
    }
    String serviceURL = backendServerURL + "ApplicationManagementService";
    bundle = ResourceBundle.getBundle(BUNDLE, locale);

    stub = new ApplicationManagementServiceStub(configCtx, serviceURL);
    ServiceClient client = stub._getServiceClient();
    Options option = client.getOptions();
    option.setManageSession(true);
    option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
    option.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
View Full Code Here

Examples of org.apache.stratos.manager.stub.ApplicationManagementServiceStub

        option.setManageSession(true);
        option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
        option.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);

        String appServiceURL = backendServerURL + "ApplicationManagementService";
        appMgtStub = new ApplicationManagementServiceStub(configCtx, appServiceURL);
        ServiceClient appMgtClient = appMgtStub._getServiceClient();
        Options appMgtClientOptions = appMgtClient.getOptions();
        appMgtClientOptions.setManageSession(true);
        appMgtClientOptions.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
        appMgtClientOptions.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
View Full Code Here

Examples of org.apache.stratos.manager.stub.ApplicationManagementServiceStub

    HttpTransportProperties.Authenticator authenticator = new HttpTransportProperties.Authenticator();
        authenticator.setUsername(username);
        authenticator.setPassword(password);
        authenticator.setPreemptiveAuthentication(true);
   
        ApplicationManagementServiceStub stub;
        ConfigurationContext configurationContext = null;
        try {
            configurationContext = ConfigurationContextFactory.createDefaultConfigurationContext();
        } catch (Exception e) {
            String msg = "Backend error occurred. Please contact the service admins!";
            throw new AxisFault(msg, e);
        }
        HashMap<String, TransportOutDescription> transportsOut = configurationContext
                .getAxisConfiguration().getTransportsOut();
        for (TransportOutDescription transportOutDescription : transportsOut.values()) {
            transportOutDescription.getSender().init(configurationContext, transportOutDescription);
        }
        stub = new ApplicationManagementServiceStub(configurationContext, serverURL + "/services/ApplicationManagementService");
        ServiceClient client = stub._getServiceClient();
        Options option = client.getOptions();
        option.setManageSession(true);
        option.setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE, authenticator);
        option.setTimeOutInMilliSeconds(300000);
        this.stub = stub;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.