Class ICalWorker


  • public final class ICalWorker
    extends java.lang.Object
    iCalendar worker class. This class handles the WebDAV requests and delegates the calendar conversion tasks to ICalConverter.
    • Field Detail

      • module

        public static final java.lang.String module
    • Method Detail

      • createForbiddenResponse

        public static ICalWorker.ResponseProperties createForbiddenResponse​(java.lang.String statusMessage)
        Create an HTTP Forbidden response. The calendar converter will use this response when a user is logged in, but they don't have the basic CRUD permissions to perform an action. Returning a Forbidden status will prevent the client from trying the operation again.
        Parameters:
        statusMessage - Optional status message - usually null for security reasons
        Returns:
        Create an HTTP Forbidden response
      • createNotAuthorizedResponse

        public static ICalWorker.ResponseProperties createNotAuthorizedResponse​(java.lang.String statusMessage)
        Create an HTTP Unauthorized response. The calendar converter will use this response when a user is not logged in, and basic CRUD permissions are needed to perform an action. Returning an Unauthorized status will force the client to authenticate the user, then try the operation again.
        Parameters:
        statusMessage - Optional status message - usually null for security reasons
        Returns:
        Create an HTTP Unauthorized response
      • createPartialContentResponse

        public static ICalWorker.ResponseProperties createPartialContentResponse​(java.lang.String statusMessage)
        Create an HTTP Partial Content response. The calendar converter will use this response when a calendar is only partially updated.
        Parameters:
        statusMessage - A message describing which calendar components were not updated
        Returns:
        Create an HTTP Partial Content response.
      • handleGetRequest

        public static void handleGetRequest​(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response,
                                            javax.servlet.ServletContext context)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • handlePropFindRequest

        public static void handlePropFindRequest​(javax.servlet.http.HttpServletRequest request,
                                                 javax.servlet.http.HttpServletResponse response,
                                                 javax.servlet.ServletContext context)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • handlePutRequest

        public static void handlePutRequest​(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response,
                                            javax.servlet.ServletContext context)
                                     throws java.io.IOException
        Throws:
        java.io.IOException