CADI.Server.Request
Class RequestQueueNode

java.lang.Object
  extended by CADI.Server.Request.RequestQueueNode

public class RequestQueueNode
extends java.lang.Object

This is an auxiliary class used to save the socket, the HTTP request line, and the HTTP request headers for each client in the RequestQueue .

Version:
1.1 2009/08/15
Author:
Group on Interactive Coding of Images (GICI)
See Also:
RequestQueue

Field Summary
protected  HTTPRequest httpRequest
          Is the HTTP request sent by the client.
protected  java.net.Socket socket
          Contains the client socket.
 
Constructor Summary
RequestQueueNode(java.net.Socket socket, HTTPRequest httpRequest)
          Constructor.
 
Method Summary
 HTTPRequest getHTTPRequest()
          Returns the httpRequest attribute.
 java.net.Socket getSocket()
          Returns the client socket.
 void list(java.io.PrintStream out)
          Prints this Request queue node fields out to the specified output stream.
 void reset()
          Set attributes to its initials values.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

socket

protected java.net.Socket socket
Contains the client socket.


httpRequest

protected HTTPRequest httpRequest
Is the HTTP request sent by the client.

Constructor Detail

RequestQueueNode

public RequestQueueNode(java.net.Socket socket,
                        HTTPRequest httpRequest)
Constructor.

Parameters:
socket - definition in socket.
httpRequest - definition in httpRequest.
Method Detail

getSocket

public java.net.Socket getSocket()
Returns the client socket.

Returns:
client socket

getHTTPRequest

public HTTPRequest getHTTPRequest()
Returns the httpRequest attribute.

Returns:
the httpRequest attribute.

reset

public void reset()
Set attributes to its initials values.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

list

public void list(java.io.PrintStream out)
Prints this Request queue node fields out to the specified output stream. This method is useful for debugging.

Parameters:
out - an output stream.


CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Group on Interactive Coding of Images (GICI) (contact)