Package org.c3s.web.redirect

Examples of org.c3s.web.redirect.DirectRedirect


   * @throws SkipSubLevelsExeption
   */
  public void getGameInfo(UrlPart pattern, RedirectControlerInterface redirect) throws IllegalArgumentException, IllegalAccessException, InstantiationException, SQLException, SkipSubLevelsExeption {
    currentGame = DbAccess.gamesAccess.getByUniqueId(pattern.getPattern().replaceAll("/", ""));
    if (currentGame == null) {
      redirect.setRedirect(new DirectRedirect(pattern.getUrlParsed()));
      throw new SkipSubLevelsExeption();
    }
   
    String gameType = ",";
   
View Full Code Here


    if ("newgame".equals(subpattern)) {
      currentGame.setGameInfo(new DBGamesBean());
    } else {
      DBGamesBean game;
      if ((game = DbAccess.gamesAccess.getByUniqueId(subpattern)) == null) {
        redirect.setRedirect(new DirectRedirect(pattern.getUrlParsed()));
        throw new StopDispatchException();
      }
     
      currentGame.setGameInfo(game);
      currentGame.setFiles(DbAccess.filesAccess.getFilesForGame(game.getGameId()));
View Full Code Here

TOP

Related Classes of org.c3s.web.redirect.DirectRedirect

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.