SubscribeServlet

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

An abstract servlet for a client request to create a new Subscription for the requested Topic.

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 SubscribeServlet(SubscriptionBridge<T, ? extends Object, ? extends Object> bridge)
Creates a new instance of SubscribeServlet with the given SubscriptionBridge.

Functions

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

Inherited functions

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