public class HammerHead
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
protected static SimpleDateFormat |
httpDateFormat
Description of the Field
|
static String |
propertiesPath
Properties file path
|
| Constructor and Description |
|---|
HammerHead() |
| Modifier and Type | Method and Description |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Description of the Method
|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Description of the Method
|
protected static String |
formatHttpDate(Date date)
Description of the Method
|
String |
getServletInfo()
Return information about this servlet
|
void |
init()
Return properties path
|
void |
log(javax.servlet.http.HttpServletRequest request,
String message)
Description of the Method
|
protected Screen |
makeScreen(WebSession s)
Description of the Method
|
protected static void |
setCacheHeaders(javax.servlet.http.HttpServletResponse response,
int expiry)
This method sets the required expiration headers in the response for a
given RunData object.
|
protected WebSession |
updateSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext context)
Description of the Method
|
protected void |
writeScreen(WebSession s,
Screen screen,
javax.servlet.http.HttpServletResponse response)
Description of the Method
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprotected static SimpleDateFormat httpDateFormat
public static String propertiesPath
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
doGet in class javax.servlet.http.HttpServletIOException - Description of the Exceptionjavax.servlet.ServletException - Description of the Exceptionpublic void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
doPost in class javax.servlet.http.HttpServletIOException - Description of the Exceptionjavax.servlet.ServletException - Description of the Exceptionprotected static String formatHttpDate(Date date)
date - Description of the Parameterpublic String getServletInfo()
getServletInfo in interface javax.servlet.ServletgetServletInfo in class javax.servlet.GenericServletpublic void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void log(javax.servlet.http.HttpServletRequest request,
String message)
request - Description of the Parametermessage - Description of the Parameterprotected Screen makeScreen(WebSession s)
s - Description of the Parameterprotected static void setCacheHeaders(javax.servlet.http.HttpServletResponse response,
int expiry)
response - The new cacheHeaders valueexpiry - The new cacheHeaders valueprotected WebSession updateSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext context) throws IOException
request - Description of the Parameterresponse - Description of the Parametercontext - Description of the ParameterIOException - if any.protected void writeScreen(WebSession s, Screen screen, javax.servlet.http.HttpServletResponse response) throws IOException
s - Description of the Parameterscreen - a Screen object.screen - a Screen object.response - Description of the ParameterIOException - Description of the ExceptionIOException - if any.Copyright © 2006–2016 OWASP. All rights reserved.