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 HttpUriRequest
Deprecated.Creates a new HttpUriRequest for the givenmethod
andString
URI.static HttpUriRequest
Deprecated.Creates a new HttpUriRequest for the givenmethod
andURI
.static HttpUriRequest
Deprecated.Creates a new HttpUriRequest for the givenMethod
andString
URI.static HttpUriRequest
Deprecated.Creates a new HttpUriRequest for the givenMethod
andURI
.static HttpUriRequest
Deprecated.static HttpUriRequest
Deprecated.static HttpUriRequest
Deprecated.static HttpUriRequest
Deprecated.static HttpUriRequest
Deprecated.static HttpUriRequest
Deprecated.static HttpUriRequest
Deprecated.static HttpUriRequest
Deprecated.static HttpUriRequest
Deprecated.static HttpUriRequest
Deprecated.static HttpUriRequest
Deprecated.static HttpUriRequest
Deprecated.static HttpUriRequest
Deprecated.static HttpUriRequest
Deprecated.static HttpUriRequest
Deprecated.static HttpUriRequest
Deprecated.
-
Constructor Details
-
ClassicHttpRequests
public ClassicHttpRequests()Deprecated.
-
-
Method Details
-
create
Deprecated.Creates a new HttpUriRequest for the givenMethod
andString
URI.- Parameters:
method
- A method.uri
- a URI.- Returns:
- a new HttpUriRequest.
-
create
Deprecated.Creates a new HttpUriRequest for the givenMethod
andURI
.- Parameters:
method
- A method.uri
- a URI.- Returns:
- a new HttpUriRequest.
-
create
Deprecated.Creates a new HttpUriRequest for the givenmethod
andString
URI.- 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 givenmethod
andURI
.- 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. -
delete
Deprecated. -
get
Deprecated. -
get
Deprecated. -
head
Deprecated. -
head
Deprecated. -
options
Deprecated. -
options
Deprecated. -
patch
Deprecated. -
patch
Deprecated. -
post
Deprecated. -
post
Deprecated. -
put
Deprecated. -
put
Deprecated. -
trace
Deprecated. -
trace
Deprecated.
-
ClassicRequestBuilder