|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
org.apache.sling.api.servlets.SlingSafeMethodsServlet
org.apache.sling.servlets.get.impl.DefaultHeadServlet
public class DefaultHeadServlet
The DefaultHeadServlet
class implements default support for the
HTTP HEAD request method. It basically wraps the response to provide
output which does not really write to the client and the forwards to the same
requested URL (resource actually) acting as if the request was placed with a
GET method.
Constructor Summary | |
---|---|
DefaultHeadServlet()
|
Method Summary | |
---|---|
protected void |
doHead(SlingHttpServletRequest request,
SlingHttpServletResponse response)
Handles the HEAD method. |
Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet |
---|
doGeneric, doGet, doOptions, doTrace, getAllowedRequestMethods, getServletInfo, handleMethodNotImplemented, mayService, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultHeadServlet()
Method Detail |
---|
protected void doHead(SlingHttpServletRequest request, SlingHttpServletResponse response) throws javax.servlet.ServletException, IOException
SlingSafeMethodsServlet
This base implementation just calls the
SlingSafeMethodsServlet.doGet(SlingHttpServletRequest, SlingHttpServletResponse)
method dropping
the output. Implementations of this class may overwrite this method if
they have a more performing implementation. Otherwise, they may just keep
this base implementation.
doHead
in class SlingSafeMethodsServlet
request
- The HTTP requestresponse
- The HTTP response which only gets the headers set
javax.servlet.ServletException
- Forwarded from the
SlingSafeMethodsServlet.doGet(SlingHttpServletRequest, SlingHttpServletResponse)
method called by this implementation.
IOException
- Forwarded from the
SlingSafeMethodsServlet.doGet(SlingHttpServletRequest, SlingHttpServletResponse)
method called by this implementation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |