Interface Policy

All Known Implementing Classes:
HttpURLConnectionImpl

public interface Policy
  • Method Details

    • getUseCaches

      boolean getUseCaches()
      Returns true if HTTP response caches should be used.
    • getHttpConnectionToCache

      HttpURLConnection getHttpConnectionToCache()
      Returns the HttpURLConnection instance to store in the cache.
    • getURL

      URL getURL()
      Returns the current destination URL, possibly a redirect.
    • getIfModifiedSince

      long getIfModifiedSince()
      Returns the If-Modified-Since timestamp, or 0 if none is set.
    • usingProxy

      boolean usingProxy()
      Returns true if a non-direct proxy is specified.
    • getChunkLength

      int getChunkLength()
      See Also:
      HttpURLConnection.setChunkedStreamingMode(int)
    • getFixedContentLength

      long getFixedContentLength()
      See Also:
      HttpURLConnection.setFixedLengthStreamingMode(int)
    • setSelectedProxy

      void setSelectedProxy​(Proxy proxy)
      Sets the current proxy that this connection is using.
      See Also:
      HttpURLConnection.usingProxy()