MessageServlet

public abstract class MessageServlet<I extends Message, O extends Message> extends NonSerializableServlet

An HTTP servlet which accepts POST requests with a message and responds with another message.

Parameters

<I>

the type of the input message

<O>

the type of the output message

Inheritors

Constructors

Link copied to clipboard
protected void MessageServlet()

Functions

Link copied to clipboard
public void doPost(HttpServletRequest req, HttpServletResponse resp)
Link copied to clipboard
protected abstract O handle(I request)
Handles the servlet request and produces the response message.