From ebfd2088bacc576a2e08eb36d24a24b52db7bd9f Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Thu, 14 Jun 2007 22:55:22 +0000 Subject: [PATCH] --- .../SoapActionAnnotationMethodEndpointMapping.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core-tiger/src/main/java/org/springframework/ws/soap/server/endpoint/mapping/SoapActionAnnotationMethodEndpointMapping.java b/core-tiger/src/main/java/org/springframework/ws/soap/server/endpoint/mapping/SoapActionAnnotationMethodEndpointMapping.java index a8efbc0b..18150e02 100644 --- a/core-tiger/src/main/java/org/springframework/ws/soap/server/endpoint/mapping/SoapActionAnnotationMethodEndpointMapping.java +++ b/core-tiger/src/main/java/org/springframework/ws/soap/server/endpoint/mapping/SoapActionAnnotationMethodEndpointMapping.java @@ -51,6 +51,8 @@ public class SoapActionAnnotationMethodEndpointMapping extends AbstractAnnotatio private String[] actorsOrRoles; + private boolean isUltimateReceiver = true; + public final void setActorOrRole(String actorOrRole) { Assert.notNull(actorOrRole, "actorOrRole must not be null"); actorsOrRoles = new String[]{actorOrRole}; @@ -61,6 +63,10 @@ public class SoapActionAnnotationMethodEndpointMapping extends AbstractAnnotatio this.actorsOrRoles = actorsOrRoles; } + public final void setUltimateReceiver(boolean ultimateReceiver) { + isUltimateReceiver = ultimateReceiver; + } + /** * Creates a new SoapEndpointInvocationChain based on the given endpoint, and the set interceptors, and * actors/roles. @@ -74,7 +80,7 @@ public class SoapActionAnnotationMethodEndpointMapping extends AbstractAnnotatio protected final EndpointInvocationChain createEndpointInvocationChain(MessageContext messageContext, Object endpoint, EndpointInterceptor[] interceptors) { - return new SoapEndpointInvocationChain(endpoint, interceptors, actorsOrRoles); + return new SoapEndpointInvocationChain(endpoint, interceptors, actorsOrRoles, isUltimateReceiver); } protected String getLookupKeyForMessage(MessageContext messageContext) throws Exception {