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

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.ICalImportServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ICalImportServlet
extends org.apache.sling.api.servlets.SlingAllMethodsServlet

ICalImportServlet imports calendar files into the repository. Currently 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". The resource path does not have to exist - in this case a calendar will be created at that path first.

See Also:
Serialized Form

Field Summary
static String FILE_PARAMETER
           
 
Constructor Summary
ICalImportServlet()
           
 
Method Summary
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
 

Field Detail

FILE_PARAMETER

public static final String FILE_PARAMETER
See Also:
Constant Field Values
Constructor Detail

ICalImportServlet

public ICalImportServlet()
Method Detail

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.