-
- Type Parameters:
B
- the generic type
- All Superinterfaces:
HeaderFieldsAccessor<ResponseHeaderFields>
,HttpResponse
,HttpStatusCodeAccessor
public interface HttpResponseBuilder<B> extends HttpResponse
The Interface HttpResponseBuilder.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.web.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.web.HttpStatusCodeAccessor
HttpStatusCodeAccessor.HttpStatusCodeBuilder<B extends HttpStatusCodeAccessor.HttpStatusCodeBuilder<B>>, HttpStatusCodeAccessor.HttpStatusCodeMutator, HttpStatusCodeAccessor.HttpStatusCodeProperty
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default B
withAddToHeaderFields(String aField, String aValue)
Builder method for theHeaderFieldsAccessor.getHeaderFields()
methodHttpFields.addTo(String, String)
.default B
withAddToHeaderFields(String aField, String... aValues)
Builder method for theHeaderFieldsAccessor.getHeaderFields()
methodHttpFields.addTo(String, String...)
.default B
withAddToHeaderFields(String aField, List<String> aValues)
Builder method for theHeaderFieldsAccessor.getHeaderFields()
methodHttpFields.addTo(String, List)
.-
Methods inherited from interface org.refcodes.web.HeaderFieldsAccessor
getHeaderFields
-
Methods inherited from interface org.refcodes.web.HttpStatusCodeAccessor
getHttpStatusCode
-
-
-
-
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
HttpResponseBuilder
instance 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
HttpResponseBuilder
instance 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
HttpResponseBuilder
instance to continue building up the Header-Fields.
-
-