public abstract class AbstractLoggingInterceptor extends AbstractPhaseInterceptor<Message>
Modifier and Type | Field and Description |
---|---|
protected int |
limit |
protected boolean |
prettyLogging |
protected PrintWriter |
writer |
Constructor and Description |
---|
AbstractLoggingInterceptor(String phase) |
AbstractLoggingInterceptor(String id,
String phase) |
Modifier and Type | Method and Description |
---|---|
int |
getLimit() |
protected abstract Logger |
getLogger() |
PrintWriter |
getPrintWriter() |
boolean |
isPrettyLogging() |
protected void |
log(String message) |
void |
setLimit(int lim) |
void |
setOutputLocation(String s) |
void |
setPrettyLogging(boolean flag) |
void |
setPrintWriter(PrintWriter w) |
protected String |
transform(String originalLogString)
Transform the string before display.
|
protected void |
writePayload(StringBuilder builder,
CachedOutputStream cos,
String encoding,
String contentType) |
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleMessage
protected int limit
protected PrintWriter writer
protected boolean prettyLogging
public AbstractLoggingInterceptor(String phase)
protected abstract Logger getLogger()
public void setOutputLocation(String s)
public void setPrintWriter(PrintWriter w)
public PrintWriter getPrintWriter()
public void setLimit(int lim)
public int getLimit()
public void setPrettyLogging(boolean flag)
public boolean isPrettyLogging()
protected void writePayload(StringBuilder builder, CachedOutputStream cos, String encoding, String contentType) throws Exception
Exception
protected String transform(String originalLogString)
originalLogString
- the raw log message.protected void log(String message)
Apache CXF