public final class RealInterceptorChain extends java.lang.Object implements Interceptor.Chain
Modifier and Type | Field and Description |
---|---|
private Call |
call |
private int |
calls |
private RealConnection |
connection |
private int |
connectTimeout |
private EventListener |
eventListener |
private HttpCodec |
httpCodec |
private int |
index |
private java.util.List<Interceptor> |
interceptors |
private int |
readTimeout |
private Request |
request |
private StreamAllocation |
streamAllocation |
private int |
writeTimeout |
Constructor and Description |
---|
RealInterceptorChain(java.util.List<Interceptor> interceptors,
StreamAllocation streamAllocation,
HttpCodec httpCodec,
RealConnection connection,
int index,
Request request,
Call call,
EventListener eventListener,
int connectTimeout,
int readTimeout,
int writeTimeout) |
Modifier and Type | Method and Description |
---|---|
Call |
call() |
Connection |
connection()
Returns the connection the request will be executed on.
|
int |
connectTimeoutMillis() |
EventListener |
eventListener() |
HttpCodec |
httpStream() |
Response |
proceed(Request request) |
Response |
proceed(Request request,
StreamAllocation streamAllocation,
HttpCodec httpCodec,
RealConnection connection) |
int |
readTimeoutMillis() |
Request |
request() |
StreamAllocation |
streamAllocation() |
Interceptor.Chain |
withConnectTimeout(int timeout,
java.util.concurrent.TimeUnit unit) |
Interceptor.Chain |
withReadTimeout(int timeout,
java.util.concurrent.TimeUnit unit) |
Interceptor.Chain |
withWriteTimeout(int timeout,
java.util.concurrent.TimeUnit unit) |
int |
writeTimeoutMillis() |
private final java.util.List<Interceptor> interceptors
private final StreamAllocation streamAllocation
private final HttpCodec httpCodec
private final RealConnection connection
private final int index
private final Request request
private final Call call
private final EventListener eventListener
private final int connectTimeout
private final int readTimeout
private final int writeTimeout
private int calls
public RealInterceptorChain(java.util.List<Interceptor> interceptors, StreamAllocation streamAllocation, HttpCodec httpCodec, RealConnection connection, int index, Request request, Call call, EventListener eventListener, int connectTimeout, int readTimeout, int writeTimeout)
public Connection connection()
Interceptor.Chain
connection
in interface Interceptor.Chain
public int connectTimeoutMillis()
connectTimeoutMillis
in interface Interceptor.Chain
public Interceptor.Chain withConnectTimeout(int timeout, java.util.concurrent.TimeUnit unit)
withConnectTimeout
in interface Interceptor.Chain
public int readTimeoutMillis()
readTimeoutMillis
in interface Interceptor.Chain
public Interceptor.Chain withReadTimeout(int timeout, java.util.concurrent.TimeUnit unit)
withReadTimeout
in interface Interceptor.Chain
public int writeTimeoutMillis()
writeTimeoutMillis
in interface Interceptor.Chain
public Interceptor.Chain withWriteTimeout(int timeout, java.util.concurrent.TimeUnit unit)
withWriteTimeout
in interface Interceptor.Chain
public StreamAllocation streamAllocation()
public HttpCodec httpStream()
public Call call()
call
in interface Interceptor.Chain
public EventListener eventListener()
public Request request()
request
in interface Interceptor.Chain
public Response proceed(Request request) throws java.io.IOException
proceed
in interface Interceptor.Chain
java.io.IOException
public Response proceed(Request request, StreamAllocation streamAllocation, HttpCodec httpCodec, RealConnection connection) throws java.io.IOException
java.io.IOException