Package org.hdiv.state

Examples of org.hdiv.state.IPage


   *             If the state doesn't exist a new HDIV exception is thrown.
   */
  public String getStateHash(String pageId, int stateId) {

    try {
      IPage currentPage = this.getPage(pageId);
      return currentPage.getStateHash(stateId);

    } catch (Exception e) {
      throw new HDIVException(HDIVErrorCodes.PAGE_ID_INCORRECT, e);
    }
  }
View Full Code Here


        String token = stateScope.getStateToken(stateId);
        return requestSuffix.equals(token);
      }

      IPage currentPage = session.getPage(pageId);

      if (currentPage == null) {
        if (log.isErrorEnabled()) {
          log.error("Page with id [" + pageId + "] not found in session.");
        }
        throw new HDIVException(HDIVErrorCodes.PAGE_ID_INCORRECT);
      }

      return currentPage.getRandomToken(restoredState.getMethod()).equals(requestSuffix);

    } catch (IndexOutOfBoundsException e) {
      String errorMessage = HDIVUtil.getMessage("validation.error", e.getMessage());
      if (log.isErrorEnabled()) {
        log.error(errorMessage);
View Full Code Here

TOP

Related Classes of org.hdiv.state.IPage

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.