public class GanderInterceptor
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GanderInterceptor.Period |
| Constructor and Description |
|---|
GanderInterceptor(android.content.Context context,
boolean showNotification) |
| Modifier and Type | Method and Description |
|---|---|
Response |
intercept(Chain chain) |
GanderInterceptor |
maxContentLength(long max)
Set the maximum length for request and response content before it is truncated.
|
GanderInterceptor |
retainDataFor(GanderInterceptor.Period period)
Set the retention period for HTTP transaction data captured by this interceptor.
|
public GanderInterceptor(android.content.Context context,
boolean showNotification)
context - The current Context.showNotification - true to show a notification, false to suppress it.public GanderInterceptor maxContentLength(long max)
max - the maximum length (in bytes) for request/response content.GanderInterceptor instance.public GanderInterceptor retainDataFor(GanderInterceptor.Period period)
period - the peroid for which to retain HTTP transaction data.GanderInterceptor instance.public Response intercept(Chain chain)
throws java.io.IOException
java.io.IOException