Package com.luciad.net.http
Class HttpRequest
java.lang.Object
com.luciad.net.http.HttpRequest
- All Implemented Interfaces:
AutoCloseable
An HTTP request.
An HttpRequest
instance is built through an HttpRequest.Builder
.
- Since:
- 2023.0
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns anHttpRequest
builder that has all properties of thisHttpRequest
.void
close()
protected void
finalize()
Returns the request's URI without the query string.getBody()
Returns the body for this http request, if any.List
<@NotNull HttpHeader> Returns the request headers for this request.Returns the request method for this request.List
<@NotNull UriQueryParameter> Returns the query parameters for this request.getUri()
Returns the request's URI.static HttpRequest.Builder
Creates a newHttpRequest
builder.
-
Constructor Details
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
newBuilder
Creates a newHttpRequest
builder.- Returns:
- a new
HttpRequest
builder.
-
asBuilder
Returns anHttpRequest
builder that has all properties of thisHttpRequest
.- Returns:
- an
HttpRequest
builder that has all properties of thisHttpRequest
.
-
getUri
Returns the request's URI.- Returns:
- the request's URI.
-
getBaseUri
Returns the request's URI without the query string.- Returns:
- the request's URI without the query string.
-
getMethod
Returns the request method for this request.- Returns:
- the request method for this request.
-
getHeaders
Returns the request headers for this request.- Returns:
- the request headers for this request.
-
getQueryParameters
Returns the query parameters for this request.- Returns:
- the query parameters for this request.
-
getBody
Returns the body for this http request, if any.- Returns:
- the body for this http request, if any.
-