Class ICalHandlerFactory
- java.lang.Object
-
- org.apache.ofbiz.workeffort.workeffort.ICalHandlerFactory
-
- All Implemented Interfaces:
RequestHandlerFactory
public class ICalHandlerFactory extends java.lang.Object implements RequestHandlerFactory
WebDAV request handler factory for iCalendar. This class is a simple connector between the WebDAV servlet and theICalWorker
class.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,RequestHandler>
handlerMap
static java.lang.String
module
-
Constructor Summary
Constructors Constructor Description ICalHandlerFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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)
RequestHandler
getHandler(java.lang.String method)
Returns aRequestHandler
instance appropriate for the WebDAV HTTP methods.protected static void
handleInvalidMethod(HttpServletRequest req, HttpServletResponse resp, ServletContext ctx)
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
handlerMap
protected final java.util.Map<java.lang.String,RequestHandler> handlerMap
-
-
Method Detail
-
getHandler
public RequestHandler getHandler(java.lang.String method)
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, java.io.IOException
- Throws:
ServletException
java.io.IOException
-
doNothing
protected static void doNothing(HttpServletRequest req, HttpServletResponse resp, ServletContext ctx) throws ServletException, java.io.IOException
- Throws:
ServletException
java.io.IOException
-
doGet
protected static void doGet(HttpServletRequest req, HttpServletResponse resp, ServletContext ctx) throws ServletException, java.io.IOException
- Throws:
ServletException
java.io.IOException
-
doPut
protected static void doPut(HttpServletRequest req, HttpServletResponse resp, ServletContext ctx) throws ServletException, java.io.IOException
- Throws:
ServletException
java.io.IOException
-
doPropFind
protected static void doPropFind(HttpServletRequest req, HttpServletResponse resp, ServletContext ctx) throws ServletException, java.io.IOException
- Throws:
ServletException
java.io.IOException
-
-