de.anneck.jcast.core
Interface IRequestHandler

All Known Implementing Classes:
AbstractRequestHandler

public interface IRequestHandler

The RequestHandler interface. A request handler processes a client request, and will try to create a Source or a Listener.

Version:
$Revision: 1.2 $
Author:
andre.anneck@web.de

Field Summary
static int CREATED_STREAM
          Resultet in a new Stream, this indicates that it would not be wise to close the clients streams/socket
static int FAILED_GOOD
          The processing was successfull
static int FAILED_WITH_ERROR
          Indicates that the processing of the request failed
 
Method Summary
 int getStatus()
           
 void handle(java.net.ServerSocket srvSocket, java.net.Socket cliSocket)
           
 void setStatus(int s)
           
 

Field Detail

FAILED_WITH_ERROR

public static final int FAILED_WITH_ERROR
Indicates that the processing of the request failed

FAILED_GOOD

public static final int FAILED_GOOD
The processing was successfull

CREATED_STREAM

public static final int CREATED_STREAM
Resultet in a new Stream, this indicates that it would not be wise to close the clients streams/socket
Method Detail

setStatus

public void setStatus(int s)

getStatus

public int getStatus()

handle

public void handle(java.net.ServerSocket srvSocket,
                   java.net.Socket cliSocket)