Class ClassicHttpRequests
java.lang.Object
org.apache.hc.client5.http.classic.methods.ClassicHttpRequests
Deprecated.
Common HTTP methods using
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.
- Since:
- 5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpUriRequestDeprecated.Creates a new HttpUriRequest for the givenmethodandStringURI.static HttpUriRequestDeprecated.Creates a new HttpUriRequest for the givenmethodandURI.static HttpUriRequestDeprecated.Creates a new HttpUriRequest for the givenMethodandStringURI.static HttpUriRequestDeprecated.Creates a new HttpUriRequest for the givenMethodandURI.static HttpUriRequestDeprecated.Constructs a new"DELETE"HttpUriRequest initialized with the given URI.static HttpUriRequestDeprecated.Constructs a new"DELETE"HttpUriRequest initialized with the given URI.static HttpUriRequestDeprecated.Constructs a new"GET"HttpUriRequest initialized with the given URI.static HttpUriRequestDeprecated.Constructs a new"GET"HttpUriRequest initialized with the given URI.static HttpUriRequestDeprecated.Constructs a new"HEAD"HttpUriRequest initialized with the given URI.static HttpUriRequestDeprecated.Constructs a new"HEAD"HttpUriRequest initialized with the given URI.static HttpUriRequestDeprecated.Constructs a new"OPTIONS"HttpUriRequest initialized with the given URI.static HttpUriRequestDeprecated.Constructs a new"OPTIONS"HttpUriRequest initialized with the given URI.static HttpUriRequestDeprecated.Constructs a new"PATCH"HttpUriRequest initialized with the given URI.static HttpUriRequestDeprecated.Constructs a new"PATCH"HttpUriRequest initialized with the given URI.static HttpUriRequestDeprecated.Constructs a new"POST"HttpUriRequest initialized with the given URI.static HttpUriRequestDeprecated.Constructs a new"POST"HttpUriRequest initialized with the given URI.static HttpUriRequestDeprecated.Constructs a new"PUT"HttpUriRequest initialized with the given URI.static HttpUriRequestDeprecated.Constructs a new"PUT"HttpUriRequest initialized with the given URI.static HttpUriRequestDeprecated.Constructs a new"TRACE"HttpUriRequest initialized with the given URI.static HttpUriRequestDeprecated.Constructs a new"TRACE"HttpUriRequest initialized with the given URI.
-
Constructor Details
-
ClassicHttpRequests
public ClassicHttpRequests()Deprecated.
-
-
Method Details
-
create
Deprecated.Creates a new HttpUriRequest for the givenMethodandStringURI.- Parameters:
method- A method.uri- a URI.- Returns:
- a new HttpUriRequest.
-
create
Deprecated.Creates a new HttpUriRequest for the givenMethodandURI.- Parameters:
method- A method.uri- a URI.- Returns:
- a new HttpUriRequest.
-
create
Deprecated.Creates a new HttpUriRequest for the givenmethodandStringURI.- Parameters:
method- A method supported by this class.uri- a non-null request string URI.- Returns:
- A new HttpUriRequest.
- Throws:
IllegalArgumentException- if the method is not supported.IllegalArgumentException- if the string URI is null.
-
create
Deprecated.Creates a new HttpUriRequest for the givenmethodandURI.- Parameters:
method- A method supported by this class.uri- a non-null request URI.- Returns:
- A new HttpUriRequest.
- Throws:
IllegalArgumentException- if the method is not supported.IllegalArgumentException- if the URI is null.
-
delete
Deprecated.Constructs a new"DELETE"HttpUriRequest initialized with the given URI.- Parameters:
uri- a non-null request URI.- Returns:
- a new "DELETE" HttpUriRequest.
- Throws:
IllegalArgumentException- if the URI is null.
-
delete
Deprecated.Constructs a new"DELETE"HttpUriRequest initialized with the given URI.- Parameters:
uri- a non-null request URI.- Returns:
- a new "DELETE" HttpUriRequest.
- Throws:
IllegalArgumentException- if the URI is null.
-
get
Deprecated.Constructs a new"GET"HttpUriRequest initialized with the given URI.- Parameters:
uri- a non-null request URI.- Returns:
- a new "GET" HttpUriRequest.
- Throws:
IllegalArgumentException- if the URI is null.
-
get
Deprecated.Constructs a new"GET"HttpUriRequest initialized with the given URI.- Parameters:
uri- a non-null request URI.- Returns:
- a new "GET" HttpUriRequest.
- Throws:
IllegalArgumentException- if the URI is null.
-
head
Deprecated.Constructs a new"HEAD"HttpUriRequest initialized with the given URI.- Parameters:
uri- a non-null request URI.- Returns:
- a new "HEAD" HttpUriRequest.
- Throws:
IllegalArgumentException- if the URI is null.
-
head
Deprecated.Constructs a new"HEAD"HttpUriRequest initialized with the given URI.- Parameters:
uri- a non-null request URI.- Returns:
- a new "HEAD" HttpUriRequest.
- Throws:
IllegalArgumentException- if the URI is null.
-
options
Deprecated.Constructs a new"OPTIONS"HttpUriRequest initialized with the given URI.- Parameters:
uri- a non-null request URI.- Returns:
- a new "OPTIONS" HttpUriRequest.
- Throws:
IllegalArgumentException- if the URI is null.
-
options
Deprecated.Constructs a new"OPTIONS"HttpUriRequest initialized with the given URI.- Parameters:
uri- a non-null request URI.- Returns:
- a new "OPTIONS" HttpUriRequest.
- Throws:
IllegalArgumentException- if the URI is null.
-
patch
Deprecated.Constructs a new"PATCH"HttpUriRequest initialized with the given URI.- Parameters:
uri- a non-null request URI.- Returns:
- a new "PATCH" HttpUriRequest.
- Throws:
IllegalArgumentException- if the URI is null.
-
patch
Deprecated.Constructs a new"PATCH"HttpUriRequest initialized with the given URI.- Parameters:
uri- a non-null request URI.- Returns:
- a new "PATCH" HttpUriRequest.
- Throws:
IllegalArgumentException- if the URI is null.
-
post
Deprecated.Constructs a new"POST"HttpUriRequest initialized with the given URI.- Parameters:
uri- a non-null request URI.- Returns:
- a new "POST" HttpUriRequest.
- Throws:
IllegalArgumentException- if the URI is null.
-
post
Deprecated.Constructs a new"POST"HttpUriRequest initialized with the given URI.- Parameters:
uri- a non-null request URI.- Returns:
- a new "POST" HttpUriRequest.
- Throws:
IllegalArgumentException- if the URI is null.
-
put
Deprecated.Constructs a new"PUT"HttpUriRequest initialized with the given URI.- Parameters:
uri- a non-null request URI.- Returns:
- a new "PUT" HttpUriRequest.
- Throws:
IllegalArgumentException- if the URI is null.
-
put
Deprecated.Constructs a new"PUT"HttpUriRequest initialized with the given URI.- Parameters:
uri- a non-null request URI.- Returns:
- a new "PUT" HttpUriRequest.
- Throws:
IllegalArgumentException- if the URI is null.
-
trace
Deprecated.Constructs a new"TRACE"HttpUriRequest initialized with the given URI.- Parameters:
uri- a non-null request URI.- Returns:
- a new "TRACE" HttpUriRequest.
- Throws:
IllegalArgumentException- if the URI is null.
-
trace
Deprecated.Constructs a new"TRACE"HttpUriRequest initialized with the given URI.- Parameters:
uri- a non-null request URI.- Returns:
- a new "TRACE" HttpUriRequest.
- Throws:
IllegalArgumentException- if the URI is null.
-
ClassicRequestBuilder