|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--jason.core.AbstractService
|
+--jason.core.ThreadableService
|
+--jason.core.TaskableService
|
+--jason.core.SocketService
|
+--jason.core.ProcessableService
|
+--jason.core.HTTPService
HTTPService This service is for processable task, it is able to get all the request from a socket object.
| Field Summary |
| Fields inherited from class jason.core.SocketService |
port, serverSocket, traceRequest |
| Fields inherited from class jason.core.ThreadableService |
activeThread |
| Fields inherited from class jason.core.AbstractService |
INITIALIZED, name, NOSTATE, serviceContext, STARTED, STOPPED |
| Fields inherited from interface jason.core.Service |
ERROR_MESSAGE, INFORMATION_MESSAGE, VERBOSE_MESSAGE, WARNING_MESSAGE |
| Constructor Summary | |
HTTPService()
|
|
| Method Summary | |
protected byte[] |
getHostRequestFromInputStream(java.io.InputStream in)
This method returns an array of bytes with the full user request, this is needed for load balancing between several process. |
protected abstract Task |
getTaskForSocket(java.net.Socket host)
|
| Methods inherited from class jason.core.ProcessableService |
fireSocketAccept, notifyBadPort, setLoadBalancingMax |
| Methods inherited from class jason.core.SocketService |
beforeRun, fireConflictDetected, getSocketTimeout, notifyData, notifyInitReady, run, setBacklog, setSocketTimeout, setTraceRequest, start |
| Methods inherited from class jason.core.TaskableService |
notifyTask |
| Methods inherited from class jason.core.ThreadableService |
actionForStart, enableServiceForThread, getThreadLoopDelay, isThreadLoopMode, isThreadStarted, isWaiting, notifyThreadRunning, runThread, setPriority, setThreadLoopDelay, setThreadLoopMode, threadNotify, threadWait |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HTTPService()
| Method Detail |
protected byte[] getHostRequestFromInputStream(java.io.InputStream in)
throws java.io.IOException
getHostRequestFromInputStream in class ProcessableServicein - InputStream from the user request
java.io.IOException
protected abstract Task getTaskForSocket(java.net.Socket host)
throws ServiceException
getTaskForSocket in class ProcessableServiceServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||