org.clazzes.util.http.sec
Class LoginRequiredException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
LoginRequiredException()
          Default constructor for the sake of GWT deserialization code.
LoginRequiredException(String loginUrl)
           
LoginRequiredException(String message, String loginUrl)
           
 
Method Summary
 String getLoginUrl()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

getLoginUrl

public String getLoginUrl()
Returns:
The login URL as returned by HttpLoginService.getLoginUrl().


Copyright © 2013. All Rights Reserved.