Class ICalWorker

java.lang.Object
org.apache.ofbiz.workeffort.workeffort.ICalWorker

public final class ICalWorker extends Object
iCalendar worker class. This class handles the WebDAV requests and delegates the calendar conversion tasks to ICalConverter.
  • Method Details

    • createForbiddenResponse

      public static ICalWorker.ResponseProperties createForbiddenResponse(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(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
    • createNotFoundResponse

      public static ICalWorker.ResponseProperties createNotFoundResponse(String statusMessage)
    • createOkResponse

      public static ICalWorker.ResponseProperties createOkResponse(String statusMessage)
    • createPartialContentResponse

      public static ICalWorker.ResponseProperties createPartialContentResponse(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(HttpServletRequest request, HttpServletResponse response, ServletContext context) throws IOException
      Throws:
      IOException
    • handlePropFindRequest

      public static void handlePropFindRequest(HttpServletRequest request, HttpServletResponse response, ServletContext context) throws IOException
      Throws:
      IOException
    • handlePutRequest

      public static void handlePutRequest(HttpServletRequest request, HttpServletResponse response, ServletContext context) throws IOException
      Throws:
      IOException