Package org.jitterbit.integration.client.server

Examples of org.jitterbit.integration.client.server.ServerAddress


        }
    }
   
    private void loginWithCredentials(LoginCredentials credentials, LoginCallback externalCallback) {
        try {
            ServerAddress address = credentials.getServerAddress();
            serverManager.getLoginService().getConfiguration().setServerName(address.toString());
        } catch (IllegalServerAddressException ex) {
            externalCallback.caught(ex);
            return;
        }
        UiJob job = new LoginJob(credentials, externalCallback);
View Full Code Here


    }

    @Override
    public org.jitterbit.integration.client.server.login.AuthenticateResult login(LoginCredentials credentials)
                    throws IntegrationServerException {
        ServerAddress address = credentials.getServerAddress();
        String userName = credentials.getUser();
        String password = credentials.getPasswordHash();
        String version = Versions.CURRENT.toString();
        // Configure the web service.
        AuthenticateServiceLocator locator = new AuthenticateServiceLocator();
        // We cannot call getConfiguration().configureWebservice() here,
        // because that would lead to infinite recursion since in order to configure
        // a web service, you need to login. So we simply build the url ourselves:
        StringBuilder url = credentials.isUsingHttps() ? new StringBuilder("https://") : new StringBuilder("http://");
        url.append(address.toString()).append(getConfiguration().getWsPath()).append(SERVICE_NAME);
    locator.setkonga_authenticateEndpointAddress(url.toString());

    try {
            WsKeyValuePairs keyValues = createKeyValuePairsToSendToServer();
            AuthenticateResult ws_res = locator.getkonga_authenticate().loginWithVersionAndKeyValues(
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.server.ServerAddress

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.