Code example for RequestLine

Methods: getMethod, getUri

0
            this.method = ((HttpUriRequest) request).getMethod();
            this.version = null;
        } else { 
            RequestLine requestLine = request.getRequestLine();
            try { 
                this.uri = new URI(requestLine.getUri());
            } catch (URISyntaxException ex) {
                throw new ProtocolException("Invalid request URI: " 
                        + requestLine.getUri(), ex);
            } 
            this.method = requestLine.getMethod();
            this.version = request.getProtocolVersion();
        } 
        this.execCount = 0;
    } 
 
    public void resetHeaders() { 
        // Make a copy of original headers 
        this.headergroup.clear();
        setHeaders(this.original.getAllHeaders());
    }