Class HttpURLConnectionRequest

java.lang.Object
com.hybris.ymkt.common.http.HttpURLConnectionRequest

public class HttpURLConnectionRequest extends Object
  • Field Details

    • connectTimeout

      protected int connectTimeout
    • payload

      protected byte[] payload
    • proxy

      protected Proxy proxy
    • readTimeout

      protected int readTimeout
    • requestMethod

      protected final String requestMethod
    • requestProperties

      protected final Map<String,String> requestProperties
    • url

      protected final URL url
  • Constructor Details

  • Method Details

    • getConnectTimeout

      public int getConnectTimeout()
    • getPayload

      @Nonnull public byte[] getPayload()
    • getProxy

      @Nonnull public Proxy getProxy()
    • getReadTimeout

      public int getReadTimeout()
    • getRequestMethod

      @Nonnull public String getRequestMethod()
    • getRequestProperties

      @Nonnull public Map<String,String> getRequestProperties()
      Returns:
      Modifiable map containing the request properties to be added to the URLConnection.
      See Also:
    • getURL

      @Nonnull public URL getURL()
    • setConnectTimeout

      public void setConnectTimeout(int connectTimeout)
      Parameters:
      connectTimeout - an int that specifies the connect timeout value in milliseconds.
      Replace the value set in HttpURLConnectionService#setConnectTimeout(int).
      The default value is -1. Any negative value will be ignore and will use the HttpURLConnectionService#setConnectTimeout(int) set instead.
      See Also:
    • setPayload

      public void setPayload(byte[] payload)
      Parameters:
      payload - bytes sent as part of the HTTP request.
      See Also:
    • setProxy

      public void setProxy(Proxy proxy)
      Parameters:
      proxy -
      See Also:
    • setReadTimeout

      public void setReadTimeout(int readTimeout)
      Parameters:
      readTimeout - an int that specifies the timeout value to be used in milliseconds.
      Replace the value set in HttpURLConnectionService#setReadTimeout(int).
      The default value is -1. Any negative value will be ignore and will use the HttpURLConnectionService#setReadTimeout(int) set instead.
      See Also: