org.matalon.pagerankhits.servlet
Class CrawlerControlServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.matalon.pagerankhits.servlet.AbstractServlet
              extended byorg.matalon.pagerankhits.servlet.CrawlerControlServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class CrawlerControlServlet
extends AbstractServlet

This servlet is responsible for activating/deactivating the crawler according to the given URL parameters.

Author:
Yonatan Matalon
See Also:
Serialized Form

Field Summary
private static int maxRetrievedUrlsNo
           
static java.lang.String PARAM_NAME_COMMAND
           
static java.lang.String PARAM_NAME_MAX_RETRIEVED_URLS_NO
           
static java.lang.String PARAM_NAME_STARTING_URL
           
static java.lang.String PARAM_VALUE_START
           
static java.lang.String PARAM_VALUE_STOP
           
private static long serialVersionUID
           
private static java.lang.String startingUrl
           
 
Fields inherited from class org.matalon.pagerankhits.servlet.AbstractServlet
PARAM_NAME_STATUS, PARAM_VALUE_STATUS_ERROR, PARAM_VALUE_STATUS_IDLE, PARAM_VALUE_STATUS_RUNNING, PARAM_VALUE_STATUS_SUCCESS, RECENTLY_MODIFIED_INTERVAL
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
CrawlerControlServlet()
           
 
Method Summary
protected  void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class org.matalon.pagerankhits.servlet.AbstractServlet
printErrorMessage, printStandByMessage
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

PARAM_NAME_COMMAND

public static final java.lang.String PARAM_NAME_COMMAND
See Also:
Constant Field Values

PARAM_VALUE_START

public static final java.lang.String PARAM_VALUE_START
See Also:
Constant Field Values

PARAM_VALUE_STOP

public static final java.lang.String PARAM_VALUE_STOP
See Also:
Constant Field Values

PARAM_NAME_STARTING_URL

public static final java.lang.String PARAM_NAME_STARTING_URL
See Also:
Constant Field Values

PARAM_NAME_MAX_RETRIEVED_URLS_NO

public static final java.lang.String PARAM_NAME_MAX_RETRIEVED_URLS_NO
See Also:
Constant Field Values

startingUrl

private static java.lang.String startingUrl

maxRetrievedUrlsNo

private static int maxRetrievedUrlsNo
Constructor Detail

CrawlerControlServlet

public CrawlerControlServlet()
Method Detail

service

protected void service(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                throws javax.servlet.ServletException,
                       java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException
See Also:
HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)