2015/07/26 - Apache DirectMemory has been retired.

For more information, please explore the Attic.

public class

DirectMemoryServlet

extends HttpServlet
java.lang.Object
   ↳ javax.servlet.GenericServlet
     ↳ javax.servlet.http.HttpServlet
       ↳ org.apache.directmemory.server.services.DirectMemoryServlet

Class Overview

TODO add some listener plugin mechanism to store figures/statistics on cache access

Summary

Public Constructors
DirectMemoryServlet()
Public Methods
void destroy()
void init(ServletConfig config)
Protected Methods
void doDelete(HttpServletRequest req, HttpServletResponse resp)
void doGet(HttpServletRequest req, HttpServletResponse resp)
void doPost(HttpServletRequest req, HttpServletResponse resp)
void doPut(HttpServletRequest req, HttpServletResponse resp)
ContentTypeHandler findGetCacheContentTypeHandler(HttpServletRequest req, HttpServletResponse response)
ContentTypeHandler findPutCacheContentTypeHandler(HttpServletRequest req, HttpServletResponse response)
String retrieveKeyFromPath(String path)
protected for unit test reason
[Expand]
Inherited Methods
From class javax.servlet.http.HttpServlet
From class javax.servlet.GenericServlet
From class java.lang.Object
From interface javax.servlet.Servlet
From interface javax.servlet.ServletConfig

Public Constructors

public DirectMemoryServlet ()

Public Methods

public void destroy ()

public void init (ServletConfig config)

Throws
ServletException

Protected Methods

protected void doDelete (HttpServletRequest req, HttpServletResponse resp)

Throws
ServletException
IOException

protected void doGet (HttpServletRequest req, HttpServletResponse resp)

Throws
ServletException
IOException

protected void doPost (HttpServletRequest req, HttpServletResponse resp)

Throws
ServletException
IOException

protected void doPut (HttpServletRequest req, HttpServletResponse resp)

Throws
ServletException
IOException

protected ContentTypeHandler findGetCacheContentTypeHandler (HttpServletRequest req, HttpServletResponse response)

protected ContentTypeHandler findPutCacheContentTypeHandler (HttpServletRequest req, HttpServletResponse response)

protected String retrieveKeyFromPath (String path)

protected for unit test reason