org.pf.net
Class BaseTextRequestProcessor

java.lang.Object
  extended by org.pf.net.BaseTextRequestProcessor
All Implemented Interfaces:
java.lang.Runnable, RequestProcessor, TextRequestProcessor

public abstract class BaseTextRequestProcessor
extends java.lang.Object
implements TextRequestProcessor

The abstract implementation of a text request processor that leaves only the processing of a single request to subclasses.

Version:
1.0
Author:
Manfred Duchrow

Constructor Summary
BaseTextRequestProcessor(TextSocketConnection conn)
          Initialize the new instance with default values.
 
Method Summary
abstract  void processRequest(java.lang.String request)
          Subclasses must implement this method to process the request.
 void run()
          Runs the processing of requests coming in from the underlying socket connection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseTextRequestProcessor

public BaseTextRequestProcessor(TextSocketConnection conn)
Initialize the new instance with default values.

Method Detail

run

public void run()
Runs the processing of requests coming in from the underlying socket connection.

Specified by:
run in interface java.lang.Runnable

processRequest

public abstract void processRequest(java.lang.String request)
Subclasses must implement this method to process the request.

Parameters:
request - The request as text that has been received from the connection