Package de.xima.fc.http.params
Interface IParameterBuilder<Self>
-
- Type Parameters:
Self
- Type of the builder returned by the build methods.
- All Superinterfaces:
IHttpBodyBuilder
- All Known Subinterfaces:
IContentTypeParameterBuilder<Self>
,IFormDataBodyBuilder
,IMultipartBodyBuilder
,IUrlDataBuilder<Self>
- All Known Implementing Classes:
UrlDataBuilder
public interface IParameterBuilder<Self> extends IHttpBodyBuilder
A builder for an HTTP request body that can have parameters, such as a multipart or form data body.- Since:
- 7.0.3
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Self
addParameter(HttpRequestParameter parameter)
Adds a parameter to this builder.Self
addParameter(String name, String value)
Adds a parameter to this builder.Self
addParameters(Iterable<? extends HttpRequestParameter> parameters)
Adds parameters to this builder.-
Methods inherited from interface de.xima.fc.http.params.IHttpBodyBuilder
build
-
-
-
-
Method Detail
-
addParameter
@Nonnull Self addParameter(@Nonnull String name, @Nonnull String value)
Adds a parameter to this builder. If a content type is required, the default content type is used.- Parameters:
name
- Name of the parameter to add.value
- Value of the parameter to add.- Returns:
- This builder for chaining method calls.
-
addParameter
@Nonnull Self addParameter(@Nonnull HttpRequestParameter parameter)
Adds a parameter to this builder. If a content type is required, the default content type is used.- Parameters:
parameter
- Name of the parameter to add and its value.- Returns:
- This builder for chaining method calls.
-
addParameters
@Nonnull Self addParameters(@Nonnull Iterable<? extends HttpRequestParameter> parameters)
Adds parameters to this builder. If a content type is required, the default content type is used.- Parameters:
parameters
- Parameters to add.- Returns:
- This builder for chaining method calls.
-
-