org.hdpagination.web
Class WebUtils

java.lang.Object
  extended by org.hdpagination.web.WebUtils

public final class WebUtils
extends java.lang.Object

Miscellaneous utilities for web applications

Since:
1.0.2
Author:
Liangfeng Ren

Method Summary
static void clearSearchResult(PaginationAction action, GlobalConfig globalConfig, javax.servlet.http.HttpServletRequest request)
          Clear the the search result (java.util.List) from session or application scope, if property dataScope of PaginationAction is set with 'session' or 'application'.
static void clearSearchResult(java.lang.String actionId, javax.servlet.http.HttpServletRequest request)
          Clear the the search result (java.util.List) from session or application scope, if property dataScope of PaginationAction is set with 'session' or 'application'.
static java.lang.String generatePageKey(java.lang.String actionId)
          generate the key of Page instance to save in HttpSession based on 'Id' property of PaginationAction
static Page retirevePage(java.lang.String actionId, javax.servlet.http.HttpSession session)
          Retrieve Page instance from HTTP session based on 'Id' property of PaginationAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

clearSearchResult

public static void clearSearchResult(PaginationAction action,
                                     GlobalConfig globalConfig,
                                     javax.servlet.http.HttpServletRequest request)
Clear the the search result (java.util.List) from session or application scope, if property dataScope of PaginationAction is set with 'session' or 'application'.

Parameters:
action - the target PaginationAction
globalConfig -
request -
See Also:
PaginationAction.getDataScope()

clearSearchResult

public static void clearSearchResult(java.lang.String actionId,
                                     javax.servlet.http.HttpServletRequest request)
Clear the the search result (java.util.List) from session or application scope, if property dataScope of PaginationAction is set with 'session' or 'application'.

Parameters:
actionId - the Id of PaginationAction
request -
See Also:
PaginationAction.getDataScope()

generatePageKey

public static java.lang.String generatePageKey(java.lang.String actionId)
generate the key of Page instance to save in HttpSession based on 'Id' property of PaginationAction

Parameters:
actionId -
Returns:

retirevePage

public static Page retirevePage(java.lang.String actionId,
                                javax.servlet.http.HttpSession session)
Retrieve Page instance from HTTP session based on 'Id' property of PaginationAction

Parameters:
actionId -
session -
Returns:


Copyright © 2008 HDPagination All Rights Reserved.