Package org.refcodes.net
Interface HttpRequestBuilder<B extends HttpRequestBuilder<B>>
-
- Type Parameters:
B- the generic type
- All Superinterfaces:
HeaderFieldsAccessor<B>,HttpMethodAccessor,HttpRequest,UrlAccessor,UrlAccessor.UrlBuilder,UrlAccessor.UrlMutator
public interface HttpRequestBuilder<B extends HttpRequestBuilder<B>> extends HttpRequest, UrlAccessor.UrlMutator, UrlAccessor.UrlBuilder
The Interface HttpRequestBuilder.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.net.HeaderFieldsAccessor
HeaderFieldsAccessor.HeaderFieldsBuilder<T extends HeaderFields<?,?>,B extends HeaderFieldsAccessor.HeaderFieldsBuilder<T,B>>, HeaderFieldsAccessor.HeaderFieldsMutator<T extends HeaderFields<?,?>>, HeaderFieldsAccessor.HeaderFieldsProperty<T extends HeaderFields<?,?>>
-
Nested classes/interfaces inherited from interface org.refcodes.net.HttpMethodAccessor
HttpMethodAccessor.HttpMethodBuilder<B extends HttpMethodAccessor.HttpMethodBuilder<B>>, HttpMethodAccessor.HttpMethodMutator, HttpMethodAccessor.HttpMethodProperty
-
Nested classes/interfaces inherited from interface org.refcodes.net.UrlAccessor
UrlAccessor.UrlBuilder, UrlAccessor.UrlMutator, UrlAccessor.UrlProperty
-
-
Method Summary
-
Methods inherited from interface org.refcodes.net.HeaderFieldsAccessor
getHeaderFields
-
Methods inherited from interface org.refcodes.net.HttpMethodAccessor
getHttpMethod
-
Methods inherited from interface org.refcodes.net.UrlAccessor
getUrl
-
Methods inherited from interface org.refcodes.net.UrlAccessor.UrlBuilder
withUrl
-
Methods inherited from interface org.refcodes.net.UrlAccessor.UrlMutator
setUrl
-
-
-
-
Method Detail
-
withAddToHeaderFields
default B withAddToHeaderFields(String aField, String aValue)
Builder method for theHeaderFieldsAccessor.getHeaderFields()methodHttpFields.addTo(String, String).- Parameters:
aField- The Header-Field (key) of which's list of values a value is to be added.aValue- The value to be added to the list of values associated to the given Header-Field (key).- Returns:
- This
HttpRequestBuilderinstance to continue building up the Header-Fields.
-
withAddToHeaderFields
default B withAddToHeaderFields(String aField, String... aValues)
Builder method for theHeaderFieldsAccessor.getHeaderFields()methodHttpFields.addTo(String, String...).- Parameters:
aField- The Header-Field (key) of which's list of values the values are to be added.aValues- The values to be added to the list of values associated to the given Header-Field (key).- Returns:
- This
HttpRequestBuilderinstance to continue building up the Header-Fields.
-
withAddToHeaderFields
default B withAddToHeaderFields(String aField, List<String> aValues)
Builder method for theHeaderFieldsAccessor.getHeaderFields()methodHttpFields.addTo(String, List).- Parameters:
aField- The Header-Field (key) of which's list of values the values are to be added.aValues- The values to be added to the list of values associated to the given Header-Field (key).- Returns:
- This
HttpRequestBuilderinstance to continue building up the Header-Fields.
-
withAddToHeaderFields
default B withAddToHeaderFields(HeaderField aHeaderField, String... aValues)
With add to Header-Fields.- Parameters:
aHeaderField- the Header-FieldaValues- the values- Returns:
- the b
- See Also:
withAddToHeaderFields(String, String...)
-
withAddToHeaderFields
default B withAddToHeaderFields(HeaderField aHeaderField, List<String> aValues)
With add to Header-Fields.- Parameters:
aHeaderField- the Header-FieldaValues- the values- Returns:
- the b
- See Also:
withAddToHeaderFields(String, List)
-
withAddToQueryFields
default B withAddToQueryFields(String aField, String aValue)
Builder method for theUrlAccessor.getUrl()'sQueryFieldsAccessor.getQueryFields()methodHttpFields.addTo(String, String).- Parameters:
aField- The Header-Field (key) of which's list of values a value is to be added.aValue- The value to be added to the list of values associated to the given Header-Field (key).- Returns:
- This
HttpRequestBuilderinstance to continue building up the Header-Fields.
-
withAddToQueryFields
default B withAddToQueryFields(String aField, String... aValues)
Builder method for theUrlAccessor.getUrl()'sQueryFieldsAccessor.getQueryFields()methodHttpFields.addTo(String, String...).- Parameters:
aField- The Header-Field (key) of which's list of values the values are to be added.aValues- The values to be added to the list of values associated to the given Header-Field (key).- Returns:
- This
HttpRequestBuilderinstance to continue building up the Header-Fields.
-
withAddToQueryFields
default B withAddToQueryFields(String aField, List<String> aValues)
Builder method for theUrlAccessor.getUrl()'sQueryFieldsAccessor.getQueryFields()methodHttpFields.addTo(String, List).- Parameters:
aField- The Header-Field (key) of which's list of values the values are to be added.aValues- The values to be added to the list of values associated to the given Header-Field (key).- Returns:
- This
HttpRequestBuilderinstance to continue building up the Header-Fields.
-
-