Class AbstractHeaderBasedCachingWire

java.lang.Object
com.jcabi.http.wire.AbstractHeaderBasedCachingWire
All Implemented Interfaces:
Wire
Direct Known Subclasses:
ETagCachingWire, LastModifiedCachingWire

public abstract class AbstractHeaderBasedCachingWire extends Object implements Wire
This is the base class to handle http responses with 304 state.
Since:
2.0
  • Method Details

    • send

      public final Response send(Request req, String home, String method, Collection<Map.Entry<String,String>> headers, InputStream content, int connect, int read) throws IOException
      Description copied from interface: Wire
      Send request and return response.
      Specified by:
      send in interface Wire
      Parameters:
      req - Request
      home - URI to fetch
      method - HTTP method
      headers - Headers
      content - HTTP body
      connect - The connect timeout
      read - The read timeout
      Returns:
      Response obtained
      Throws:
      IOException - if fails