SK.gnome.dwarf.tcpip
Class TCPRequest

java.lang.Object
  extended bySK.gnome.dwarf.tcpip.TCPRequest
Direct Known Subclasses:
EchoTCPRequest

public abstract class TCPRequest
extends java.lang.Object

Abstract client request for the non-blocking servers.

Non-blocking server mode operation is an experimental feature.


Field Summary
protected  TCPIPServer server
           
protected  java.net.Socket socket
           
 
Constructor Summary
protected TCPRequest(TCPIPServer server)
           
 
Method Summary
protected  void abort()
           
protected  void finish()
           
protected  java.nio.channels.SocketChannel getChannel()
           
protected  void checkExpired()
           
protected  void init()
           
protected  boolean isExpired()
           
protected  boolean isFinished()
           
protected  boolean isInitialized()
           
protected  void log(LogLevel level, java.lang.String message)
           
protected  void log(LogLevel level, java.lang.String message, java.lang.Throwable error)
           
protected abstract  void process()
           
protected  void recycle()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

protected TCPIPServer server

socket

protected java.net.Socket socket
Constructor Detail

TCPRequest

protected TCPRequest(TCPIPServer server)
Method Detail

init

protected void init()

isInitialized

protected boolean isInitialized()

process

protected abstract void process()

abort

protected void abort()

finish

protected void finish()

isFinished

protected boolean isFinished()

recycle

protected void recycle()

getChannel

protected java.nio.channels.SocketChannel getChannel()

isExpired

protected boolean isExpired()

checkExpired

protected void checkExpired()
                     throws java.net.SocketTimeoutException
Throws:
java.net.SocketTimeoutException

log

protected void log(LogLevel level,
                   java.lang.String message)

log

protected void log(LogLevel level,
                   java.lang.String message,
                   java.lang.Throwable error)


Copyright (c) 1999-2005, Gnome Ltd. All rights reserved.