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 Response
send(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:Wire
Send request and return response.- Specified by:
send
in 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
-
-