org.apache.beehive.netui.pageflow.util
Class PageflowTagUtils
Object
PageflowTagUtils
public class PageflowTagUtils
- extends Object
Method Summary |
static String |
addParam(String url,
String paramName,
String paramVal)
Add a parameter to the given URL. |
static void |
addParameters(StringBuffer url,
String encoding,
boolean redirect,
Map params)
|
static String |
computeURL(PageContext pageContext,
String forward,
String href,
String page,
Map params,
String anchor,
boolean redirect)
|
static String |
computeURL(PageContext pageContext,
String forward,
String href,
String page,
String action,
Map params,
String anchor,
boolean redirect)
|
static String |
createActionPath(ServletContext servletContext,
HttpServletRequest request,
String action)
|
static String |
createActionURL(PageContext pageContext,
String action)
|
static String |
encodeURL(String url,
String encoding)
|
static String |
getActionPath(PageContext pageContext,
String action)
|
static String |
getRewrittenFormAction(String action,
PageContext pageContext)
|
static boolean |
isAction(HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext,
String action)
|
static String |
prepareActionUrl(PageContext pageContext,
String url)
|
static String |
prepareResourceUrl(PageContext pageContext,
String url)
|
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageflowTagUtils
public PageflowTagUtils()
getRewrittenFormAction
public static String getRewrittenFormAction(String action,
PageContext pageContext)
prepareActionUrl
public static String prepareActionUrl(PageContext pageContext,
String url)
prepareResourceUrl
public static String prepareResourceUrl(PageContext pageContext,
String url)
createActionURL
public static String createActionURL(PageContext pageContext,
String action)
createActionPath
public static String createActionPath(ServletContext servletContext,
HttpServletRequest request,
String action)
getActionPath
public static String getActionPath(PageContext pageContext,
String action)
isAction
public static boolean isAction(HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext,
String action)
computeURL
public static String computeURL(PageContext pageContext,
String forward,
String href,
String page,
Map params,
String anchor,
boolean redirect)
throws MalformedURLException
- Throws:
MalformedURLException
computeURL
public static String computeURL(PageContext pageContext,
String forward,
String href,
String page,
String action,
Map params,
String anchor,
boolean redirect)
throws MalformedURLException
- Throws:
MalformedURLException
addParameters
public static void addParameters(StringBuffer url,
String encoding,
boolean redirect,
Map params)
encodeURL
public static String encodeURL(String url,
String encoding)
addParam
public static String addParam(String url,
String paramName,
String paramVal)
- Add a parameter to the given URL.
- Parameters:
url
- the URL to which to append.paramName
- the name of the parameter to add.paramVal
- the value of the parameter to add.
- Returns:
- the URL, with the given parameter added.