Class DefaultServlet
java.lang.Object
javax.servlet.GenericServlet
org.apache.sling.api.servlets.SlingSafeMethodsServlet
org.apache.sling.servlets.resolver.internal.defaults.DefaultServlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
The
DefaultServlet
is a very simple default resource handler.
The default servlet is not registered to handle any concrete resource type. Rather it is used internally on demand.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doGet
(SlingHttpServletRequest request, SlingHttpServletResponse response) Called by theSlingSafeMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse)
method to handle an HTTP GET request.Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
doGeneric, doHead, doOptions, doTrace, getAllowedRequestMethods, getServletInfo, handleMethodNotImplemented, mayService, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
-
Constructor Details
-
DefaultServlet
public DefaultServlet()
-
-
Method Details
-
doGet
protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) throws IOException Description copied from class:SlingSafeMethodsServlet
Called by theSlingSafeMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse)
method to handle an HTTP GET request.This default implementation reports back to the client that the method is not supported.
Implementations of this class should overwrite this method with their implementation for the HTTP GET method support.
- Overrides:
doGet
in classSlingSafeMethodsServlet
- Parameters:
request
- The HTTP requestresponse
- The HTTP response- Throws:
IOException
- If the error status cannot be reported back to the client.
-