code: @Override
      protected void doOptions(HttpServletRequest req, HttpServletResponse resp) {
  
          resp.addHeader("DAV", "1,2");
  
          StringBuffer methodsAllowed = determineMethodsAllowed(getRelativePath(req));
  
          resp.addHeader(HEADER_ALLOW, methodsAllowed.toString());
          resp.addHeader("MS-Author-Via", "DAV");
      }
docs: Process a OPTIONS WebDAV request for the specified resource.<p>
  
  @param req the servlet request we are processing
  @param resp the servlet response we are creating