Package com.jcabi.http.wire
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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Responsesend(Request req, String home, String method, Collection<Map.Entry<String,String>> headers, InputStream content, int connect, int read)Send request and return response.
-
-
-
Method Detail
-
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:WireSend request and return response.- Specified by:
sendin interfaceWire- Parameters:
req- Requesthome- URI to fetchmethod- HTTP methodheaders- Headerscontent- HTTP bodyconnect- The connect timeoutread- The read timeout- Returns:
- Response obtained
- Throws:
IOException- if fails
-
-