1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.openehealth.ipf.platform.camel.ihe.mllp.iti21;
17
18 import org.apache.camel.Endpoint;
19 import org.apache.camel.Exchange;
20 import org.openehealth.ipf.platform.camel.ihe.core.InterceptorFactorySupport;
21 import org.openehealth.ipf.platform.camel.ihe.core.InterceptorSupport;
22 import org.openehealth.ipf.platform.camel.ihe.mllp.core.MllpAuthenticationFailure;
23
24 public class AuthenticationInterceptor extends InterceptorSupport<Endpoint> {
25
26 @Override
27 public void process(Exchange exchange) throws Exception {
28 throw new MllpAuthenticationFailure("test");
29 }
30
31 public static class Factory extends InterceptorFactorySupport<Endpoint, AuthenticationInterceptor> {
32 public Factory() {
33 super(AuthenticationInterceptor.class);
34 }
35 }
36 }