ClassicRequestBuilder@Deprecated public final class ClassicHttpRequests extends Object
HttpUriRequest as a HTTP request message representation.
Each static method creates a request object of the exact subclass of HttpUriRequest
with a non-null URI.
| Constructor and Description |
|---|
ClassicHttpRequests()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpUriRequest |
create(org.apache.hc.core5.http.Method method,
String uri)
Deprecated.
Creates a new HttpUriRequest for the given
Method and String URI. |
static HttpUriRequest |
create(org.apache.hc.core5.http.Method method,
URI uri)
Deprecated.
Creates a new HttpUriRequest for the given
Method and URI. |
static HttpUriRequest |
create(String method,
String uri)
Deprecated.
Creates a new HttpUriRequest for the given
method and String URI. |
static HttpUriRequest |
create(String method,
URI uri)
Deprecated.
Creates a new HttpUriRequest for the given
method and URI. |
static HttpUriRequest |
delete(String uri)
Deprecated.
Constructs a new
"DELETE" HttpUriRequest initialized with the given URI. |
static HttpUriRequest |
delete(URI uri)
Deprecated.
Constructs a new
"DELETE" HttpUriRequest initialized with the given URI. |
static HttpUriRequest |
get(String uri)
Deprecated.
Constructs a new
"GET" HttpUriRequest initialized with the given URI. |
static HttpUriRequest |
get(URI uri)
Deprecated.
Constructs a new
"GET" HttpUriRequest initialized with the given URI. |
static HttpUriRequest |
head(String uri)
Deprecated.
Constructs a new
"HEAD" HttpUriRequest initialized with the given URI. |
static HttpUriRequest |
head(URI uri)
Deprecated.
Constructs a new
"HEAD" HttpUriRequest initialized with the given URI. |
static HttpUriRequest |
options(String uri)
Deprecated.
Constructs a new
"OPTIONS" HttpUriRequest initialized with the given URI. |
static HttpUriRequest |
options(URI uri)
Deprecated.
Constructs a new
"OPTIONS" HttpUriRequest initialized with the given URI. |
static HttpUriRequest |
patch(String uri)
Deprecated.
Constructs a new
"PATCH" HttpUriRequest initialized with the given URI. |
static HttpUriRequest |
patch(URI uri)
Deprecated.
Constructs a new
"PATCH" HttpUriRequest initialized with the given URI. |
static HttpUriRequest |
post(String uri)
Deprecated.
Constructs a new
"POST" HttpUriRequest initialized with the given URI. |
static HttpUriRequest |
post(URI uri)
Deprecated.
Constructs a new
"POST" HttpUriRequest initialized with the given URI. |
static HttpUriRequest |
put(String uri)
Deprecated.
Constructs a new
"PUT" HttpUriRequest initialized with the given URI. |
static HttpUriRequest |
put(URI uri)
Deprecated.
Constructs a new
"PUT" HttpUriRequest initialized with the given URI. |
static HttpUriRequest |
trace(String uri)
Deprecated.
Constructs a new
"TRACE" HttpUriRequest initialized with the given URI. |
static HttpUriRequest |
trace(URI uri)
Deprecated.
Constructs a new
"TRACE" HttpUriRequest initialized with the given URI. |
public static HttpUriRequest create(org.apache.hc.core5.http.Method method, String uri)
Method and String URI.method - A method.uri - a URI.public static HttpUriRequest create(org.apache.hc.core5.http.Method method, URI uri)
Method and URI.method - A method.uri - a URI.public static HttpUriRequest create(String method, String uri)
method and String URI.method - A method supported by this class.uri - a non-null request string URI.IllegalArgumentException - if the method is not supported.IllegalArgumentException - if the string URI is null.public static HttpUriRequest create(String method, URI uri)
method and URI.method - A method supported by this class.uri - a non-null request URI.IllegalArgumentException - if the method is not supported.IllegalArgumentException - if the URI is null.public static HttpUriRequest delete(String uri)
"DELETE" HttpUriRequest initialized with the given URI.uri - a non-null request URI.IllegalArgumentException - if the URI is null.public static HttpUriRequest delete(URI uri)
"DELETE" HttpUriRequest initialized with the given URI.uri - a non-null request URI.IllegalArgumentException - if the URI is null.public static HttpUriRequest get(String uri)
"GET" HttpUriRequest initialized with the given URI.uri - a non-null request URI.IllegalArgumentException - if the URI is null.public static HttpUriRequest get(URI uri)
"GET" HttpUriRequest initialized with the given URI.uri - a non-null request URI.IllegalArgumentException - if the URI is null.public static HttpUriRequest head(String uri)
"HEAD" HttpUriRequest initialized with the given URI.uri - a non-null request URI.IllegalArgumentException - if the URI is null.public static HttpUriRequest head(URI uri)
"HEAD" HttpUriRequest initialized with the given URI.uri - a non-null request URI.IllegalArgumentException - if the URI is null.public static HttpUriRequest options(String uri)
"OPTIONS" HttpUriRequest initialized with the given URI.uri - a non-null request URI.IllegalArgumentException - if the URI is null.public static HttpUriRequest options(URI uri)
"OPTIONS" HttpUriRequest initialized with the given URI.uri - a non-null request URI.IllegalArgumentException - if the URI is null.public static HttpUriRequest patch(String uri)
"PATCH" HttpUriRequest initialized with the given URI.uri - a non-null request URI.IllegalArgumentException - if the URI is null.public static HttpUriRequest patch(URI uri)
"PATCH" HttpUriRequest initialized with the given URI.uri - a non-null request URI.IllegalArgumentException - if the URI is null.public static HttpUriRequest post(String uri)
"POST" HttpUriRequest initialized with the given URI.uri - a non-null request URI.IllegalArgumentException - if the URI is null.public static HttpUriRequest post(URI uri)
"POST" HttpUriRequest initialized with the given URI.uri - a non-null request URI.IllegalArgumentException - if the URI is null.public static HttpUriRequest put(String uri)
"PUT" HttpUriRequest initialized with the given URI.uri - a non-null request URI.IllegalArgumentException - if the URI is null.public static HttpUriRequest put(URI uri)
"PUT" HttpUriRequest initialized with the given URI.uri - a non-null request URI.IllegalArgumentException - if the URI is null.public static HttpUriRequest trace(String uri)
"TRACE" HttpUriRequest initialized with the given URI.uri - a non-null request URI.IllegalArgumentException - if the URI is null.public static HttpUriRequest trace(URI uri)
"TRACE" HttpUriRequest initialized with the given URI.uri - a non-null request URI.IllegalArgumentException - if the URI is null.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.