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.
The To address is the very InternetAddress that the
sender sets as the recipient of the message, so a policy comparing it decides on the
mailbox that will actually be used.
- Since:
- 3.1.9
-
Method Summary
Modifier and TypeMethodDescriptionstatic MailDestinationDescriptorof(URI uri, WebServiceMessageSender.UriSource uriSource) Create an instance from the given URI and URI source.@Nullable 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 @Nullable jakarta.mail.internet.InternetAddress toAddress()Return the parsedToaddress, ornullwhen missing or invalid.- Returns:
- the destination address, or
null
-