org.clazzes.util.http.sec
Class LoginRequiredException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.clazzes.util.http.sec.LoginRequiredException
- All Implemented Interfaces:
- Serializable
public class LoginRequiredException
- extends RuntimeException
An exception thrown, whenever a user is not logged in and a login URL
should be propagated to the web application.
- See Also:
HttpCheckLoginHelper.sendLoginRequired(javax.servlet.http.HttpServletResponse, String)
,
Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
LoginRequiredException
public LoginRequiredException()
- Default constructor for the sake of GWT deserialization code.
LoginRequiredException
public LoginRequiredException(String loginUrl)
- Parameters:
loginUrl
- The URL of the login servlet.
LoginRequiredException
public LoginRequiredException(String message,
String loginUrl)
- Parameters:
message
- The message of the underlying exception.loginUrl
- The URL of the login servlet.
getLoginUrl
public String getLoginUrl()
- Returns:
- The login URL as returned by
HttpLoginService.getLoginUrl()
.
Copyright © 2012. All Rights Reserved.