This commit is contained in:
Arjen Poutsma
2007-06-14 22:55:22 +00:00
parent b7d8f2d051
commit ebfd2088ba

View File

@@ -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 <code>SoapEndpointInvocationChain</code> 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 {