org.opencrx.application.ical
Class ICalServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.opencrx.application.ical.FreeBusyServlet
              extended by org.opencrx.application.ical.ICalServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class ICalServlet
extends FreeBusyServlet

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.opencrx.application.ical.FreeBusyServlet
FreeBusyServlet.RRule
 
Field Summary
protected static String RESOURCE_NAME_ACTIVITIES_HTML
           
protected static String RESOURCE_NAME_ACTIVITIES_ICS
           
protected static String RESOURCE_NAME_ACTIVITIES_XML
           
protected static String RESOURCE_TYPE_HTML
           
protected static String RESOURCE_TYPE_ICS
           
protected static String RESOURCE_TYPE_XML
           
 
Fields inherited from class org.opencrx.application.ical.FreeBusyServlet
componentConfiguration, CONFIGURATION_ID, PARAMETER_NAME_DISABLED, PARAMETER_NAME_HEIGHT, PARAMETER_NAME_ID, PARAMETER_NAME_RESOURCE, PARAMETER_NAME_TYPE, PARAMETER_NAME_USER_LOCALE, PARAMETER_NAME_USER_TZ, persistenceManagerFactory, rootPm
 
Constructor Summary
ICalServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest req, HttpServletResponse resp)
           
protected  void doPut(HttpServletRequest req, HttpServletResponse resp)
           
protected  AccountsFilterHelper getAccountsHelper(javax.jdo.PersistenceManager pm, String filterId, String isDisabledFilter)
           
protected  String getAccountUrl(HttpServletRequest req, Account account, boolean htmlEncoded)
           
protected  String getActivityUrl(HttpServletRequest req, Activity activity, boolean htmlEncoded)
           
protected  javax.jdo.PersistenceManager getPersistenceManager(HttpServletRequest req)
           
protected  boolean hasBirthday(Contact contact, int year)
           
protected  void printICal(Activity activity, PrintWriter p, HttpServletRequest req, int index)
           
 
Methods inherited from class org.opencrx.application.ical.FreeBusyServlet
getActivitiesHelper, getComponentConfiguration, init
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_NAME_ACTIVITIES_ICS

protected static final String RESOURCE_NAME_ACTIVITIES_ICS
See Also:
Constant Field Values

RESOURCE_NAME_ACTIVITIES_HTML

protected static final String RESOURCE_NAME_ACTIVITIES_HTML
See Also:
Constant Field Values

RESOURCE_NAME_ACTIVITIES_XML

protected static final String RESOURCE_NAME_ACTIVITIES_XML
See Also:
Constant Field Values

RESOURCE_TYPE_ICS

protected static final String RESOURCE_TYPE_ICS
See Also:
Constant Field Values

RESOURCE_TYPE_HTML

protected static final String RESOURCE_TYPE_HTML
See Also:
Constant Field Values

RESOURCE_TYPE_XML

protected static final String RESOURCE_TYPE_XML
See Also:
Constant Field Values
Constructor Detail

ICalServlet

public ICalServlet()
Method Detail

hasBirthday

protected boolean hasBirthday(Contact contact,
                              int year)

getPersistenceManager

protected javax.jdo.PersistenceManager getPersistenceManager(HttpServletRequest req)
Overrides:
getPersistenceManager in class FreeBusyServlet

getAccountUrl

protected String getAccountUrl(HttpServletRequest req,
                               Account account,
                               boolean htmlEncoded)

getActivityUrl

protected String getActivityUrl(HttpServletRequest req,
                                Activity activity,
                                boolean htmlEncoded)

getAccountsHelper

protected AccountsFilterHelper getAccountsHelper(javax.jdo.PersistenceManager pm,
                                                 String filterId,
                                                 String isDisabledFilter)

printICal

protected void printICal(Activity activity,
                         PrintWriter p,
                         HttpServletRequest req,
                         int index)

doGet

protected void doGet(HttpServletRequest req,
                     HttpServletResponse resp)
              throws ServletException,
                     IOException
Overrides:
doGet in class FreeBusyServlet
Throws:
ServletException
IOException

doPut

protected void doPut(HttpServletRequest req,
                     HttpServletResponse resp)
              throws ServletException,
                     IOException
Overrides:
doPut in class HttpServlet
Throws:
ServletException
IOException


This software is published under the BSD license. Copyright © 2003-2010, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.