SRJRCFrames
v0.1.296

de.schwarzrot.app.support
Class AbstractResponseHandler

java.lang.Object
  extended by de.schwarzrot.app.support.AbstractResponseHandler
All Implemented Interfaces:
ResponseHandler, Runnable
Direct Known Subclasses:
TimestampResponseHandler

public abstract class AbstractResponseHandler
extends Object
implements ResponseHandler, Runnable


Field Summary
static String ENDSIG
           
 
Constructor Summary
protected AbstractResponseHandler(Client client, String requestCommand, Object requestArgs)
           
 
Method Summary
protected  void cleanup(long maxLifeTime)
           
 Object getArguments()
           
protected  Client getClient()
           
 String getCommand()
           
 long getLifetime()
           
protected  org.apache.commons.logging.Log getLogger()
           
 TransactionFactory getTransactionFactory()
           
protected abstract  void processLine(String line, BufferedReader br)
           
 void processResponse(BufferedReader br)
           
 void run()
           
 void setArguments(Object args)
           
 void setCommand(String command)
           
 void setMaxLifetime(long lifeTime)
           
 boolean skipCheck()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENDSIG

public static final String ENDSIG
See Also:
Constant Field Values
Constructor Detail

AbstractResponseHandler

protected AbstractResponseHandler(Client client,
                                  String requestCommand,
                                  Object requestArgs)
Method Detail

getArguments

public Object getArguments()
Specified by:
getArguments in interface ResponseHandler

getCommand

public final String getCommand()
Specified by:
getCommand in interface ResponseHandler

getLifetime

public final long getLifetime()

getTransactionFactory

public final TransactionFactory getTransactionFactory()

processResponse

public void processResponse(BufferedReader br)
Specified by:
processResponse in interface ResponseHandler

run

public void run()
Specified by:
run in interface Runnable

setArguments

public final void setArguments(Object args)
Specified by:
setArguments in interface ResponseHandler

setCommand

public final void setCommand(String command)
Specified by:
setCommand in interface ResponseHandler

setMaxLifetime

public final void setMaxLifetime(long lifeTime)
Specified by:
setMaxLifetime in interface ResponseHandler

skipCheck

public boolean skipCheck()

cleanup

protected void cleanup(long maxLifeTime)

getClient

protected final Client getClient()

getLogger

protected final org.apache.commons.logging.Log getLogger()

processLine

protected abstract void processLine(String line,
                                    BufferedReader br)

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.