|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.httpclient.WireLog
public class WireLog
Logs data to the wire LOG.
Field Summary | |
---|---|
static int |
IN_BODY
selector for logging the response body |
static int |
IN_HEAD
selector for logging the response header |
static int |
OUT_BODY
selector for logging the request body |
static int |
OUT_HEAD
selector for logging the request header |
Constructor Summary | |
---|---|
WireLog(OutputStream log,
int what)
Create a new logger. |
Method Summary | |
---|---|
WireLogInputStream |
getInFilter()
Get the configured response stream wrapper. |
org.apache.commons.httpclient.WireLogOutputStream |
getOutFilter()
Get the configured request stream wrapper. |
boolean |
isEnabled(int what)
Check, whether the given part should be logged. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int OUT_HEAD
public static final int OUT_BODY
public static final int IN_HEAD
public static final int IN_BODY
Constructor Detail |
---|
public WireLog(OutputStream log, int what)
log
- where to log stuffwhat
- what to log. Its a combination (bitmask) of
OUT_HEAD
, OUT_BODY
, IN_HEAD
and
IN_BODY
.Method Detail |
---|
public WireLogInputStream getInFilter()
null
if response logging is disabled, the stream
otherwise.public org.apache.commons.httpclient.WireLogOutputStream getOutFilter()
null
if response logging is disabled, the stream
otherwise.public boolean isEnabled(int what)
what
- a combination (bitmask) of
OUT_HEAD
, OUT_BODY
, IN_HEAD
and
IN_BODY
.
true
if logging is enabled for the given part.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |