|
Openfire 3.3.0 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.util.log.output.AbstractTarget
org.jivesoftware.util.log.output.AbstractOutputTarget
public abstract class AbstractOutputTarget
Abstract output target. Any new output target that is writing to a single connected resource should extend this class directly or indirectly.
| Constructor Summary | |
|---|---|
AbstractOutputTarget()
Parameterless constructor. |
|
AbstractOutputTarget(Formatter formatter)
|
|
| Method Summary | |
|---|---|
void |
close()
Shutdown target. |
protected void |
doProcessEvent(LogEvent event)
Process a log event, via formatting and outputting it. |
Formatter |
getFormatter()
Deprecated. Access to formatter is not advised and this method will be removed in future iterations. It remains only for backwards compatability. |
protected void |
open()
Startup log session. |
protected void |
output(String data)
Deprecated. User should overide send() instead of output(). Output exists for backwards compatability and will be removed in future. |
void |
setFormatter(Formatter formatter)
Deprecated. In future this method will become protected access. |
protected void |
write(String data)
Abstract method to send data. |
| Methods inherited from class org.jivesoftware.util.log.output.AbstractTarget |
|---|
error, getErrorHandler, isOpen, processEvent, setErrorHandler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractOutputTarget()
public AbstractOutputTarget(Formatter formatter)
| Method Detail |
|---|
public Formatter getFormatter()
public void setFormatter(Formatter formatter)
formatter - the formatterprotected void write(String data)
data - the data to be outputprotected void output(String data)
data - the data to be outputprotected void doProcessEvent(LogEvent event)
AbstractTarget
doProcessEvent in class AbstractTargetevent - the log eventprotected void open()
open in class AbstractTargetpublic void close()
close in class AbstractTarget
|
Openfire 3.3.0 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||