Code example for RequestLine

Methods: getMethod, getUri

0
     * 
     * @param requestline request line. 
     */ 
    public BasicHttpRequest(final RequestLine requestline) {
        super(); 
        this.requestline = Args.notNull(requestline, "Request line");
        this.method = requestline.getMethod();
        this.uri = requestline.getUri();
    } 
 
    /** 
     * Returns the HTTP protocol version to be used for this request. 
     * 
     * @see #BasicHttpRequest(String, String) 
     */ 
    public ProtocolVersion getProtocolVersion() {
        return getRequestLine().getProtocolVersion();
    } 
 
    /** 
     * Returns the request line of this request.