FileDocCategorySizeDatePackage
BasicRequestLine.javaAPI DocAndroid 1.5 API3273Wed May 06 22:41:10 BST 2009org.apache.http.message

BasicRequestLine

public class BasicRequestLine extends Object implements RequestLine, Cloneable
The first line of an {@link org.apache.http.HttpRequest HttpRequest}. It contains the method, URI, and HTTP version of the request. For details, see RFC 2616.
author
Oleg Kalnichevski
version
$Revision: 604625 $
since
4.0

Fields Summary
private final ProtocolVersion
protoversion
private final String
method
private final String
uri
Constructors Summary
public BasicRequestLine(String method, String uri, ProtocolVersion version)

        super();
        if (method == null) {
            throw new IllegalArgumentException
                ("Method must not be null.");
        }
        if (uri == null) {
            throw new IllegalArgumentException
                ("URI must not be null.");
        }
        if (version == null) {
            throw new IllegalArgumentException
                ("Protocol version must not be null.");
        }
        this.method = method;
        this.uri = uri;
        this.protoversion = version;
    
Methods Summary
public java.lang.Objectclone()

        return super.clone();
    
public java.lang.StringgetMethod()

        return this.method;
    
public org.apache.http.ProtocolVersiongetProtocolVersion()

        return this.protoversion;
    
public java.lang.StringgetUri()

        return this.uri;
    
public java.lang.StringtoString()

        // no need for non-default formatting in toString()
        return BasicLineFormatter.DEFAULT
            .formatRequestLine(null, this).toString();