- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class RemovableGadgetSpecServlet
extends javax.servlet.http.HttpServlet
A servlet used for testing purposes that can dynamically change the gadget it serves. It can either:
1) Return a valid gadget specification
2) Return an invalid (actually, empty) gadget specification
3) Return a 404
In tests, this servlet is used to add a gadget to a directory (while the spec is valid). At that point,
a DELETE request will cause the servlet to stop serving the gadget. If the parameter "invalidate" is passed
to the DELETE request, it will serve an empty (invalid) gadget. Otherwise, it will return a 404 error code.
- See Also:
- Serialized Form