Class ICalWorker
java.lang.Object
org.apache.ofbiz.workeffort.workeffort.ICalWorker
iCalendar worker class. This class handles the WebDAV requests and
delegates the calendar conversion tasks to
ICalConverter
.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateForbiddenResponse
(String statusMessage) Create an HTTP Forbidden response.createNotAuthorizedResponse
(String statusMessage) Create an HTTP Unauthorized response.createNotFoundResponse
(String statusMessage) createOkResponse
(String statusMessage) createPartialContentResponse
(String statusMessage) Create an HTTP Partial Content response.static void
handleGetRequest
(HttpServletRequest request, HttpServletResponse response, ServletContext context) static void
handlePropFindRequest
(HttpServletRequest request, HttpServletResponse response, ServletContext context) static void
handlePutRequest
(HttpServletRequest request, HttpServletResponse response, ServletContext context)
-
Method Details
-
createForbiddenResponse
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 - usuallynull
for security reasons- Returns:
- Create an HTTP Forbidden response
-
createNotAuthorizedResponse
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 - usuallynull
for security reasons- Returns:
- Create an HTTP Unauthorized response
-
createNotFoundResponse
-
createOkResponse
-
createPartialContentResponse
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
-