com.meterware.httpunit
Class AuthorizationRequiredException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.meterware.httpunit.AuthorizationRequiredException
All Implemented Interfaces:
java.io.Serializable

public class AuthorizationRequiredException
extends java.lang.RuntimeException

This exception is thrown when an unauthorized request is made for a page that requires authentication.

See Also:
Serialized Form

Constructor Summary
protected AuthorizationRequiredException(java.lang.String scheme, java.lang.String params)
           
 
Method Summary
 java.lang.String getAuthenticationParameter(java.lang.String parameterName)
          Returns the named authentication parameter.
 java.lang.String getAuthenticationScheme()
          Returns the name of the authentication scheme.
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

AuthorizationRequiredException

protected AuthorizationRequiredException(java.lang.String scheme,
                                         java.lang.String params)
Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getAuthenticationScheme

public java.lang.String getAuthenticationScheme()
Returns the name of the authentication scheme.


getAuthenticationParameter

public java.lang.String getAuthenticationParameter(java.lang.String parameterName)
Returns the named authentication parameter. For Basic authentication, the only parameter is "realm".


Copyright © 2000-2006 Russell Gold. See license agreement for rights granted.