org.opensolaris.opengrok.web
Class raw

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.opensolaris.opengrok.web.raw
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class raw
extends javax.servlet.http.HttpServlet

Gets different versions of a file

See Also:
Serialized Form

Constructor Summary
raw()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Handle a GET request
protected  long getLastModified(javax.servlet.http.HttpServletRequest request)
          Get the modification time of the file.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, service, 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
 

Constructor Detail

raw

public raw()
Method Detail

getLastModified

protected long getLastModified(javax.servlet.http.HttpServletRequest request)
Get the modification time of the file. For the &head& version this will be the file modification time, but for a named revision I need to search the hisstory log.

Overrides:
getLastModified in class javax.servlet.http.HttpServlet
Parameters:
request - the http request
Returns:
the number of milliseconds since epoch (or -1 if the time is not known)

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws java.io.IOException,
                  javax.servlet.ServletException
Handle a GET request

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - The object containing the request
response - The object containing the response
Throws:
javax.servlet.ServletException
java.io.IOException