Class ICalHandlerFactory
java.lang.Object
org.apache.ofbiz.workeffort.workeffort.ICalHandlerFactory
- All Implemented Interfaces:
RequestHandlerFactory
WebDAV request handler factory for iCalendar.
This class is a simple connector between the WebDAV servlet and
the
ICalWorker
class.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
doGet
(HttpServletRequest req, HttpServletResponse resp, ServletContext ctx) protected static void
doNothing
(HttpServletRequest req, HttpServletResponse resp, ServletContext ctx) protected static void
doPropFind
(HttpServletRequest req, HttpServletResponse resp, ServletContext ctx) protected static void
doPut
(HttpServletRequest req, HttpServletResponse resp, ServletContext ctx) getHandler
(String method) Returns aRequestHandler
instance appropriate for the WebDAV HTTP methods.protected static void
handleInvalidMethod
(HttpServletRequest req, HttpServletResponse resp, ServletContext ctx)
-
Constructor Details
-
ICalHandlerFactory
public ICalHandlerFactory()
-
-
Method Details
-
getHandler
Description copied from interface:RequestHandlerFactory
Returns aRequestHandler
instance appropriate for the WebDAV HTTP methods.- Specified by:
getHandler
in interfaceRequestHandlerFactory
- Parameters:
method
- the WebDAV HTTP method which can be PROPFIND, PROPPATCH, MKCOL, GET, HEAD, POST, DELETE, PUT, COPY, MOVE, LOCK, or UNLOCK.- Returns:
- a
RequestHandler
instance which can't be null.
-
handleInvalidMethod
protected static void handleInvalidMethod(HttpServletRequest req, HttpServletResponse resp, ServletContext ctx) throws ServletException, IOException - Throws:
ServletException
IOException
-
doNothing
protected static void doNothing(HttpServletRequest req, HttpServletResponse resp, ServletContext ctx) throws ServletException, IOException - Throws:
ServletException
IOException
-
doGet
protected static void doGet(HttpServletRequest req, HttpServletResponse resp, ServletContext ctx) throws ServletException, IOException - Throws:
ServletException
IOException
-
doPut
protected static void doPut(HttpServletRequest req, HttpServletResponse resp, ServletContext ctx) throws ServletException, IOException - Throws:
ServletException
IOException
-
doPropFind
protected static void doPropFind(HttpServletRequest req, HttpServletResponse resp, ServletContext ctx) throws ServletException, IOException - Throws:
ServletException
IOException
-