Class HttpDestinationDescriptor
java.lang.Object
org.springframework.ws.transport.http.HttpDestinationDescriptor
- All Implemented Interfaces:
WebServiceMessageSender.DestinationDescriptor
public final class HttpDestinationDescriptor
extends Object
implements WebServiceMessageSender.DestinationDescriptor
WebServiceMessageSender.DestinationDescriptor implementation for HTTP destinations.- Since:
- 3.1.9
-
Method Summary
Modifier and TypeMethodDescriptionhostAddress(boolean allowDnsResolution) Resolve the host name to anInetAddress.hostName()Return the host name of the URI, lower-cased.booleanWhether the URI host is an IPv4 address literal in a private (RFC 1918) range.static HttpDestinationDescriptorof(URI uri, WebServiceMessageSender.UriSource uriSource) Create an instance from the given URI and URI source.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
-
hostName
Return the host name of the URI, lower-cased.- Returns:
- the host name, or
nullif the URI has no host name
-
hostAddress
Resolve the host name to anInetAddress.- Parameters:
allowDnsResolution- whether to allow DNS resolution, when false, only IP literals are considered- Returns:
- the address of the host or
nullif the host name is not resolvable
-
isSiteLocalIpv4Literal
public boolean isSiteLocalIpv4Literal()Whether the URI host is an IPv4 address literal in a private (RFC 1918) range.- Returns:
trueif the host parses as an IPv4 literal andInetAddress.isSiteLocalAddress()istrue;falsefor host names, non-literal hosts, non-IPv4 literals, and public IPv4 literals
-