Anyframe Web

anyframe.web.struts.util
Class AuthorizationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.struts.util.ModuleException
              extended by anyframe.web.struts.util.AuthorizationException
All Implemented Interfaces:
java.io.Serializable

public class AuthorizationException
extends org.apache.struts.util.ModuleException

The class for expanding org.apache.struts.util.ModuleException

Handles the exception for authorization

The AuthorizationException occurs in the case the authority is not found when comparing the userrole's role info and the role info for the requested url.

Author:
Byunghun Woo
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.util.ModuleException
message, property
 
Constructor Summary
AuthorizationException()
          The case for creating the instance without the key value for the Exception Message The message's key is error.common.msg.authorization.
AuthorizationException(java.lang.String key)
          Sets as exception message for the appropriate value of the message key value.
AuthorizationException(java.lang.String key, java.lang.String urlname)
          Setting as exception message the value appropriate to the message key and urlname
 
Method Summary
 
Methods inherited from class org.apache.struts.util.ModuleException
getActionMessage, getProperty, setProperty
 
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

AuthorizationException

public AuthorizationException()
The case for creating the instance without the key value for the Exception Message The message's key is error.common.msg.authorization.


AuthorizationException

public AuthorizationException(java.lang.String key)
Sets as exception message for the appropriate value of the message key value.

Parameters:
key - The message key registered in message resources

AuthorizationException

public AuthorizationException(java.lang.String key,
                              java.lang.String urlname)
Setting as exception message the value appropriate to the message key and urlname

Parameters:
key - the message key registered in message resources
urlname - requested url

Anyframe Web

Copyright © 2008-2009 Samsung SDS. All Rights Reserved.