Package com.envimate.httpmate.client
Class HttpClientRequestBuilder<T>
- java.lang.Object
-
- com.envimate.httpmate.client.HttpClientRequestBuilder<T>
-
public final class HttpClientRequestBuilder<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description HttpClientRequestBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X> HttpClientRequestBuilder<X>mappedTo(Class<X> targetType)HttpClientRequestBuilder<String>mappedToString()HttpClientRequestBuilder<T>withAMultipartBodyWithTheParts(Part... parts)HttpClientRequestBuilder<T>withContentType(String contentType)HttpClientRequestBuilder<T>withHeader(String key, String value)HttpClientRequestBuilder<T>withQueryParameter(String key)HttpClientRequestBuilder<T>withQueryParameter(String key, String value)HttpClientRequestBuilder<T>withTheBody(Body body)HttpClientRequestBuilder<T>withTheBody(InputStream body)HttpClientRequestBuilder<T>withTheBody(String body)
-
-
-
Method Detail
-
withAMultipartBodyWithTheParts
public HttpClientRequestBuilder<T> withAMultipartBodyWithTheParts(Part... parts)
-
withTheBody
public HttpClientRequestBuilder<T> withTheBody(String body)
-
withTheBody
public HttpClientRequestBuilder<T> withTheBody(InputStream body)
-
withTheBody
public HttpClientRequestBuilder<T> withTheBody(Body body)
-
withContentType
public HttpClientRequestBuilder<T> withContentType(String contentType)
-
withHeader
public HttpClientRequestBuilder<T> withHeader(String key, String value)
-
withQueryParameter
public HttpClientRequestBuilder<T> withQueryParameter(String key)
-
withQueryParameter
public HttpClientRequestBuilder<T> withQueryParameter(String key, String value)
-
mappedToString
public HttpClientRequestBuilder<String> mappedToString()
-
mappedTo
public <X> HttpClientRequestBuilder<X> mappedTo(Class<X> targetType)
-
-