Package ucar.httpservices
Class HTTPIntercepts
- java.lang.Object
-
- ucar.httpservices.HTTPIntercepts
-
public class HTTPIntercepts extends Object
Package together all the HTTP Intercept code
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HTTPIntercepts.DebugInterceptRequest
static class
HTTPIntercepts.DebugInterceptResponse
static interface
HTTPIntercepts.Printer
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.http.HttpResponseInterceptor
CEKILL
protected List<org.apache.http.HttpRequestInterceptor>
dbgreq
protected List<org.apache.http.HttpResponseInterceptor>
dbgrsp
protected static boolean
defaultinterception
protected static HTTPIntercepts.Printer
defaultprinter
static HTTPIntercepts.Printer
logprinter
protected HTTPIntercepts.Printer
printer
protected List<org.apache.http.HttpRequestInterceptor>
reqintercepts
protected List<org.apache.http.HttpResponseInterceptor>
rspintercepts
-
Constructor Summary
Constructors Constructor Description HTTPIntercepts()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activateInterceptors(org.apache.http.impl.client.HttpClientBuilder cb)
protected void
addDebugInterceptors()
HTTPIntercepts.DebugInterceptRequest
debugRequestInterceptor()
HTTPIntercepts.DebugInterceptResponse
debugResponseInterceptor()
void
removeCompression()
void
removeDebugIntercepts()
void
resetInterceptors()
void
setCEKILL(boolean tf)
void
setDeflateCompression()
static void
setGlobalDebugInterceptors(boolean tf)
static void
setGlobalPrinter(HTTPIntercepts.Printer printer)
void
setGzipCompression()
-
-
-
Field Detail
-
logprinter
public static HTTPIntercepts.Printer logprinter
-
defaultinterception
protected static boolean defaultinterception
-
defaultprinter
protected static HTTPIntercepts.Printer defaultprinter
-
printer
protected HTTPIntercepts.Printer printer
-
CEKILL
protected org.apache.http.HttpResponseInterceptor CEKILL
-
reqintercepts
protected List<org.apache.http.HttpRequestInterceptor> reqintercepts
-
rspintercepts
protected List<org.apache.http.HttpResponseInterceptor> rspintercepts
-
dbgreq
protected List<org.apache.http.HttpRequestInterceptor> dbgreq
-
dbgrsp
protected List<org.apache.http.HttpResponseInterceptor> dbgrsp
-
-
Method Detail
-
setGlobalDebugInterceptors
public static void setGlobalDebugInterceptors(boolean tf)
-
setGlobalPrinter
public static void setGlobalPrinter(HTTPIntercepts.Printer printer)
-
debugRequestInterceptor
public HTTPIntercepts.DebugInterceptRequest debugRequestInterceptor()
-
debugResponseInterceptor
public HTTPIntercepts.DebugInterceptResponse debugResponseInterceptor()
-
setCEKILL
public void setCEKILL(boolean tf)
-
activateInterceptors
public void activateInterceptors(org.apache.http.impl.client.HttpClientBuilder cb)
-
addDebugInterceptors
protected void addDebugInterceptors()
-
resetInterceptors
public void resetInterceptors()
-
setGzipCompression
public void setGzipCompression()
-
setDeflateCompression
public void setDeflateCompression()
-
removeCompression
public void removeCompression()
-
removeDebugIntercepts
public void removeDebugIntercepts()
-
-