throw new DavException("not implemented", HttpServletResponse.SC_FORBIDDEN, null);
if (!ctxt.hasRequestMessage()) { throw new DavException("no request body", HttpServletResponse.SC_BAD_REQUEST, null); }  LockMgr.LockScope scope = LockScope.shared; LockMgr.LockType type = LockType.write;  Element req = ctxt.getRequestMessage(); if (!req.getName().equals(DavElements.P_LOCKINFO)) throw new DavException("msg "+req.getName()+" not allowed in LOCK", HttpServletResponse.SC_BAD_REQUEST, null); try { Element e = req.getElement(DavElements.E_LOCKSCOPE); List<Element> val = e.listElements(); for (Element v : val) { if (v.getQName().equals(DavElements.E_EXCLUSIVE)) scope = LockScope.exclusive; else if (v.getQName().equals(DavElements.E_SHARED)) scope = LockScope.shared; else throw new DavException("unrecognized scope element "+v.toString(), HttpServletResponse.SC_BAD_REQUEST, null); } e = req.getElement(DavElements.E_LOCKTYPE); val = e.listElements(); for (Element v : val) { if (v.getQName().equals(DavElements.E_WRITE)) type = LockType.write; else throw new DavException("unrecognized type element "+v.toString(), HttpServletResponse.SC_BAD_REQUEST, null); } } catch (ServiceException e) { throw new DavException("missing element in request", HttpServletResponse.SC_BAD_REQUEST, e); }  DavResource rs = UrlNamespace.getResource(ctxt); LockMgr lockmgr = LockMgr.getInstance(); LockMgr.Lock lock = lockmgr.createLock(ctxt, rs, type, scope, 0); Element top = new XMLElement(DavElements.E_PROP); Element ld = top.addElement(DavElements.E_LOCKDISCOVERY); addActiveLockElement(ld, lock); sendResponse(ctxt, top);
	public void handle(DavContext ctxt) throws DavException, IOException {		throw new DavException("not implemented", HttpServletResponse.SC_FORBIDDEN, null);	}