Class ICalWorker
- java.lang.Object
-
- org.apache.ofbiz.workeffort.workeffort.ICalWorker
-
public final class ICalWorker extends java.lang.Object
iCalendar worker class. This class handles the WebDAV requests and delegates the calendar conversion tasks toICalConverter
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ICalWorker.ResponseProperties
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ICalWorker.ResponseProperties
createForbiddenResponse(java.lang.String statusMessage)
Create an HTTP Forbidden response.static ICalWorker.ResponseProperties
createNotAuthorizedResponse(java.lang.String statusMessage)
Create an HTTP Unauthorized response.static ICalWorker.ResponseProperties
createNotFoundResponse(java.lang.String statusMessage)
static ICalWorker.ResponseProperties
createOkResponse(java.lang.String statusMessage)
static ICalWorker.ResponseProperties
createPartialContentResponse(java.lang.String statusMessage)
Create an HTTP Partial Content response.static void
handleGetRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext context)
static void
handlePropFindRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext context)
static void
handlePutRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext context)
-
-
-
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 - usuallynull
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 - usuallynull
for security reasons- Returns:
- Create an HTTP Unauthorized response
-
createNotFoundResponse
public static ICalWorker.ResponseProperties createNotFoundResponse(java.lang.String statusMessage)
-
createOkResponse
public static ICalWorker.ResponseProperties createOkResponse(java.lang.String statusMessage)
-
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
-
-