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.Adds a header field to the HTTP request.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.Sets the login name for performing an HTTP basic authentication.HttpPostRequestBuilder
setBasicAuthPassword(String pwd)
Deprecated.Sets the password for performing an HTTP basic authentication.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.Sets the login name and password of the proxy server, if one is used.HttpPostRequestBuilder
setProxyServerAuthLogin(String login)
Deprecated.Sets the login name for the proxy server, if one is used.HttpPostRequestBuilder
setProxyServerAuthPassword(String pwd)
Deprecated.Sets the password for the proxy server, if one is used.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, build, formDataBuilder, getUrl, multipartBuilder, setBody, 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.Description copied from class:HttpRequestBuilder
Sets the login name and password of the proxy server, if one is used.- Overrides:
setProxyServerAuth
in classHttpRequestBuilder
- Parameters:
proxyAuth
- Login name and user name for the proxy.- Returns:
- This builder for chaining method calls.
-
setProxyServerAuthLogin
public HttpPostRequestBuilder setProxyServerAuthLogin(String login)
Deprecated.Description copied from class:HttpRequestBuilder
Sets the login name for the proxy server, if one is used.- Overrides:
setProxyServerAuthLogin
in classHttpRequestBuilder
- Parameters:
login
- Login name for the proxy- Returns:
- This builder for chaining method calls.
-
setProxyServerAuthPassword
public HttpPostRequestBuilder setProxyServerAuthPassword(String pwd)
Deprecated.Description copied from class:HttpRequestBuilder
Sets the password for the proxy server, if one is used.- Overrides:
setProxyServerAuthPassword
in classHttpRequestBuilder
- Parameters:
pwd
- Password for the proxy- Returns:
- This builder for chaining method calls.
-
setBasicAuthLogin
public HttpPostRequestBuilder setBasicAuthLogin(String login)
Deprecated.Description copied from class:HttpRequestBuilder
Sets the login name for performing an HTTP basic authentication.- Overrides:
setBasicAuthLogin
in classHttpRequestBuilder
- Parameters:
login
- User name for the basic authentication.- Returns:
- This builder for chaining method calls.
-
setBasicAuthPassword
public HttpPostRequestBuilder setBasicAuthPassword(String pwd)
Deprecated.Description copied from class:HttpRequestBuilder
Sets the password for performing an HTTP basic authentication.- Overrides:
setBasicAuthPassword
in classHttpRequestBuilder
- Parameters:
pwd
- Password for the basic authentication.- Returns:
- This builder for chaining method calls.
-
addParameter
public HttpPostRequestBuilder addParameter(String name, String value)
Deprecated.- Overrides:
addParameter
in classHttpRequestBuilder
- Parameters:
name
- Name of the parameter to add.value
- Value of the parameter to add.- Returns:
- This builder for chaining method calls.
-
addParameter
public HttpPostRequestBuilder addParameter(String name, String value, org.apache.http.entity.ContentType contentType)
Deprecated.- Overrides:
addParameter
in classHttpRequestBuilder
- Parameters:
name
- Name of the parameter to add.value
- Value of the parameter to add.contentType
- Content type of the parameter.- Returns:
- This builder for chaining method calls.
-
addHeader
public HttpPostRequestBuilder addHeader(String name, String value)
Deprecated.Description copied from class:HttpRequestBuilder
Adds a header field to the HTTP request. Note that it is possible to have multiple header fields with the same name.- Overrides:
addHeader
in classHttpRequestBuilder
- Parameters:
name
- Name of the header.value
- Value of the header.- Returns:
- This builder for chaining method calls.
-
addBinayData
public HttpPostRequestBuilder addBinayData(String elementName, byte[] data, String filename, @NotNull @NotNull String mimeType)
Deprecated.- Overrides:
addBinayData
in classHttpRequestBuilder
- Parameters:
elementName
- Name of the file.data
- Binary data of the file.filename
- Name of the file.mimeType
- Mime type of the file.- Returns:
- This builder for chaining method calls.
-
addBinayData
public HttpPostRequestBuilder addBinayData(String elementName, byte[] data, String filename, @NotNull @NotNull String mimeType, @NotNull @NotNull Charset charset)
Deprecated.- Overrides:
addBinayData
in classHttpRequestBuilder
- Parameters:
elementName
- Name of the file.data
- Binary data of the file.filename
- Name of the file.mimeType
- Mime type of the file.charset
- Charset of the file content.- Returns:
- This builder for chaining method calls.
-
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.
-
-