public interface HttpClientRequest extends HttpRequest, HttpBodyAccessor.HttpBodyProvider<BadRequestException>
HttpClientRequest being the request as produced by the
client.UrlAccessor.UrlBuilder<URL extends Url,B extends UrlAccessor.UrlBuilder<URL,B>>, UrlAccessor.UrlMutator<URL extends Url>, UrlAccessor.UrlProperty<URL extends Url>HttpMethodAccessor.HttpMethodBuilder<B extends HttpMethodAccessor.HttpMethodBuilder<B>>, HttpMethodAccessor.HttpMethodMutator, HttpMethodAccessor.HttpMethodPropertyHeaderFieldsAccessor.HeaderFieldsBuilder<T extends HeaderFields<?,?>,B extends HeaderFieldsAccessor.HeaderFieldsBuilder<T,B>>, HeaderFieldsAccessor.HeaderFieldsMutator<T extends HeaderFields<?,?>>, HeaderFieldsAccessor.HeaderFieldsProperty<T extends HeaderFields<?,?>>| Modifier and Type | Method and Description |
|---|---|
<REQ> REQ |
getRequest()
Retrieves the request from the request property.
|
<REQ> void |
setRequest(REQ aRequest)
Sets the request for the request property.
|
String |
toHttpBody()
Automatically sets the
ContentType to the
RequestHeaderFields retrieved from HeaderFieldsAccessor.getHeaderFields(). |
default <REQ> HttpClientRequest |
withRequest(REQ aRequest)
Sets the request for the request property.
|
getUrlgetHttpMethodgetHeaderFieldsString toHttpBody() throws BadRequestException
ContentType to the
RequestHeaderFields retrieved from HeaderFieldsAccessor.getHeaderFields().
(see HeaderFields.putContentType(org.refcodes.net.HttpMediaType) )
Converts an object representing the HTTP body to a String
instance. Automatically determines the ContentType from any
headers when applicable.toHttpBody in interface HttpBodyAccessor.HttpBodyProvider<BadRequestException>String instance represented by the
according object.BadRequestException<REQ> REQ getRequest()
REQ - the generic type<REQ> void setRequest(REQ aRequest)
HttpClientRequestImpl.setRequest(Object) supports the
HttpBodyMap to marshal an HttpBodyMap into an HTTP
Request-Body.REQ - the generic typeaRequest - The request to be stored by the request property.default <REQ> HttpClientRequest withRequest(REQ aRequest)
REQ - the generic typeaRequest - The request to be stored by the request property.Copyright © 2018. All rights reserved.