Class AbstractRestrictedResourceRetriever

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractRestrictedResourceRetriever​(int connectTimeout, int readTimeout, int sizeLimit)
      Creates a new abstract restricted resource retriever.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getConnectTimeout()
      Gets the HTTP connect timeout.
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getHeaders()
      Gets the headers to set for the HTTP request.
      int getReadTimeout()
      Gets the HTTP read timeout.
      int getSizeLimit()
      Gets the HTTP entity size limit.
      void setConnectTimeout​(int connectTimeoutMs)
      Sets the HTTP connect timeout.
      void setHeaders​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> headers)
      Sets the headers to set for the HTTP request.
      void setReadTimeout​(int readTimeoutMs)
      Sets the HTTP read timeout.
      void setSizeLimit​(int sizeLimitBytes)
      Sets the HTTP entity size limit.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractRestrictedResourceRetriever

        public AbstractRestrictedResourceRetriever​(int connectTimeout,
                                                   int readTimeout,
                                                   int sizeLimit)
        Creates a new abstract restricted resource retriever.
        Parameters:
        connectTimeout - The HTTP connects timeout, in milliseconds, zero for infinite. Must not be negative.
        readTimeout - The HTTP read timeout, in milliseconds, zero for infinite. Must not be negative.
        sizeLimit - The HTTP entity size limit, in bytes, zero for infinite. Must not be negative.