jason.service.crusader
Class CrusaderService

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

public class CrusaderService
extends HTTPService

I have added a relation with the http1.0 framework for building a HTTP1.0 response. It should be removed later.

Since:
1.0
See Also:
AbstractService, 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.core.Service
ERROR_MESSAGE, INFORMATION_MESSAGE, VERBOSE_MESSAGE, WARNING_MESSAGE
 
Constructor Summary
CrusaderService()
           
 
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

CrusaderService

public CrusaderService()
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