com.day.cq.collab.calendar.servlets
Class ICalNewImportServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by org.apache.sling.api.servlets.SlingSafeMethodsServlet
          extended by org.apache.sling.api.servlets.SlingAllMethodsServlet
              extended by com.day.cq.collab.calendar.servlets.ICalNewImportServlet
All Implemented Interfaces:
NonExistingResourceServlet, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, org.apache.sling.api.servlets.OptingServlet

public class ICalNewImportServlet
extends org.apache.sling.api.servlets.SlingAllMethodsServlet
implements NonExistingResourceServlet

ICalNewImportServlet imports calendar files into the repository at non-existing paths. It supports the icalendar (*.ics) format. The request must be a (form) POST containing the calendar file in the "file" parameter and the extension of the request URL must be "ics".

See Also:
Serialized Form

Constructor Summary
ICalNewImportServlet()
           
 
Method Summary
 boolean accepts(org.apache.sling.api.SlingHttpServletRequest request)
           
protected  void doPost(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response)
           
 
Methods inherited from class org.apache.sling.api.servlets.SlingAllMethodsServlet
doDelete, doPut, getAllowedRequestMethods, isMethodValid, mayService
 
Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
doGeneric, doGet, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service
 
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
 
Methods inherited from interface javax.servlet.Servlet
destroy, getServletConfig, getServletInfo, init, service
 

Constructor Detail

ICalNewImportServlet

public ICalNewImportServlet()
Method Detail

accepts

public boolean accepts(org.apache.sling.api.SlingHttpServletRequest request)
Specified by:
accepts in interface org.apache.sling.api.servlets.OptingServlet

doPost

protected void doPost(org.apache.sling.api.SlingHttpServletRequest request,
                      org.apache.sling.api.SlingHttpServletResponse response)
               throws javax.servlet.ServletException,
                      IOException
Overrides:
doPost in class org.apache.sling.api.servlets.SlingAllMethodsServlet
Throws:
javax.servlet.ServletException
IOException


Copyright © 2009 Day Management AG. All Rights Reserved.