org.shiftone.jrat.util.log
Class AbstractLogCommandlet

java.lang.Object
  extended by 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)

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.shiftone.jrat.core.spi.Commandlet
Commandlet.ContentType
 
Constructor Summary
AbstractLogCommandlet()
           
 
Method Summary
protected abstract  void execute()
           
 void execute(java.io.OutputStream output)
           
 java.lang.String getContentType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.shiftone.jrat.core.spi.Commandlet
getTitle
 

Constructor Detail

AbstractLogCommandlet

public AbstractLogCommandlet()
Method Detail

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