|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Server.Core.TasksQueueNode
public class TasksQueueNode
This is an auxiliary class used to save the tasks that will be done by a
Worker thread. Two different types of works can be definded:
statusCode is 0, it is a work to be processed by
Worker thread.
statusCode is not 0, the task is for sending
an error message to the client. The status code of the HTTP response
is given through the statusCode attribute and the
reason phrase is given through the reashonPhrase
attribute. An the socket to send the data to the client is the
socket attribute.
TasksQueue| Field Summary | |
|---|---|
(package private) HTTPRequest |
httpRequest
|
(package private) JPIPRequestFields |
jpipRequestFields
Definition in JPIPRequestFields. |
(package private) java.lang.String |
reasonPhrase
Is the reason phrase of the HTTP response. |
(package private) java.net.Socket |
socket
Is the socket that will used to communicate with the client. |
(package private) int |
statusCode
This attribute is used to identify the kind of work. |
| Constructor Summary | |
|---|---|
TasksQueueNode(java.net.Socket socket,
HTTPRequest httpRequest,
JPIPRequestFields jpipRequestFields)
Constructor. |
|
TasksQueueNode(java.net.Socket socket,
int statusCode,
java.lang.String reasonPhrase)
Constructor. |
|
| Method Summary | |
|---|---|
HTTPRequest |
getHttpRequestFields()
Returns the httpRequest attribute. |
JPIPRequestFields |
getJpipRequestFields()
Returns the jpipRequestFields attribute. |
java.lang.String |
getReasonPhrase()
Returns the reasonPhrase attribute. |
java.net.Socket |
getSocket()
Returns the client socket. |
int |
getStatusCode()
Returns the status code. |
void |
list(java.io.PrintStream out)
Prints this Tasks Queue Node fields out to the specified output stream. |
void |
reset()
Set attributes to its initial values. |
java.lang.String |
toString()
For debugging purposes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
int statusCode
socket,
httpRequest, and jpipRequestFields
attributes are used.
reasonPhrase attribute.
java.net.Socket socket
HTTPRequest httpRequest
statusCodeJPIPRequestFields jpipRequestFields
JPIPRequestFields.
java.lang.String reasonPhrase
statusCode| Constructor Detail |
|---|
public TasksQueueNode(java.net.Socket socket,
HTTPRequest httpRequest,
JPIPRequestFields jpipRequestFields)
socket - is the client socket.httpRequest - jpipRequestFields -
public TasksQueueNode(java.net.Socket socket,
int statusCode,
java.lang.String reasonPhrase)
socket - statusCode - reasonPhrase - | Method Detail |
|---|
public int getStatusCode()
statusCode.
public java.net.Socket getSocket()
public HTTPRequest getHttpRequestFields()
httpRequest attribute.
httpRequest.public JPIPRequestFields getJpipRequestFields()
jpipRequestFields attribute.
jpipRequestFields.public java.lang.String getReasonPhrase()
reasonPhrase attribute.
reasonPhrase.public void reset()
public java.lang.String toString()
toString in class java.lang.Objectpublic void list(java.io.PrintStream out)
out - an output stream.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||