public class Servlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
static SimpleDateFormat |
FMT |
static org.slf4j.Logger |
LOG |
static long |
VM_STARTUP |
static Date |
VM_STARTUP_DATE |
static String |
VM_STARTUP_STR |
| Constructor and Description |
|---|
Servlet() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkCharset(String accepts) |
static boolean |
contains(String list,
String keyword) |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
long |
getLastModified(javax.servlet.http.HttpServletRequest request)
Called by the servlet engine to process get requests:
a) to set the Last-Modified header in the response
b) to check if 304 can be redurned if the "if-modified-since" request header is present
|
static String |
getVmStartup() |
void |
init(javax.servlet.ServletConfig config)
creates configuration.
|
doDelete, doHead, doOptions, doPost, doPut, doTrace, service, servicepublic static final org.slf4j.Logger LOG
public static final SimpleDateFormat FMT
public static final Date VM_STARTUP_DATE
public static final long VM_STARTUP
public static final String VM_STARTUP_STR
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic long getLastModified(javax.servlet.http.HttpServletRequest request)
getLastModified in class javax.servlet.http.HttpServletpublic void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
doGet in class javax.servlet.http.HttpServletIOExceptionjavax.servlet.ServletExceptionpublic static void checkCharset(String accepts) throws IOException
IOExceptionpublic static String getVmStartup()
Copyright © 2004–2017 1&1. All rights reserved.