Package org.apache.http.params

Examples of org.apache.http.params.DefaultedHttpParams


            try {
                HttpResponse response = this.responseFactory.newHttpResponse(
                        HttpVersion.HTTP_1_0, HttpStatus.SC_BAD_REQUEST, context);
                response.setParams(
                        new DefaultedHttpParams(this.params, response.getParams()));
                response.addHeader(HTTP.CONN_DIRECTIVE, HTTP.CONN_CLOSE);
                // Pre-process HTTP request
                context.setAttribute(ExecutionContext.HTTP_CONNECTION, conn);
                context.setAttribute(ExecutionContext.HTTP_REQUEST, null);
                this.httpProcessor.process(response, context);
View Full Code Here


                HttpHost targetHost = proxyTask.getTarget();
               
                try {
                   
                    request.setParams(
                            new DefaultedHttpParams(request.getParams(), this.params));
                   
                    // Pre-process HTTP request
                    context.setAttribute(ExecutionContext.HTTP_CONNECTION, conn);
                    context.setAttribute(ExecutionContext.HTTP_TARGET_HOST, targetHost);
View Full Code Here

                if (request == null) {
                    return;
                }
               
                request.setParams(
                        new DefaultedHttpParams(request.getParams(), this.params));
               
                context.setAttribute(ExecutionContext.HTTP_REQUEST, request);
                this.httpProcessor.process(request, context);
                connState.setRequest(request);
                conn.submitRequest(request);
View Full Code Here

        try {
           
            synchronized (connState) {
                HttpResponse response = conn.getHttpResponse();
                response.setParams(
                        new DefaultedHttpParams(response.getParams(), this.params));
               
                HttpRequest request = connState.getRequest();
               
                int statusCode = response.getStatusLine().getStatusCode();
                if (statusCode < HttpStatus.SC_OK) {
View Full Code Here

            final HttpClientConnection conn) throws HttpException, IOException {
        this.context.setAttribute(ExecutionContext.HTTP_REQUEST, request);
        this.context.setAttribute(ExecutionContext.HTTP_TARGET_HOST, targetHost);
        this.context.setAttribute(ExecutionContext.HTTP_CONNECTION, conn);

        request.setParams(new DefaultedHttpParams(request.getParams(), this.params));
        this.httpexecutor.preProcess(request, this.httpproc, this.context);
        HttpResponse response = this.httpexecutor.execute(request, conn, this.context);
        response.setParams(new DefaultedHttpParams(response.getParams(), this.params));
        this.httpexecutor.postProcess(response, this.httpproc, this.context);
        return response;
    }
View Full Code Here

                    response.removeHeaders("TE");
                    response.removeHeaders("Trailers");
                    response.removeHeaders("Upgrade");
                   
                    response.setParams(
                            new DefaultedHttpParams(response.getParams(), this.params));

                    // Close client connection if the connection to the target
                    // is no longer active / open
                    if (proxyTask.getOriginState().compareTo(ConnState.CLOSING) >= 0) {
                        response.addHeader(HTTP.CONN_DIRECTIVE, "Close");   
View Full Code Here

            try {
                HttpResponse response = this.responseFactory.newHttpResponse(
                        HttpVersion.HTTP_1_0, HttpStatus.SC_BAD_REQUEST, context);
                response.setParams(
                        new DefaultedHttpParams(this.params, response.getParams()));
                response.addHeader(HTTP.CONN_DIRECTIVE, HTTP.CONN_CLOSE);
                // Pre-process HTTP request
                context.setAttribute(ExecutionContext.HTTP_CONNECTION, conn);
                context.setAttribute(ExecutionContext.HTTP_REQUEST, null);
                this.httpProcessor.process(response, context);
View Full Code Here

                HttpHost targetHost = proxyTask.getTarget();
               
                try {
                   
                    request.setParams(
                            new DefaultedHttpParams(request.getParams(), this.params));
                   
                    // Pre-process HTTP request
                    context.setAttribute(ExecutionContext.HTTP_CONNECTION, conn);
                    context.setAttribute(ExecutionContext.HTTP_TARGET_HOST, targetHost);
View Full Code Here

            if (request == null) {
                return;
            }

            request.setParams(
                    new DefaultedHttpParams(request.getParams(), this.params));

            context.setAttribute(ExecutionContext.HTTP_REQUEST, request);
            this.httpProcessor.process(request, context);
           
            HttpEntityEnclosingRequest entityReq = null;
View Full Code Here

        HttpContext context = conn.getContext();
        ClientConnState connState = (ClientConnState) context.getAttribute(CONN_STATE);

        HttpResponse response = conn.getHttpResponse();
        response.setParams(
                new DefaultedHttpParams(response.getParams(), this.params));

        HttpRequest request = connState.getRequest();
        try {

            int statusCode = response.getStatusLine().getStatusCode();
View Full Code Here

TOP

Related Classes of org.apache.http.params.DefaultedHttpParams

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.