Class HttpClientRequestOptions

java.lang.Object
org.eclipse.dirigible.api.v3.http.client.HttpClientRequestOptions

public class HttpClientRequestOptions
extends Object
The Class HttpClientRequestOptions.
  • Constructor Details

  • 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

      public String getProxyHost()
      Gets the proxy host.
      Returns:
      the proxy host
    • setProxyHost

      public void setProxyHost​(String proxyHost)
      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

      public String getCookieSpec()
      Gets the cookie spec.
      Returns:
      the cookie spec
    • setCookieSpec

      public void setCookieSpec​(String cookieSpec)
      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

      public Collection<String> getTargetPreferredAuthSchemes()
      Gets the target preferred auth schemes.
      Returns:
      the target preferred auth schemes
    • setTargetPreferredAuthSchemes

      public void setTargetPreferredAuthSchemes​(Collection<String> targetPreferredAuthSchemes)
      Sets the target preferred auth schemes.
      Parameters:
      targetPreferredAuthSchemes - the new target preferred auth schemes
    • getProxyPreferredAuthSchemes

      public Collection<String> getProxyPreferredAuthSchemes()
      Gets the proxy preferred auth schemes.
      Returns:
      the proxy preferred auth schemes
    • setProxyPreferredAuthSchemes

      public void setProxyPreferredAuthSchemes​(Collection<String> proxyPreferredAuthSchemes)
      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

      public String getText()
      Gets the text.
      Returns:
      the text
    • setText

      public void setText​(String text)
      Sets the text.
      Parameters:
      text - the new text
    • getFiles

      public String[] getFiles()
      Gets the files.
      Returns:
      the files
    • setFiles

      public void setFiles​(String[] files)
      Sets the files.
      Parameters:
      files - the new files
    • getCharacterEncoding

      public String getCharacterEncoding()
      Gets the character encoding.
      Returns:
      the character encoding
    • setCharacterEncoding

      public void setCharacterEncoding​(String characterEncoding)
      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

      public String getContentType()
      Gets the content type.
      Returns:
      the content type
    • setContentType

      public void setContentType​(String contentType)
      Sets the content type.
      Parameters:
      contentType - the new content type
    • getHeaders

      public List<HttpClientHeader> getHeaders()
      Gets the headers.
      Returns:
      the headers
    • setHeaders

      public void setHeaders​(List<HttpClientHeader> headers)
      Sets the headers.
      Parameters:
      headers - the new headers
    • getParams

      public List<HttpClientParam> getParams()
      Gets the params.
      Returns:
      the params
    • setParams

      public void setParams​(List<HttpClientParam> params)
      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