org.apache.sling.launchpad.testservices.servlets
Class PutMethodServlet
java.lang.Object
javax.servlet.GenericServlet
org.apache.sling.api.servlets.SlingSafeMethodsServlet
org.apache.sling.api.servlets.SlingAllMethodsServlet
org.apache.sling.launchpad.testservices.servlets.PutMethodServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class PutMethodServlet
- extends SlingAllMethodsServlet
Example/test Sling Servlet registered for the PUT method
on a specific resource type
- See Also:
- Serialized Form
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PutMethodServlet
public PutMethodServlet()
doPut
protected void doPut(SlingHttpServletRequest request,
SlingHttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Description copied from class:
SlingAllMethodsServlet
- Called by the
SlingAllMethodsServlet.mayService(SlingHttpServletRequest, SlingHttpServletResponse)
method to
handle an HTTP PUT 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 PUT method support.
- Overrides:
doPut
in class SlingAllMethodsServlet
- Parameters:
request
- The HTTP requestresponse
- The HTTP response
- Throws:
javax.servlet.ServletException
- Not thrown by this implementation.
java.io.IOException
- If the error status cannot be reported back to the
client.
doGet
protected void doGet(SlingHttpServletRequest request,
SlingHttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Description copied from class:
SlingSafeMethodsServlet
- Called by the
SlingSafeMethodsServlet.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 class SlingSafeMethodsServlet
- Parameters:
request
- The HTTP requestresponse
- The HTTP response
- Throws:
javax.servlet.ServletException
- Not thrown by this implementation.
java.io.IOException
- If the error status cannot be reported back to the
client.
dumpRequestAsProperties
protected void dumpRequestAsProperties(SlingHttpServletRequest request,
SlingHttpServletResponse response)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2007-2009. All Rights Reserved.