google appengine memo

    	if(!AuthorityHandler.INSTANCE.inAuthorized(req, res, AuthorityHandler.Lev.admin)){
    		AbnormalPrinter.Singleton.print(res, req, ResCode.Unauthorized);
    		return;
    	}

    	HttpSession session = req.getSession(true);
        String id = (String)session.getAttribute("id");
    	Authority auth = (id!=null&&!id.isEmpty()) ? Authority.authorized:Authority.notauthorized;
    	if(!auth.isAuthorized()){
		AbnormalPrinter.Singleton.print(res, req, AbnormalPrinter.ResCode.Unauthorized);
		return;
	}
http://localhost:8888/_ah/admin
    last modified: 06 July 2013 [ View wiki source Close ]
     
SEARCH DIFFERENCE ATTACHMENT RECENT POST