public interface HttpClientRequest extends HttpRequest, HttpBodyAccessor.HttpBodyProvider<BadRequestException>
HttpClientRequest being the request as produced by the client.org.refcodes.mixin.LocatorAccessor.LocatorBuilder<T,B extends org.refcodes.mixin.LocatorAccessor.LocatorBuilder<T,B>>, org.refcodes.mixin.LocatorAccessor.LocatorMutator<T>, org.refcodes.mixin.LocatorAccessor.LocatorProperty<T>QueryFieldsAccessor.QueryFieldsBuilder<B extends QueryFieldsAccessor.QueryFieldsBuilder<?>>, QueryFieldsAccessor.QueryFieldsMutator, QueryFieldsAccessor.QueryFieldsPropertyHttpMethodAccessor.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.
|
getQueryFieldsgetHttpMethodgetHeaderFieldsString toHttpBody() throws BadRequestException
ContentType to the
RequestHeaderFields retrieved from HeaderFieldsAccessor.getHeaderFields().
(see
HeaderFields.putContentType(org.refcodes.net.HttpMediaType)
)
Returns the String instance representing the HTTP body from
the implementing instance.
Automatically sets the ContentType to any headers if
accessible and applicable.toHttpBody in interface HttpBodyAccessor.HttpBodyProvider<BadRequestException>String instance represented by the
implementing instance.BadRequestException<REQ> REQ getRequest()
<REQ> void setRequest(REQ aRequest)
aRequest - The request to be stored by the request property.default <REQ> HttpClientRequest withRequest(REQ aRequest)
aRequest - The request to be stored by the request property.Copyright © 2016. All rights reserved.