Examples of connect()


Examples of org.apache.cactus.internal.client.connector.http.HttpClientConnectionHelper.connect()

            WebRequest request =
                new WebRequestImpl((WebConfiguration) theConfiguration);

            // Make the connection using a default web request.
            connection = helper.connect(request, theConfiguration);

            checkPreAuthResponse(connection);
        }
        catch (Throwable e)
        {
View Full Code Here

Examples of org.apache.camel.component.http.CamelServlet.connect()

   
    public void connect(HttpConsumer consumer) throws Exception {
        ServletEndpoint endpoint = (ServletEndpoint) consumer.getEndpoint();
        CamelServlet servlet = getCamelServlet(endpoint.getServletName());
        ObjectHelper.notNull(servlet, "CamelServlet");
        servlet.connect(consumer);
    }

    public void disconnect(HttpConsumer consumer) throws Exception {
        ServletEndpoint endpoint = (ServletEndpoint) consumer.getEndpoint();
        CamelServlet servlet = getCamelServlet(endpoint.getServletName());
View Full Code Here

Examples of org.apache.cassandra.stress.util.JavaDriverClient.connect()

                if (client != null)
                    return client;

                EncryptionOptions.ClientEncryptionOptions encOptions = transport.getEncryptionOptions();
                JavaDriverClient c = new JavaDriverClient(currentNode, port.nativePort, encOptions);
                c.connect(mode.compression());
                c.execute("USE \"" + schema.keyspace + "\";", org.apache.cassandra.db.ConsistencyLevel.ONE);
                return client = c;
            }
        }
        catch (Exception e)
View Full Code Here

Examples of org.apache.cassandra.transport.SimpleClient.connect()

    {
        try
        {
            String currentNode = nodes[Stress.randomizer.nextInt(nodes.length)];
            SimpleClient client = new SimpleClient(currentNode, 9042);
            client.connect(false);
            client.execute("USE \"Keyspace1\";", org.apache.cassandra.db.ConsistencyLevel.ONE);
            return client;
        }
        catch (Exception e)
        {
View Full Code Here

Examples of org.apache.catalina.startup.SimpleHttpClient.connect()

                "Host: a" + SimpleHttpClient.CRLF + SimpleHttpClient.CRLF;

        client.setPort(getPort());
        client.setRequest(new String[] {request});

        client.connect();
        client.sendRequest();

        for (int i = 0; i < 10; i++) {
            System.out.println(client.readLine());
        }
View Full Code Here

Examples of org.apache.catalina.tribes.tcp.nio.NioSender.connect()

        NioSender sender = new NioSender(mbr);
        sender.setWaitForAck(false);
        sender.setDirect(true);
        sender.setSelector(selector);
        sender.setMessage(XByteBuffer.createDataPackage(getMessage(mbr)));
        sender.connect();
    }

    public void run() {
        while (true) {
View Full Code Here

Examples of org.apache.catalina.tribes.transport.nio.NioSender.connect()

        NioSender sender = new NioSender();
        sender.setDestination(mbr);
        sender.setDirectBuffer(true);
        sender.setSelector(selector);
        sender.setMessage(XByteBuffer.createDataPackage(getMessage(mbr)));
        sender.connect();
    }

    public void run() {
        while (true) {
View Full Code Here

Examples of org.apache.chemistry.opencmis.client.filecopy.FileCopier.connect()

        System.out.println("Folder id used as root: " + options.valueOf(fRootFolder));
       
       
        Map<String, String> parameters = getConnectionParameters(getBinding(), repoId);
        FileCopier fc = new FileCopier();
        fc.connect(parameters);
        fc.copyRecursive(name, folderId);
    }
       
    private void transferFilesTest(OptionSet options) {
        String fileName = options.valueOf(fLocalFile);
View Full Code Here

Examples of org.apache.commons.httpclient.ProxyClient.connect()

            client.getHostConfiguration().setHost(host, port);
            String proxyHost = proxyAddress.getAddress().toString().substring(0, proxyAddress.getAddress().toString().indexOf("/"));
            client.getHostConfiguration().setProxy(proxyHost, proxyAddress.getPort());
           
       
            ProxyClient.ConnectResponse response = client.connect();
            socket = response.getSocket();
            if (socket == null) {
                ConnectMethod method = response.getConnectMethod();
                // Read the proxy's HTTP response.
                if(method.getStatusLine().toString().matches("HTTP/1\\.\\d 407 Proxy Authentication Required")) {
View Full Code Here

Examples of org.apache.commons.net.CharGenTCPClient.connect()

        CharGenTCPClient client = new CharGenTCPClient();
        BufferedReader chargenInput;

        // We want to timeout if a response takes longer than 60 seconds
        client.setDefaultTimeout(60000);
        client.connect(host);
        chargenInput =
            new BufferedReader(new InputStreamReader(client.getInputStream()));

        // We assume the chargen service outputs lines, but it really doesn't
        // have to, so this code might actually not work if no newlines are
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.