org.shiftone.jrat.util.log
Class AbstractLogCommandlet
java.lang.Object
org.shiftone.jrat.util.log.AbstractLogCommandlet
- All Implemented Interfaces:
- Commandlet
- Direct Known Subclasses:
- ResetCommandlet, WriteOutputCommandlet
public abstract class AbstractLogCommandlet
- extends java.lang.Object
- implements Commandlet
this is a base class for Commandlets that redirects the log output produced by
the command's thread to the command's output stream, and then reverst the logger back.
- Author:
- jeff@shiftone.org (Jeff Drost)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLogCommandlet
public AbstractLogCommandlet()
execute
protected abstract void execute()
throws java.lang.Exception
- Throws:
java.lang.Exception
execute
public final void execute(java.io.OutputStream output)
throws java.lang.Exception
- Specified by:
execute
in interface Commandlet
- Throws:
java.lang.Exception
getContentType
public final java.lang.String getContentType()
- Specified by:
getContentType
in interface Commandlet