Class NullHTTPService
- java.lang.Object
-
- de.aristaflow.adept2.base.service.AbstractADEPT2Service
-
- de.aristaflow.adept2.ui.htmlgui.httpservice.NullHTTPService
-
- All Implemented Interfaces:
ADEPT2Service
,LogService
,ServiceThreadHandling
,HTTPService
public class NullHTTPService extends AbstractADEPT2Service implements HTTPService
Dummy HTTP service for head-less clients.- Author:
- Kevin Goeser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.aristaflow.adept2.base.service.AbstractADEPT2Service
AbstractADEPT2Service.ActiveSessions
-
-
Field Summary
-
Fields inherited from class de.aristaflow.adept2.base.service.AbstractADEPT2Service
CONF_CSV_LOGGING, configuration, logger, registry, runtimeRequiredServices, startupRequiredServices
-
-
Constructor Summary
Constructors Constructor Description NullHTTPService(org.apache.commons.configuration2.Configuration configuration, Registry registry)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deregisterReplyHandler(SessionToken session, String sessionID)
Deregisters a reply handler for the activity with the designatedsessionID
.void
registerReplyHandler(SessionToken session, String sessionID, HTTPReplyHandler replyHandler)
Registers a reply handler for the activity with the designatedsessionID
.-
Methods inherited from class de.aristaflow.adept2.base.service.AbstractADEPT2Service
_sessionActive, _sessionFinished, activeOrInvalidServiceStateException, changeLogContext, changeLogContext, changeLogContext, consoleLog, csvLoggingEnabled, getClassSpecificJulLogger, getDependencyRegistry, getLocalUris, getLogger, getRelease, getRuntimeRequiredServices, getServiceInstanceName, getStartupRequiredServices, getURIs, getUserCredentials, init, isActive, isSessionActive, isShutdown, logMethodEntry, logMethodEntry, logMethodEntry, logMethodExit, logMethodExit, ping, preShutdown, privilegeSession, privilegeThread, revertLogContextChanges, sessionActive, sessionActive, sessionActive, sessionActive, sessionFinished, sessionFinished, shutdown, signalShutdown, signalStart, start, unprivilegeThread
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.aristaflow.adept2.base.service.ADEPT2Service
getLocalUris, getRelease, getRuntimeRequiredServices, getServiceInstanceName, getStartupRequiredServices, getURIs, init, ping, preShutdown, shutdown, start
-
-
-
-
Constructor Detail
-
NullHTTPService
public NullHTTPService(org.apache.commons.configuration2.Configuration configuration, Registry registry)
Default constructor.- Parameters:
configuration
-registry
-
-
-
Method Detail
-
deregisterReplyHandler
public void deregisterReplyHandler(SessionToken session, String sessionID)
Description copied from interface:HTTPService
Deregisters a reply handler for the activity with the designatedsessionID
. A reply handler may be deregistered any time. In case a reply handling is currently running, it will be allowed to finish.- Specified by:
deregisterReplyHandler
in interfaceHTTPService
- Parameters:
session
- The session which is used to check for access rights on this method.sessionID
- The session ID identifying the executed activity and therefore also the handler for the reply sent via HTTP.
-
registerReplyHandler
public void registerReplyHandler(SessionToken session, String sessionID, HTTPReplyHandler replyHandler) throws MalformedURLException
Description copied from interface:HTTPService
Registers a reply handler for the activity with the designatedsessionID
. This creates an own URL for the reply handler. It will be called as soon as a HTTP-request (the reply for the activity) is received by this HTTP-service.- Specified by:
registerReplyHandler
in interfaceHTTPService
- Parameters:
session
- The session which is used to check for access rights on this method.sessionID
- The session ID for the executed activity. It is used to create an appropriate URL.replyHandler
- The handler for the HTTP-replies sent to this service.- Throws:
MalformedURLException
- If the designated sessionID does not allow to create a valid URL, aMalformedURLException
will be thrown.
-
-