| java.lang.Object com.methodhead.auth.AuthUtil
AuthUtil | public class AuthUtil (Code) | | A collection of utility methods used by the com.methodhead.auth
package.
|
Method Summary | |
public static ActionForward | findForward(ActionMapping mapping, String name) Returns the forward named name or throws an exception
with a message indicating the forward could not be found. | public static String | getRelativeUrl(HttpServletRequest request) Returns the URL (including query parameters) minus the scheme, host, and
context path. | public static AuthUser | getUser(HttpServletRequest request) Returns the current user in the session (the
AuthGlobals.USER_KEY attribute). | public static void | setUser(HttpServletRequest request, AuthUser user) Sets the current user in the session (the
AuthGlobals.USER_KEY attribute). |
findForward | public static ActionForward findForward(ActionMapping mapping, String name) throws AuthException(Code) | | Returns the forward named name or throws an exception
with a message indicating the forward could not be found.
|
getRelativeUrl | public static String getRelativeUrl(HttpServletRequest request)(Code) | | Returns the URL (including query parameters) minus the scheme, host, and
context path. This method probably be moved to a more general purpose
class.
|
|
|