Class HttpClientRequestOptions
java.lang.Object
org.eclipse.dirigible.api.v3.http.client.HttpClientRequestOptions
public class HttpClientRequestOptions extends Object
The Class HttpClientRequestOptions.
-
Constructor Summary
Constructors Constructor Description HttpClientRequestOptions() -
Method Summary
Modifier and Type Method Description StringgetCharacterEncoding()Gets the character encoding.intgetConnectionRequestTimeout()Gets the connection request timeout.intgetConnectTimeout()Gets the connect timeout.StringgetContentType()Gets the content type.com.google.gson.JsonObjectgetContext()Gets the context.StringgetCookieSpec()Gets the cookie spec.byte[]getData()Gets the data.String[]getFiles()Gets the files.List<HttpClientHeader>getHeaders()Gets the headers.intgetMaxRedirects()Gets the max redirects.List<HttpClientParam>getParams()Gets the params.StringgetProxyHost()Gets the proxy host.intgetProxyPort()Gets the proxy port.Collection<String>getProxyPreferredAuthSchemes()Gets the proxy preferred auth schemes.intgetSocketTimeout()Gets the socket timeout.Collection<String>getTargetPreferredAuthSchemes()Gets the target preferred auth schemes.StringgetText()Gets the text.booleanisAuthenticationEnabled()Checks if is authentication enabled.booleanisBinary()Checks if is binary.booleanisCharacterEncodingEnabled()Checks if the character encoding is enabledbooleanisCircularRedirectsAllowed()Checks if is circular redirects allowed.booleanisContentCompressionEnabled()Checks if is content compression enabled.booleanisExpectContinueEnabled()Checks if is expect continue enabled.booleanisRedirectsEnabled()Checks if is redirects enabled.booleanisRelativeRedirectsAllowed()Checks if is relative redirects allowed.booleanisSslTrustAllEnabled()Checks if is ssl trust all enabled.voidsetAuthenticationEnabled(boolean authenticationEnabled)Sets the authentication enabled.voidsetBinary(boolean binary)Sets the binary.voidsetCharacterEncoding(String characterEncoding)Sets the character encoding.voidsetCharacterEncodingEnabled(boolean characcerEncodingEnabled)Sets the character encoding enabled.voidsetCircularRedirectsAllowed(boolean circularRedirectsAllowed)Sets the circular redirects allowed.voidsetConnectionRequestTimeout(int connectionRequestTimeout)Sets the connection request timeout.voidsetConnectTimeout(int connectTimeout)Sets the connect timeout.voidsetContentCompressionEnabled(boolean contentCompressionEnabled)Sets the content compression enabled.voidsetContentType(String contentType)Sets the content type.voidsetContext(com.google.gson.JsonObject context)Sets the context.voidsetCookieSpec(String cookieSpec)Sets the cookie spec.voidsetData(byte[] data)Sets the data.voidsetExpectContinueEnabled(boolean expectContinueEnabled)Sets the expect continue enabled.voidsetFiles(String[] files)Sets the files.voidsetHeaders(List<HttpClientHeader> headers)Sets the headers.voidsetMaxRedirects(int maxRedirects)Sets the max redirects.voidsetParams(List<HttpClientParam> params)Sets the params.voidsetProxyHost(String proxyHost)Sets the proxy host.voidsetProxyPort(int proxyPort)Sets the proxy port.voidsetProxyPreferredAuthSchemes(Collection<String> proxyPreferredAuthSchemes)Sets the proxy preferred auth schemes.voidsetRedirectsEnabled(boolean redirectsEnabled)Sets the redirects enabled.voidsetRelativeRedirectsAllowed(boolean relativeRedirectsAllowed)Sets the relative redirects allowed.voidsetSocketTimeout(int socketTimeout)Sets the socket timeout.voidsetSslTrustAllEnabled(boolean sslTrustAllEnabled)Sets the ssl trust all enabled.voidsetTargetPreferredAuthSchemes(Collection<String> targetPreferredAuthSchemes)Sets the target preferred auth schemes.voidsetText(String text)Sets the text.
-
Constructor Details
-
HttpClientRequestOptions
public HttpClientRequestOptions()
-
-
Method Details
-
isExpectContinueEnabled
public boolean isExpectContinueEnabled()Checks if is expect continue enabled.- Returns:
- true, if is expect continue enabled
-
setExpectContinueEnabled
public void setExpectContinueEnabled(boolean expectContinueEnabled)Sets the expect continue enabled.- Parameters:
expectContinueEnabled- the new expect continue enabled
-
getProxyHost
Gets the proxy host.- Returns:
- the proxy host
-
setProxyHost
Sets the proxy host.- Parameters:
proxyHost- the new proxy host
-
getProxyPort
public int getProxyPort()Gets the proxy port.- Returns:
- the proxy port
-
setProxyPort
public void setProxyPort(int proxyPort)Sets the proxy port.- Parameters:
proxyPort- the new proxy port
-
getCookieSpec
Gets the cookie spec.- Returns:
- the cookie spec
-
setCookieSpec
Sets the cookie spec.- Parameters:
cookieSpec- the new cookie spec
-
isRedirectsEnabled
public boolean isRedirectsEnabled()Checks if is redirects enabled.- Returns:
- true, if is redirects enabled
-
setRedirectsEnabled
public void setRedirectsEnabled(boolean redirectsEnabled)Sets the redirects enabled.- Parameters:
redirectsEnabled- the new redirects enabled
-
isRelativeRedirectsAllowed
public boolean isRelativeRedirectsAllowed()Checks if is relative redirects allowed.- Returns:
- true, if is relative redirects allowed
-
setRelativeRedirectsAllowed
public void setRelativeRedirectsAllowed(boolean relativeRedirectsAllowed)Sets the relative redirects allowed.- Parameters:
relativeRedirectsAllowed- the new relative redirects allowed
-
isCircularRedirectsAllowed
public boolean isCircularRedirectsAllowed()Checks if is circular redirects allowed.- Returns:
- true, if is circular redirects allowed
-
setCircularRedirectsAllowed
public void setCircularRedirectsAllowed(boolean circularRedirectsAllowed)Sets the circular redirects allowed.- Parameters:
circularRedirectsAllowed- the new circular redirects allowed
-
getMaxRedirects
public int getMaxRedirects()Gets the max redirects.- Returns:
- the max redirects
-
setMaxRedirects
public void setMaxRedirects(int maxRedirects)Sets the max redirects.- Parameters:
maxRedirects- the new max redirects
-
isAuthenticationEnabled
public boolean isAuthenticationEnabled()Checks if is authentication enabled.- Returns:
- true, if is authentication enabled
-
setAuthenticationEnabled
public void setAuthenticationEnabled(boolean authenticationEnabled)Sets the authentication enabled.- Parameters:
authenticationEnabled- the new authentication enabled
-
getTargetPreferredAuthSchemes
Gets the target preferred auth schemes.- Returns:
- the target preferred auth schemes
-
setTargetPreferredAuthSchemes
Sets the target preferred auth schemes.- Parameters:
targetPreferredAuthSchemes- the new target preferred auth schemes
-
getProxyPreferredAuthSchemes
Gets the proxy preferred auth schemes.- Returns:
- the proxy preferred auth schemes
-
setProxyPreferredAuthSchemes
Sets the proxy preferred auth schemes.- Parameters:
proxyPreferredAuthSchemes- the new proxy preferred auth schemes
-
getConnectionRequestTimeout
public int getConnectionRequestTimeout()Gets the connection request timeout.- Returns:
- the connection request timeout
-
setConnectionRequestTimeout
public void setConnectionRequestTimeout(int connectionRequestTimeout)Sets the connection request timeout.- Parameters:
connectionRequestTimeout- the new connection request timeout
-
getConnectTimeout
public int getConnectTimeout()Gets the connect timeout.- Returns:
- the connect timeout
-
setConnectTimeout
public void setConnectTimeout(int connectTimeout)Sets the connect timeout.- Parameters:
connectTimeout- the new connect timeout
-
getSocketTimeout
public int getSocketTimeout()Gets the socket timeout.- Returns:
- the socket timeout
-
setSocketTimeout
public void setSocketTimeout(int socketTimeout)Sets the socket timeout.- Parameters:
socketTimeout- the new socket timeout
-
isContentCompressionEnabled
public boolean isContentCompressionEnabled()Checks if is content compression enabled.- Returns:
- true, if is content compression enabled
-
setContentCompressionEnabled
public void setContentCompressionEnabled(boolean contentCompressionEnabled)Sets the content compression enabled.- Parameters:
contentCompressionEnabled- the new content compression enabled
-
isSslTrustAllEnabled
public boolean isSslTrustAllEnabled()Checks if is ssl trust all enabled.- Returns:
- true, if is ssl trust all enabled
-
setSslTrustAllEnabled
public void setSslTrustAllEnabled(boolean sslTrustAllEnabled)Sets the ssl trust all enabled.- Parameters:
sslTrustAllEnabled- the new ssl trust all enabled
-
getData
public byte[] getData()Gets the data.- Returns:
- the data
-
setData
public void setData(byte[] data)Sets the data.- Parameters:
data- the new data
-
getText
Gets the text.- Returns:
- the text
-
setText
Sets the text.- Parameters:
text- the new text
-
getFiles
Gets the files.- Returns:
- the files
-
setFiles
Sets the files.- Parameters:
files- the new files
-
getCharacterEncoding
Gets the character encoding.- Returns:
- the character encoding
-
setCharacterEncoding
Sets the character encoding.- Parameters:
characterEncoding- the new character encoding
-
isCharacterEncodingEnabled
public boolean isCharacterEncodingEnabled()Checks if the character encoding is enabled- Returns:
- true, if the character encoding is enabled
-
setCharacterEncodingEnabled
public void setCharacterEncodingEnabled(boolean characcerEncodingEnabled)Sets the character encoding enabled.- Parameters:
characcerEncodingEnabled- the new character encoding enabled
-
getContentType
Gets the content type.- Returns:
- the content type
-
setContentType
Sets the content type.- Parameters:
contentType- the new content type
-
getHeaders
Gets the headers.- Returns:
- the headers
-
setHeaders
Sets the headers.- Parameters:
headers- the new headers
-
getParams
Gets the params.- Returns:
- the params
-
setParams
Sets the params.- Parameters:
params- the new params
-
isBinary
public boolean isBinary()Checks if is binary.- Returns:
- true, if is binary
-
setBinary
public void setBinary(boolean binary)Sets the binary.- Parameters:
binary- the new binary
-
getContext
public com.google.gson.JsonObject getContext()Gets the context.- Returns:
- the context
-
setContext
public void setContext(com.google.gson.JsonObject context)Sets the context.- Parameters:
context- the new context
-