public class DocumentResourceServlet extends javax.servlet.http.HttpServlet implements DocumentEventListener
Constructor and Description |
---|
DocumentResourceServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP
GET method. |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP
POST method. |
long |
getLastModified(javax.servlet.http.HttpServletRequest request)
Processes request HTTP
GET if-modified-since methods |
String |
getServletInfo()
Returns a short description of the servlet.
|
void |
processDocumentEvent(DocumentEvent event)
Process a document event
|
protected void |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes requests for both HTTP
GET and POST methods. |
static void |
putInCache(int nDocumentId,
int nAttributeId)
Put the file in cache
|
doDelete, doHead, doOptions, doPut, doTrace, service, service
public long getLastModified(javax.servlet.http.HttpServletRequest request)
GET if-modified-since
methodsgetLastModified
in class javax.servlet.http.HttpServlet
request
- The HTTP requestpublic static void putInCache(int nDocumentId, int nAttributeId)
nDocumentId
- The document idnAttributeId
- The attribut idprotected void processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
GET
and POST
methods.request
- servlet requestresponse
- servlet responsejavax.servlet.ServletException
- the servlet ExceptionIOException
- the io exceptionprotected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
GET
method.doGet
in class javax.servlet.http.HttpServlet
request
- servlet requestresponse
- servlet responsejavax.servlet.ServletException
- the servlet ExceptionIOException
- the io exceptionprotected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
POST
method.doPost
in class javax.servlet.http.HttpServlet
request
- servlet requestresponse
- servlet responsejavax.servlet.ServletException
- the servlet ExceptionIOException
- the io exceptionpublic String getServletInfo()
getServletInfo
in interface javax.servlet.Servlet
getServletInfo
in class javax.servlet.GenericServlet
public void processDocumentEvent(DocumentEvent event) throws DocumentException
processDocumentEvent
in interface DocumentEventListener
event
- The event to processDocumentException
- raise when error occurs in event or ruleCopyright © 2020 City of Paris. All rights reserved.