|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.flickrrecsys.servlet.FrontEndNavigation
public class FrontEndNavigation
This is the servlet which deal with navigation and make use of controllers in order perform the requested tasks This class implements ThreadListener in order to get the notification on the thread finished in the caching class
| Constructor Summary | |
|---|---|
FrontEndNavigation()
|
|
| Method Summary | |
|---|---|
void |
cachingComplete(java.lang.Object someResult,
java.lang.String nsid,
java.lang.String servletPath)
This method whic is synchronized to avoid the method being used by two threads at the same time updates database. |
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. |
java.lang.String |
getServletInfo()
Returns a short description of the servlet. |
protected void |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes requests for both HTTP GET and POST methods. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FrontEndNavigation()
| Method Detail |
|---|
protected void processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
GET and POST methods.
request - servlet requestresponse - servlet response
javax.servlet.ServletException - if a servlet-specific error occurs
java.io.IOException - if an I/O error occurs
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
GET method.
doGet in class javax.servlet.http.HttpServletrequest - servlet requestresponse - servlet response
javax.servlet.ServletException - if a servlet-specific error occurs
java.io.IOException - if an I/O error occurs
protected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
POST method.
doPost in class javax.servlet.http.HttpServletrequest - servlet requestresponse - servlet response
javax.servlet.ServletException - if a servlet-specific error occurs
java.io.IOException - if an I/O error occurspublic java.lang.String getServletInfo()
getServletInfo in interface javax.servlet.ServletgetServletInfo in class javax.servlet.GenericServlet
public void cachingComplete(java.lang.Object someResult,
java.lang.String nsid,
java.lang.String servletPath)
cachingComplete in interface ThreadListenersomeResult - the id of the threadnsid - user id from the Flickr websiteservletPath - where the database details file is located
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||