private void doPostHelper(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
  logger.log(Level.INFO,"request: " + request.getRequestURI());
  final RequestAndResponse requestAndResponse=new RequestAndResponse(request,response);
  standardResponseStuff(requestAndResponse);
  final String uri=request.getRequestURI();
  requestAndResponse.setOverrideUri(uri);
  if (uri.equals("/createQuotationJson")) {
    handleJsonCreateQuotation(requestAndResponse);
  }
 else   if (uri.equals("/makeNotebook")) {
    handleHtmlMakeNotebook(requestAndResponse);
  }
 else   if (uri.equals("/moveNotesJson")) {
    handleJsonMoveNotes(requestAndResponse);
  }
 else   if (uri.equals("/noteOpJson")) {
    handleJsonNoteOp(requestAndResponse);
  }
 else   if (uri.equals("/getNotebookPathJson")) {
    handleJsonGetNotebookPath(requestAndResponse);
  }
 else   if (uri.equals("/makeChildrenJson")) {
    handleJsonMakeChildren(requestAndResponse);
  }
 else   if (uri.equals("/makeSiblingsJson")) {
    handleJsonMakeSiblings(requestAndResponse);
  }
 else   if (uri.equals("/signIn")) {
    handleJsonSignIn(requestAndResponse);
  }
 else   if (uri.equals("/signOut")) {
    handleJsonSignOut(requestAndResponse);
  }
 else   if (uri.equals("/createAccount")) {
    handleJsonCreateAccount(requestAndResponse);
  }
 else   if (uri.startsWith("/doRestore/")) {
    handleHtmlDoUserRestore(requestAndResponse);
  }
 else   if (uri.startsWith("/doOfflineBackup/")) {
    handleHtmlDoOfflineDbBackup(requestAndResponse);
  }
 else   if (uri.startsWith("/doOnlineBackup/")) {
    handleHtmlDoOnlineDbBackup(requestAndResponse);
  }
 else   if (uri.startsWith("/doClear/")) {
    handleHtmlDoClear(requestAndResponse);
  }
 else   if (uri.startsWith("/doBackup/")) {
    handleHtmlDoUserBackup(requestAndResponse);
  }
 else   if (uri.startsWith("/doShutdown/")) {
    handleHtmlDoShutdown(requestAndResponse);
  }
 else   if (uri.startsWith("/doCheckForErrors/")) {
    handleHtmlDoCheckForErrors(requestAndResponse);
  }
 else   if (uri.startsWith("/changePassword/")) {
    handleHtmlChangePassword(requestAndResponse);
  }
 else   if (uri.startsWith("/changeAccount/")) {
    handleHtmlChangeAccount(requestAndResponse);
  }
 else   if (uri.startsWith("/closeAccount/")) {
    handleHtmlCloseAccount(requestAndResponse);
  }
 else   if (uri.equals("/saveOptions")) {
    handleJsonSaveOptions(requestAndResponse);
  }
 else   if (uri.startsWith("/doExport/")) {
    handleHtmlDoExport(requestAndResponse);
  }
 else {
    returnHtml404(requestAndResponse);
  }
}

private void doPostHelper ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { logger . log ( Level . INFO , "request: " + request . getRequestURI ( ) ) ; final RequestAndResponse requestAndResponse = new RequestAndResponse ( request , response ) ; standardResponseStuff ( requestAndResponse ) ; final String uri = request . getRequestURI ( ) ; requestAndResponse . setOverrideUri ( uri ) ; if ( uri . equals ( "/createQuotationJson" ) ) { handleJsonCreateQuotation ( requestAndResponse ) ; } else if ( uri . equals ( "/makeNotebook" ) ) { handleHtmlMakeNotebook ( requestAndResponse ) ; } else if ( uri . equals ( "/moveNotesJson" ) ) { handleJsonMoveNotes ( requestAndResponse ) ; } else if ( uri . equals ( "/noteOpJson" ) ) { handleJsonNoteOp ( requestAndResponse ) ; } else if ( uri . equals ( "/getNotebookPathJson" ) ) { handleJsonGetNotebookPath ( requestAndResponse ) ; } else if ( uri . equals ( "/makeChildrenJson" ) ) { handleJsonMakeChildren ( requestAndResponse ) ; } else if ( uri . equals ( "/makeSiblingsJson" ) ) { handleJsonMakeSiblings ( requestAndResponse ) ; } else if ( uri . equals ( "/signIn" ) ) { handleJsonSignIn ( requestAndResponse ) ; } else if ( uri . equals ( "/signOut" ) ) { handleJsonSignOut ( requestAndResponse ) ; } else if ( uri . equals ( "/createAccount" ) ) { handleJsonCreateAccount ( requestAndResponse ) ; } else if ( uri . startsWith ( "/doRestore/" ) ) { handleHtmlDoUserRestore ( requestAndResponse ) ; } else if ( uri . startsWith ( "/doOfflineBackup/" ) ) { handleHtmlDoOfflineDbBackup ( requestAndResponse ) ; } else if ( uri . startsWith ( "/doOnlineBackup/" ) ) { handleHtmlDoOnlineDbBackup ( requestAndResponse ) ; } else if ( uri . startsWith ( "/doClear/" ) ) { handleHtmlDoClear ( requestAndResponse ) ; } else if ( uri . startsWith ( "/doBackup/" ) ) { handleHtmlDoUserBackup ( requestAndResponse ) ; } else if ( uri . startsWith ( "/doShutdown/" ) ) { handleHtmlDoShutdown ( requestAndResponse ) ; } else if ( uri . startsWith ( "/doCheckForErrors/" ) ) { handleHtmlDoCheckForErrors ( requestAndResponse ) ; } else if ( uri . startsWith ( "/changePassword/" ) ) { handleHtmlChangePassword ( requestAndResponse ) ; } else if ( uri . startsWith ( "/changeAccount/" ) ) { handleHtmlChangeAccount ( requestAndResponse ) ; } else if ( uri . startsWith ( "/closeAccount/" ) ) { handleHtmlCloseAccount ( requestAndResponse ) ; } else if ( uri . equals ( "/saveOptions" ) ) { handleJsonSaveOptions ( requestAndResponse ) ; } else if ( uri . startsWith ( "/doExport/" ) ) { handleHtmlDoExport ( requestAndResponse ) ; } else { returnHtml404 ( requestAndResponse ) ; } }
does the real work of dopost ( ) .
