public class BasicHttpRequest extends AbstractHttpMessage implements HttpRequest
HttpRequest
.headergroup, params
Constructor and Description |
---|
BasicHttpRequest(RequestLine requestline)
Creates an instance of this class using the given request line.
|
BasicHttpRequest(String method,
String uri)
Creates an instance of this class using the given request method
and URI.
|
BasicHttpRequest(String method,
String uri,
ProtocolVersion ver)
Creates an instance of this class using the given request method, URI
and the HTTP protocol version.
|
Modifier and Type | Method and Description |
---|---|
ProtocolVersion |
getProtocolVersion()
Returns the HTTP protocol version to be used for this request.
|
RequestLine |
getRequestLine()
Returns the request line of this request.
|
String |
toString() |
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
public BasicHttpRequest(String method, String uri)
method
- request method.uri
- request URI.public BasicHttpRequest(String method, String uri, ProtocolVersion ver)
method
- request method.uri
- request URI.ver
- HTTP protocol version.public BasicHttpRequest(RequestLine requestline)
requestline
- request line.public ProtocolVersion getProtocolVersion()
getProtocolVersion
in interface HttpMessage
BasicHttpRequest(String, String)
public RequestLine getRequestLine()
getRequestLine
in interface HttpRequest
BasicHttpRequest(String, String)
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.