SubscriptionKeepUpServlet

public abstract class SubscriptionKeepUpServlet<T extends Message> extends MessageServlet<I, O>

An abstract servlet for a client request to keep up an existing Subscription.

This servlet parses the client requests and passes it to the SubscriptionBridge to process. After, a processing result is written to the servlet response.

Parameters

<T>

type of the response message

Constructors

Link copied to clipboard
protected void SubscriptionKeepUpServlet(SubscriptionBridge<? extends Object, T, ? extends Object> bridge)
Creates a new instance of SubscriptionKeepUpServlet with the given SubscriptionBridge.

Functions

Link copied to clipboard
protected T handle(Subscription request)
Handles the servlet request and produces the response message.

Inherited functions

Link copied to clipboard
public void doPost(HttpServletRequest req, HttpServletResponse resp)