public class NullHTTPService extends AbstractADEPT2Service implements HTTPService
| Constructor and Description |
|---|
NullHTTPService(Configuration configuration,
Registry registry)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deregisterReplyHandler(SessionToken session,
java.lang.String sessionID)
Deregisters a reply handler for the activity with the designated
sessionID. |
void |
registerReplyHandler(SessionToken session,
java.lang.String sessionID,
HTTPReplyHandler replyHandler)
Registers a reply handler for the activity with the designated
sessionID. |
public NullHTTPService(Configuration configuration,
Registry registry)
configuration - registry - public void deregisterReplyHandler(SessionToken session,
java.lang.String sessionID)
HTTPServicesessionID. A reply handler may be deregistered any time. In
case a reply handling is currently running, it will be allowed to finish.deregisterReplyHandler in interface HTTPServicesession - 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.public void registerReplyHandler(SessionToken session,
java.lang.String sessionID,
HTTPReplyHandler replyHandler)
throws java.net.MalformedURLException
HTTPServicesessionID. 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.registerReplyHandler in interface HTTPServicesession - 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.java.net.MalformedURLException - If the designated sessionID does not allow to
create a valid URL, a MalformedURLException will
be thrown.