diff --git a/core/src/main/java/org/springframework/ws/server/EndpointMapping.java b/core/src/main/java/org/springframework/ws/server/EndpointMapping.java index b0473426..827b51dd 100644 --- a/core/src/main/java/org/springframework/ws/server/EndpointMapping.java +++ b/core/src/main/java/org/springframework/ws/server/EndpointMapping.java @@ -19,9 +19,9 @@ package org.springframework.ws.server; import org.springframework.ws.context.MessageContext; /** - * Interface to be implemented by objects that define a mapping between message requests and endpoint objects. + * Defines a mapping between message requests and endpoint objects. *
- * This class can be implemented by application developers, although this is not necessary, as + * This class can be implemented by application developers, although this is not always necessary, as *PayloadRootQNameEndpointMapping and SoapActionEndpointMapping are included.
*
* HandlerMapping implementations can support mapped interceptors but do not have to. An endpoint will always be wrapped
@@ -45,12 +45,12 @@ public interface EndpointMapping {
* so that endpoints are not constrained in any way. For example, a EndpointAdapter could be written to
* allow another framework's endpoint objects to be used.
*
- * Returns null if no match was found. This is not an error. The MessageDispatcher will
+ * Returns null if no match was found. This is by design. The MessageDispatcher will
* query all registered EndpointMapping beans to find a match, and only decide there is an error if
* none can find an endpoint.
*
* @return a HandlerExecutionChain instance containing endpoint object and any interceptors, or null if
- * no mapping found
+ * no mapping is found
* @throws Exception if there is an internal error
*/
EndpointInvocationChain getEndpoint(MessageContext messageContext) throws Exception;