Package org.jgrapes.mail
Class InternetAddressPrincipal
java.lang.Object
jakarta.mail.Address
jakarta.mail.internet.InternetAddress
org.jgrapes.mail.InternetAddressPrincipal
- All Implemented Interfaces:
Serializable
,Cloneable
,Principal
A variant of
InternetAddress
that can be used as a
Principal
.- See Also:
-
Field Summary
Fields inherited from class jakarta.mail.internet.InternetAddress
address, encodedPersonal, personal
-
Constructor Summary
ConstructorDescriptionSeeInternetAddress()
.InternetAddressPrincipal
(String address) See {@link InternetAddress#InternetAddress(String)))}.InternetAddressPrincipal
(String address, boolean strict) See {@link InternetAddress#InternetAddress(String, boolean))}.InternetAddressPrincipal
(String address, String personal) See {@link InternetAddress#InternetAddress(String, String)))}.InternetAddressPrincipal
(String address, String personal, String charset) See {@link InternetAddress#InternetAddress(String, String, String)))}. -
Method Summary
Methods inherited from class jakarta.mail.internet.InternetAddress
clone, equals, getAddress, getGroup, getLocalAddress, getPersonal, getType, hashCode, isGroup, parse, parse, parseHeader, setAddress, setPersonal, setPersonal, toString, toString, toString, toUnicodeString, toUnicodeString, toUnicodeString, validate
-
Constructor Details
-
InternetAddressPrincipal
public InternetAddressPrincipal()SeeInternetAddress()
. -
InternetAddressPrincipal
See {@link InternetAddress#InternetAddress(String, boolean))}.- Parameters:
address
- the addressstrict
- the strict- Throws:
AddressException
- the address exception
-
InternetAddressPrincipal
public InternetAddressPrincipal(String address, String personal, String charset) throws UnsupportedEncodingException See {@link InternetAddress#InternetAddress(String, String, String)))}.- Parameters:
address
- the addresspersonal
- the personalcharset
- the charset- Throws:
UnsupportedEncodingException
- the unsupported encoding exception
-
InternetAddressPrincipal
public InternetAddressPrincipal(String address, String personal) throws UnsupportedEncodingException See {@link InternetAddress#InternetAddress(String, String)))}.- Parameters:
address
- the addresspersonal
- the personal- Throws:
UnsupportedEncodingException
- the unsupported encoding exception
-
InternetAddressPrincipal
See {@link InternetAddress#InternetAddress(String)))}.- Parameters:
address
- the address- Throws:
AddressException
- the address exception
-
-
Method Details