BasicRequestLinepublic class BasicRequestLine extends Object implements RequestLine, CloneableThe 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. |
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;
|
|