Package de.xima.fc.http
Class UrlDataBuilder
- java.lang.Object
-
- de.xima.fc.http.UrlDataBuilder
-
- All Implemented Interfaces:
IHttpBodyBuilder
,IParameterBuilder<UrlDataBuilder>
,IUrlDataBuilder<UrlDataBuilder>
public class UrlDataBuilder extends Object implements IUrlDataBuilder<UrlDataBuilder>
-
-
Constructor Summary
Constructors Constructor Description UrlDataBuilder(HttpRequestBuilder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UrlDataBuilder
addParameter(HttpRequestParameter parameter)
Adds a parameter to this builder.UrlDataBuilder
addParameter(String name, String value)
Adds a parameter to this builder.UrlDataBuilder
addParameters(Iterable<? extends HttpRequestParameter> parameters)
Adds parameters to this builder.HttpRequestBuilder
build()
Adds the multipart body to the HTTP requests builder and returns the HTTP request builder.
-
-
-
Constructor Detail
-
UrlDataBuilder
public UrlDataBuilder(HttpRequestBuilder builder)
-
-
Method Detail
-
addParameter
public UrlDataBuilder addParameter(HttpRequestParameter parameter)
Description copied from interface:IParameterBuilder
Adds a parameter to this builder. If a content type is required, the default content type is used.- Specified by:
addParameter
in interfaceIParameterBuilder<UrlDataBuilder>
- Parameters:
parameter
- Name of the parameter to add and its value.- Returns:
- This builder for chaining method calls.
-
addParameter
public UrlDataBuilder addParameter(String name, String value)
Description copied from interface:IParameterBuilder
Adds a parameter to this builder. If a content type is required, the default content type is used.- Specified by:
addParameter
in interfaceIParameterBuilder<UrlDataBuilder>
- Parameters:
name
- Name of the parameter to add.value
- Value of the parameter to add.- Returns:
- This builder for chaining method calls.
-
addParameters
public UrlDataBuilder addParameters(Iterable<? extends HttpRequestParameter> parameters)
Description copied from interface:IParameterBuilder
Adds parameters to this builder. If a content type is required, the default content type is used.- Specified by:
addParameters
in interfaceIParameterBuilder<UrlDataBuilder>
- Parameters:
parameters
- Parameters to add.- Returns:
- This builder for chaining method calls.
-
build
public HttpRequestBuilder build()
Description copied from interface:IHttpBodyBuilder
Adds the multipart body to the HTTP requests builder and returns the HTTP request builder.- Specified by:
build
in interfaceIHttpBodyBuilder
- Returns:
- The HTTP request builder that was used to create this body builder.
-
-