From fca3df032749845ee3df3b79ec1a8319bdab8857 Mon Sep 17 00:00:00 2001 From: Tareq Abedrabbo Date: Thu, 3 Feb 2011 21:37:39 +0000 Subject: [PATCH] SWS-684 - updated the interceptors example --- src/docbkx/server.xml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/docbkx/server.xml b/src/docbkx/server.xml index c3b49918..c4781231 100644 --- a/src/docbkx/server.xml +++ b/src/docbkx/server.xml @@ -1270,9 +1270,11 @@ public class AnnotationOrderEndpoint { - + -]]> + + +]]> Here, we define one 'global' interceptor (MyGlobalInterceptor) that intercepts all request and responses. We also define an interceptor that only applies to XML messages that have the @@ -1280,7 +1282,9 @@ public class AnnotationOrderEndpoint { Here, we could have defined a localPart attribute in addition to the namespaceUri to further limit the messages the interceptor applies to. Finally, we define two interceptors that apply when the message has a - http://www.example.com/SoapAction SOAP action. + http://www.example.com/SoapAction SOAP action. Notice how the second interceptor + is actually a reference to a bean definition outside of the <interceptors> + element. You can use bean references anywhere inside the <interceptors> element. Interceptors must implement the