1 package ca.uhn.fhir.rest.server.interceptor;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 import javax.servlet.http.HttpServletRequest;
24 import javax.servlet.http.HttpServletResponse;
25
26 import ca.uhn.fhir.model.api.Bundle;
27 import ca.uhn.fhir.model.api.IResource;
28 import ca.uhn.fhir.model.api.TagList;
29 import ca.uhn.fhir.rest.method.RequestDetails;
30 import ca.uhn.fhir.rest.server.exceptions.AuthenticationException;
31
32
33
34
35
36 public class InterceptorAdapter implements IServerInterceptor {
37
38 @Override
39 public boolean incomingRequestPreProcessed(HttpServletRequest theRequest, HttpServletResponse theResponse) {
40 return true;
41 }
42
43 @Override
44 public boolean incomingRequestPostProcessed(RequestDetails theRequestDetails, HttpServletRequest theRequest, HttpServletResponse theResponse) throws AuthenticationException {
45 return true;
46 }
47
48 @Override
49 public boolean outgoingResponse(RequestDetails theRequestDetails, TagList theResponseObject, HttpServletRequest theServletRequest, HttpServletResponse theServletResponse) throws AuthenticationException {
50 return true;
51 }
52
53 @Override
54 public boolean outgoingResponse(RequestDetails theRequestDetails, Bundle theResponseObject, HttpServletRequest theServletRequest, HttpServletResponse theServletResponse) throws AuthenticationException {
55 return true;
56 }
57
58 @Override
59 public boolean outgoingResponse(RequestDetails theRequestDetails, IResource theResponseObject, HttpServletRequest theServletRequest, HttpServletResponse theServletResponse) throws AuthenticationException {
60 return true;
61 }
62
63 @Override
64 public boolean outgoingResponse(RequestDetails theRequestDetails, HttpServletRequest theServletRequest, HttpServletResponse theServletResponse) throws AuthenticationException {
65 return true;
66 }
67
68 }