Esri Geoportal Server
1.0

com.esri.gpt.framework.http
Class HttpClient401Exception

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.esri.gpt.framework.http.HttpClient401Exception
All Implemented Interfaces:
Serializable

public class HttpClient401Exception
extends IOException

Represents an exception throws when a a remote client requests authorization credentials.

See Also:
Serialized Form

Constructor Summary
HttpClient401Exception(String msg)
          Construct with a supplied exception message.
 
Method Summary
 String generateHostBasedRealm()
          Creates a realm based upon the host:port for the underlying URL.
 String getRealm()
          Gets the authentication realm associated with the request that failed.
 String getScheme()
          Gets the authentication scheme associated with the request that failed.
 String getUrl()
          Gets the URL associated with the request that failed.
 void setRealm(String realm)
          Sets the authentication realm associated with the request that failed.
 void setScheme(String scheme)
          Sets the authentication scheme associated with the request that failed.
 void setUrl(String url)
          Sets the URL associated with the request that failed.
 
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

HttpClient401Exception

public HttpClient401Exception(String msg)
Construct with a supplied exception message.

Parameters:
msg - the exception message
Method Detail

getRealm

public String getRealm()
Gets the authentication realm associated with the request that failed.

Returns:
the authentication realm

setRealm

public void setRealm(String realm)
Sets the authentication realm associated with the request that failed.

Parameters:
realm - the authentication realm

getScheme

public String getScheme()
Gets the authentication scheme associated with the request that failed.

Returns:
the authentication scheme

setScheme

public void setScheme(String scheme)
Sets the authentication scheme associated with the request that failed.

Parameters:
scheme - the authentication scheme

getUrl

public String getUrl()
Gets the URL associated with the request that failed.

Returns:
the request URL

setUrl

public void setUrl(String url)
Sets the URL associated with the request that failed.

Parameters:
url - the request URL

generateHostBasedRealm

public String generateHostBasedRealm()
Creates a realm based upon the host:port for the underlying URL.

Returns:
the generated realm

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.