Class JmsDestinationDescriptor
java.lang.Object
org.springframework.ws.transport.jms.JmsDestinationDescriptor
- All Implemented Interfaces:
WebServiceMessageSender.DestinationDescriptor
public final class JmsDestinationDescriptor
extends Object
implements WebServiceMessageSender.DestinationDescriptor
WebServiceMessageSender.DestinationDescriptor implementation for JMS destinations.- Since:
- 3.1.9
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if either the destination name or the replyTo name are suspicious, that is if either of those names contains a known protocol that could lead to RCE attacks.Return the name of the destination.static JmsDestinationDescriptorof(URI uri, WebServiceMessageSender.UriSource uriSource) Create an instance from the given URI and URI source.Return the name of the replyTo.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
-
destinationName
Return the name of the destination.- Returns:
- the destination name
-
replyToName
Return the name of the replyTo.- Returns:
- the replyTo name
-
containsSuspiciousJmsNameIndirection
public boolean containsSuspiciousJmsNameIndirection()Check if either the destination name or the replyTo name are suspicious, that is if either of those names contains a known protocol that could lead to RCE attacks.- Returns:
trueif any of the destination or replyTo names is suspicious,falseotherwise
-