Top Description Fields Constructors Methods
com.sun.mail.imap

public Class ReferralException

extends AuthenticationFailedException
Class Inheritance
Imports
javax.mail.AuthenticationFailedException

A special kind of AuthenticationFailedException that indicates that the reason for the failure was an IMAP REFERRAL in the response code. See RFC 2221 for details.
Since
JavaMail 1.5.5

Field Summary

Modifier and TypeField and Description
private static final long
private String
private String

Constructor Summary

AccessConstructor and Description
public
ReferralException(String
the URL
url
,
String
the detail message
text
)

Constructs an ReferralException with the specified URL and text.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the text
getText
()

Return the text sent by the server along with the referral.

public String

Returns:

the IMAP URL
getUrl
()

Return the IMAP URL in the referral.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.mail.AuthenticationFailedException.serialVersionUID.

textback to summary
private String text
urlback to summary
private String url

Constructor Detail

ReferralExceptionback to summary
public ReferralException(String url, String text)

Constructs an ReferralException with the specified URL and text.

Parameters
url:String

the URL

text:String

the detail message

Method Detail

getTextback to summary
public String getText()

Return the text sent by the server along with the referral.

Returns:String

the text

getUrlback to summary
public String getUrl()

Return the IMAP URL in the referral.

Returns:String

the IMAP URL