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