Package de.xima.fc.http
Class HttpPostRequestBuilder
java.lang.Object
de.xima.fc.http.HttpRequestBuilder
de.xima.fc.http.HttpPostRequestBuilder
Deprecated.
Builder for preparing and sending an HTTP POST request.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionaddBinayData
(String elementName, byte[] data, String filename, @NotNull String mimeType) Deprecated.addBinayData
(String elementName, byte[] data, String filename, @NotNull String mimeType, @NotNull Charset charset) Deprecated.Deprecated.Adds a header field to the HTTP request.addParameter
(String name, String value) Deprecated.addParameter
(String name, String value, org.apache.http.entity.ContentType contentType) Deprecated.setBasicAuthLogin
(String login) Deprecated.Sets the login name for performing an HTTP basic authentication.Deprecated.Sets the password for performing an HTTP basic authentication.setInputCharset
(Charset inputCharset) Deprecated.Sets the request character encoding.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 authenticationsetProxyServerAuth
(@NotNull FcHttpRequestProps.ProxyAuthProps proxyAuth) Deprecated.Sets the login name and password of the proxy server, if one is used.setProxyServerAuthLogin
(String login) Deprecated.Sets the login name for the proxy server, if one is used.Deprecated.Sets the password for the proxy server, if one is used.setProxyServerHost
(String host) Deprecated.Sets the proxy server host.setProxyServerPort
(int port) Deprecated.Sets the proxy server port.withDisabledRedirectHandling
(boolean disableRedirectHandling) Deprecated.Enables/Disables automatic redirect handling.Methods inherited from class de.xima.fc.http.HttpRequestBuilder
build, build, createBuilder, customBuilder, fileBuilder, formDataBuilder, getUri, getUrl, multipartBuilder, setBody, setUri, supportsMessageBody, urliBuilder, useBasicAuthentication, useProxyServer, useProxyServerAuthentication, withAllowInvalidCertificates, withConnectTimeout, withReadTimeout
-
Constructor Details
-
HttpPostRequestBuilder
Deprecated.- Parameters:
uri
- The request URL. Whennull
,URI.from("")
is used.- Throws:
URISyntaxException
- When the given string is not a valid URI.
-
HttpPostRequestBuilder
Deprecated.- Parameters:
uri
- The request URL. Whennull
,URI.from("")
is used.
-
-
Method Details
-
setInputCharset
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
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
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
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
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
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
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
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
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
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.
-
HttpRequestBuilder
.