public abstract class HttpRequest extends java.lang.Object implements HttpMessage, HttpMessage.MessageTransformations<HttpRequest>
HttpMessage.DiscardedEntity, HttpMessage.MessageTransformations<Self>
Constructor and Description |
---|
HttpRequest() |
Modifier and Type | Method and Description |
---|---|
static HttpRequest |
create()
Returns a default request to be modified using the `withX` methods.
|
static HttpRequest |
create(java.lang.String uri)
Returns a default request to the specified URI to be modified using the `withX` methods.
|
static HttpRequest |
DELETE(java.lang.String uri)
A default DELETE request to be modified using the `withX` methods.
|
abstract RequestEntity |
entity()
Returns the entity of this request.
|
static HttpRequest |
GET(java.lang.String uri)
A default GET request to be modified using the `withX` methods.
|
abstract Uri |
getUri()
Returns the Uri of this request.
|
static HttpRequest |
HEAD(java.lang.String uri)
A default HEAD request to be modified using the `withX` methods.
|
abstract HttpMethod |
method()
Returns the Http method of this request.
|
static HttpRequest |
OPTIONS(java.lang.String uri)
A default OPTIONS request to be modified using the `withX` methods.
|
static HttpRequest |
PATCH(java.lang.String uri)
A default PATCH request to be modified using the `withX` methods.
|
static HttpRequest |
POST(java.lang.String uri)
A default POST request to be modified using the `withX` methods.
|
static HttpRequest |
PUT(java.lang.String uri)
A default PUT request to be modified using the `withX` methods.
|
abstract HttpRequest |
withEntity(RequestEntity entity)
Returns a copy of this instance with a new entity.
|
abstract HttpRequest |
withMethod(HttpMethod method)
Returns a copy of this instance with a new method.
|
abstract HttpRequest |
withUri(java.lang.String path)
Returns a copy of this instance with a new Uri.
|
abstract HttpRequest |
withUri(Uri relativeUri)
Returns a copy of this instance with a new Uri.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
discardEntityBytes, discardEntityBytes, getAttribute, getHeader, getHeader, getHeaders, getHeaders, isRequest, isResponse, protocol
addAttribute, addCredentials, addHeader, addHeaders, removeAttribute, removeHeader, toStrict, toStrict, toStrict, toStrict, transformEntityDataBytes, withEntity, withEntity, withEntity, withEntity, withEntity, withEntity, withEntity, withEntity, withHeaders, withProtocol
public abstract HttpMethod method()
public abstract Uri getUri()
public abstract RequestEntity entity()
entity
in interface HttpMessage
public abstract HttpRequest withMethod(HttpMethod method)
public abstract HttpRequest withUri(Uri relativeUri)
public abstract HttpRequest withUri(java.lang.String path)
public abstract HttpRequest withEntity(RequestEntity entity)
withEntity
in interface HttpMessage.MessageTransformations<HttpRequest>
public static HttpRequest create()
public static HttpRequest create(java.lang.String uri)
public static HttpRequest GET(java.lang.String uri)
public static HttpRequest POST(java.lang.String uri)
public static HttpRequest PUT(java.lang.String uri)
public static HttpRequest DELETE(java.lang.String uri)
public static HttpRequest HEAD(java.lang.String uri)
public static HttpRequest PATCH(java.lang.String uri)
public static HttpRequest OPTIONS(java.lang.String uri)