|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.misc.HTTPUtil
This utility class includes static methods for manipulating URLs. Specifically, this class is used to set the expresso.continueURL session object, to retrieve the continueURL object, to qualify Expresso next parameters, etc.
Creation date: (9/14/00 10:28:34 PM)
| Constructor Summary | |
HTTPUtil()
HTTPUtil constructor comment. |
|
| Method Summary | |
static String |
getBackURL(HttpServletRequest request)
Return the "back" URL, usually displayed at the bottom of the servlet page to provide the user a way to go back to the page they called the servlet from |
static String |
getContinueURL(HttpServletRequest request)
Return the name of the URL to "continue" to from this servlet, |
static String |
getNextURI(HttpServletRequest req)
Creation date: (9/26/00 12:21:19 PM) |
static String |
qualifyURLIfNeeded(String url,
HttpServletRequest req)
We always want expresso.continueURL objects to be fully qualified. |
static void |
setBackURL(HttpServletRequest request)
The "back" URL is used at the bottom of servlets to offer the user a quick way to go "back" to the page they started from e.g. before they requested the current servlet. |
static void |
setBackURL(String newURL,
HttpServletRequest request)
The "back" URL is used at the bottom of servlets to offer the user a quick way to go "back" to the page they started from e.g. before they requested the current servlet. |
static void |
setContinueURL(HttpServletRequest req)
We use this method to set the current location as the continueURL. |
static void |
setContinueURL(HttpServletRequest req,
HttpServletResponse res)
We use this method to set the current location as the continueURL. |
static void |
setContinueURL(String newURL,
HttpServletRequest request)
|
static void |
setContinueURL(String newURL,
HttpServletRequest request,
HttpServletResponse response)
Override the normal "next" parameter to go somewhere else |
static void |
setContinueURLFromQueryString(HttpServletRequest req)
set the continue URL from a query string "next" parameter Creation date: (12/17/00 2:24:49 PM) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HTTPUtil()
| Method Detail |
public static String getContinueURL(HttpServletRequest request)
throws ServletException
request -
ServletExceptionpublic static String getNextURI(HttpServletRequest req)
req - javax.servlet.http.HttpServletRequest
public static String qualifyURLIfNeeded(String url,
HttpServletRequest req)
url - java.lang.Stringreq -
public static void setBackURL(String newURL,
HttpServletRequest request)
throws ServletException
newURL - request -
ServletException
public static void setBackURL(HttpServletRequest request)
throws ServletException
request -
ServletException
public static String getBackURL(HttpServletRequest request)
throws ServletException
request -
ServletException
public static void setContinueURL(String newURL,
HttpServletRequest request)
throws ServletException
newURL - request -
ServletException
public static void setContinueURL(String newURL,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException
newURL - request - response -
ServletException
public static void setContinueURL(HttpServletRequest req)
throws ServletException
req - javax.servlet.http.HttpServletRequest
ServletException
public static void setContinueURL(HttpServletRequest req,
HttpServletResponse res)
throws ServletException
res - req - javax.servlet.http.HttpServletRequest
ServletException
public static void setContinueURLFromQueryString(HttpServletRequest req)
throws ServletException
req - javax.servlet.http.HttpServletRequest
ServletException - The exception description.
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||