Package de.xima.fc.http
Class HttpPostRequestBuilder
- java.lang.Object
-
- de.xima.fc.http.HttpRequestBuilder
-
- de.xima.fc.http.HttpPostRequestBuilder
-
@Deprecated public class HttpPostRequestBuilder extends HttpRequestBuilder
Deprecated.UseHttpRequestBuilder
.Builder for preparing and sending an HTTP POST request.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description HttpPostRequestBuilder(String uri)
Deprecated.HttpPostRequestBuilder(URI uri)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HttpPostRequestBuilder
addBinayData(String elementName, byte[] data, String filename, @NotNull String mimeType)
Deprecated.HttpPostRequestBuilder
addBinayData(String elementName, byte[] data, String filename, @NotNull String mimeType, @NotNull Charset charset)
Deprecated.HttpPostRequestBuilder
addHeader(String name, String value)
Deprecated.HttpPostRequestBuilder
addParameter(String name, String value)
Deprecated.HttpPostRequestBuilder
addParameter(String name, String value, org.apache.http.entity.ContentType contentType)
Deprecated.HttpPostRequestBuilder
setBasicAuthLogin(String login)
Deprecated.HttpPostRequestBuilder
setBasicAuthPassword(String pwd)
Deprecated.HttpPostRequestBuilder
setInputCharset(Charset inputCharset)
Deprecated.Sets the request character encoding.HttpPostRequestBuilder
setProxyServer(@NotNull FcHttpRequestProps.ProxyProps proxyConfig)
Deprecated.Sets the following proxy server configuration parameters if defined inside theFcHttpRequestProps.ProxyProps
object: proxy server host proxy server port login for a proxy server authentication password for a proxy server authenticationHttpPostRequestBuilder
setProxyServerAuth(@NotNull FcHttpRequestProps.ProxyAuthProps proxyAuth)
Deprecated.HttpPostRequestBuilder
setProxyServerAuthLogin(String login)
Deprecated.HttpPostRequestBuilder
setProxyServerAuthPassword(String pwd)
Deprecated.HttpPostRequestBuilder
setProxyServerHost(String host)
Deprecated.Sets the proxy server host.HttpPostRequestBuilder
setProxyServerPort(int port)
Deprecated.Sets the proxy server port.HttpPostRequestBuilder
withDisabledRedirectHandling(boolean disableRedirectHandling)
Deprecated.Enables/Disables automatic redirect handling.-
Methods inherited from class de.xima.fc.http.HttpRequestBuilder
build, getUrl, supportsMessageBody, useBasicAuthentication, useProxyServer, useProxyServerAuthentication
-
-
-
-
Constructor Detail
-
HttpPostRequestBuilder
public HttpPostRequestBuilder(String uri) throws URISyntaxException
Deprecated.- Parameters:
uri
- The request URL. Whennull
,URI.from("")
is used.- Throws:
URISyntaxException
- When the given string is not a valid URI.
-
HttpPostRequestBuilder
public HttpPostRequestBuilder(URI uri)
Deprecated.- Parameters:
uri
- The request URL. Whennull
,URI.from("")
is used.
-
-
Method Detail
-
setInputCharset
public HttpPostRequestBuilder setInputCharset(Charset inputCharset)
Deprecated.Description copied from class:HttpRequestBuilder
Sets the request character encoding.- Overrides:
setInputCharset
in classHttpRequestBuilder
- Parameters:
inputCharset
- encoding character set- Returns:
- This builder for chaining method calls.
-
setProxyServerHost
public HttpPostRequestBuilder setProxyServerHost(String host)
Deprecated.Description copied from class:HttpRequestBuilder
Sets the proxy server host.- Overrides:
setProxyServerHost
in classHttpRequestBuilder
- Parameters:
host
- proxy server host- Returns:
- This builder for chaining method calls.
-
setProxyServerPort
public HttpPostRequestBuilder setProxyServerPort(int port)
Deprecated.Description copied from class:HttpRequestBuilder
Sets the proxy server port.- Overrides:
setProxyServerPort
in classHttpRequestBuilder
- Parameters:
port
- proxy server port- Returns:
- This builder for chaining method calls.
-
setProxyServer
public HttpPostRequestBuilder setProxyServer(@NotNull @NotNull FcHttpRequestProps.ProxyProps proxyConfig)
Deprecated.Description copied from class:HttpRequestBuilder
Sets the following proxy server configuration parameters if defined inside theFcHttpRequestProps.ProxyProps
object:- proxy server host
- proxy server port
- login for a proxy server authentication
- password for a proxy server authentication
- Overrides:
setProxyServer
in classHttpRequestBuilder
- Parameters:
proxyConfig
- the proxy server configuration- Returns:
- This builder for chaining method calls.
-
setProxyServerAuth
public HttpPostRequestBuilder setProxyServerAuth(@NotNull @NotNull FcHttpRequestProps.ProxyAuthProps proxyAuth)
Deprecated.- Overrides:
setProxyServerAuth
in classHttpRequestBuilder
-
setProxyServerAuthLogin
public HttpPostRequestBuilder setProxyServerAuthLogin(String login)
Deprecated.- Overrides:
setProxyServerAuthLogin
in classHttpRequestBuilder
-
setProxyServerAuthPassword
public HttpPostRequestBuilder setProxyServerAuthPassword(String pwd)
Deprecated.- Overrides:
setProxyServerAuthPassword
in classHttpRequestBuilder
-
setBasicAuthLogin
public HttpPostRequestBuilder setBasicAuthLogin(String login)
Deprecated.- Overrides:
setBasicAuthLogin
in classHttpRequestBuilder
-
setBasicAuthPassword
public HttpPostRequestBuilder setBasicAuthPassword(String pwd)
Deprecated.- Overrides:
setBasicAuthPassword
in classHttpRequestBuilder
-
addParameter
public HttpPostRequestBuilder addParameter(String name, String value)
Deprecated.- Overrides:
addParameter
in classHttpRequestBuilder
-
addParameter
public HttpPostRequestBuilder addParameter(String name, String value, org.apache.http.entity.ContentType contentType)
Deprecated.- Overrides:
addParameter
in classHttpRequestBuilder
-
addHeader
public HttpPostRequestBuilder addHeader(String name, String value)
Deprecated.- Overrides:
addHeader
in classHttpRequestBuilder
-
addBinayData
public HttpPostRequestBuilder addBinayData(String elementName, byte[] data, String filename, @NotNull @NotNull String mimeType) throws Exception
Deprecated.- Overrides:
addBinayData
in classHttpRequestBuilder
- Throws:
Exception
-
addBinayData
public HttpPostRequestBuilder addBinayData(String elementName, byte[] data, String filename, @NotNull @NotNull String mimeType, @NotNull @NotNull Charset charset) throws Exception
Deprecated.- Overrides:
addBinayData
in classHttpRequestBuilder
- Throws:
Exception
-
withDisabledRedirectHandling
public HttpPostRequestBuilder withDisabledRedirectHandling(boolean disableRedirectHandling)
Deprecated.Description copied from class:HttpRequestBuilder
Enables/Disables automatic redirect handling.- Overrides:
withDisabledRedirectHandling
in classHttpRequestBuilder
- Parameters:
disableRedirectHandling
-true
orfalse
- Returns:
- This builder for chaining method calls.
-
-