Class MailDestinationDescriptor
java.lang.Object
org.springframework.ws.transport.mail.MailDestinationDescriptor
- All Implemented Interfaces:
WebServiceMessageSender.DestinationDescriptor
public final class MailDestinationDescriptor
extends Object
implements WebServiceMessageSender.DestinationDescriptor
WebServiceMessageSender.DestinationDescriptor implementation for Mail destinations.- Since:
- 3.1.9
-
Method Summary
Modifier and TypeMethodDescriptionReturn the domain part of the mailbox (after@), lower-cased, ornullwhen not extractable.static MailDestinationDescriptorof(URI uri, WebServiceMessageSender.UriSource uriSource) Create an instance from the given URI and URI source.jakarta.mail.internet.InternetAddressReturn the parsedToaddress, ornullwhen missing or invalid.uri()Return the URI.Return the origin of the URI.
-
Method Details
-
of
Create an instance from the given URI and URI source.- Parameters:
uri- the URIuriSource- the URI source- Returns:
- a descriptor
-
uri
Description copied from interface:WebServiceMessageSender.DestinationDescriptorReturn the URI.- Specified by:
uriin interfaceWebServiceMessageSender.DestinationDescriptor- Returns:
- the URI
-
uriSource
Description copied from interface:WebServiceMessageSender.DestinationDescriptorReturn the origin of the URI.- Specified by:
uriSourcein interfaceWebServiceMessageSender.DestinationDescriptor- Returns:
- the source of the URI
-
toAddress
public jakarta.mail.internet.InternetAddress toAddress()Return the parsedToaddress, ornullwhen missing or invalid.- Returns:
- the destination address, or
null
-
mailboxHost
Return the domain part of the mailbox (after@), lower-cased, ornullwhen not extractable.- Returns:
- the mailbox host, or
null
-