jason.service.http1_0
Class HTTPService

java.lang.Object
  |
  +--jason.core.AbstractService
        |
        +--jason.core.ThreadableService
              |
              +--jason.core.TaskableService
                    |
                    +--jason.core.SocketService
                          |
                          +--jason.core.ProcessableService
                                |
                                +--jason.core.HTTPService
                                      |
                                      +--jason.service.http1_0.HTTPService
All Implemented Interfaces:
IntHttpCode, java.io.Serializable, Service, ServiceDataListener

public class HTTPService
extends HTTPService
implements IntHttpCode

Main class for HTTP. When a client is connected, the HostHandling object is allocated and receives the Socket connection object.

Since:
1.0
See Also:
IntHttpCode, HostHandling, SocketService, Serialized Form

Field Summary
static java.lang.String TYPE
           
 
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.service.http1_0.framework.IntHttpCode
CO_BAD_REQUEST, CO_INTERNAL_SERVER_ERROR, CO_NOT_FOUND, CO_NOT_IMPLEMENTED, CO_OK
 
Fields inherited from interface jason.core.Service
ERROR_MESSAGE, INFORMATION_MESSAGE, VERBOSE_MESSAGE, WARNING_MESSAGE
 
Constructor Summary
HTTPService()
           
 
Method Summary
protected  Task getTaskForSocket(java.net.Socket host)
           
 void start()
          Start the service.
 
Methods inherited from class jason.core.HTTPService
getHostRequestFromInputStream
 
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
 
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 jason.core.AbstractService
checkForContext, fireCriticalErrorDetected, getBooleanProperty, getInfo, getIntProperty, getName, getPropertiesName, getProperty, getServiceContext, getServiceState, getState, getStringProperty, getType, getVersion, hasServiceContext, init, isAutoStop, isEnabled, isInitialized, isOverride, isPersistent, isPrivate, isProcessable, isStarted, isStopped, isTest, isThreadable, isVerbose, manageRequest, manageRequestForType, notifyStartReady, notifyStopReady, postStop, restart, sendCustomMessage, sendErrorMessage, sendInformationMessage, sendInnerError, sendWarningMessage, setAutoStop, setEnabled, setName, setPersistent, setPrivate, setProperty, setServiceContext, setTest, setType, setVerbose, setVersion, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static java.lang.String TYPE
Constructor Detail

HTTPService

public HTTPService()
Method Detail

start

public void start()
Description copied from class: AbstractService
Start the service. By default this method will call the run method

Specified by:
start in interface Service
Overrides:
start in class SocketService

getTaskForSocket

protected Task getTaskForSocket(java.net.Socket host)
                         throws ServiceException
Specified by:
getTaskForSocket in class HTTPService
Returns:
a task for a user socker
ServiceException