public class GravatarCacheServlet extends org.springframework.web.servlet.FrameworkServlet
By using this servlet instead of immediate requests to Gravatar, page loading speed is kept high even if the Gravatar servers are currently under high load or unreachable. Additionally, privacy is kept because the visitor's IP and browser headers are kept hidden from the Gravatar servers.
Constructor and Description |
---|
GravatarCacheServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doService(HttpServletRequest req,
HttpServletResponse resp) |
applyInitializers, buildLocaleContext, buildRequestAttributes, configureAndRefreshWebApplicationContext, createWebApplicationContext, createWebApplicationContext, destroy, doDelete, doGet, doOptions, doPost, doPut, doTrace, findWebApplicationContext, getContextAttribute, getContextClass, getContextConfigLocation, getContextId, getNamespace, getServletContextAttributeName, getUsernameForRequest, getWebApplicationContext, initFrameworkServlet, initServletBean, initWebApplicationContext, onApplicationEvent, onRefresh, postProcessWebApplicationContext, processRequest, refresh, service, setApplicationContext, setContextAttribute, setContextClass, setContextConfigLocation, setContextId, setContextInitializerClasses, setContextInitializers, setDispatchOptionsRequest, setDispatchTraceRequest, setNamespace, setPublishContext, setPublishEvents, setThreadContextInheritable
addRequiredProperty, createEnvironment, getEnvironment, getServletContext, getServletName, init, initBeanWrapper, setEnvironment
doHead, getLastModified, service
getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, init, log, log
public GravatarCacheServlet()
protected void doService(HttpServletRequest req, HttpServletResponse resp) throws Exception
doService
in class org.springframework.web.servlet.FrameworkServlet
Exception
Copyright © 2011–2017. All rights reserved.