enhance constructor, so an existing InterceptorService could be passed in (#1749)
This commit is contained in:
parent
a786756169
commit
9ace4889bc
|
@ -149,8 +149,12 @@ public class RestfulServer extends HttpServlet implements IRestfulServer<Servlet
|
||||||
* Constructor
|
* Constructor
|
||||||
*/
|
*/
|
||||||
public RestfulServer(FhirContext theCtx) {
|
public RestfulServer(FhirContext theCtx) {
|
||||||
|
this(theCtx, new InterceptorService());
|
||||||
|
}
|
||||||
|
|
||||||
|
public RestfulServer(FhirContext theCtx, IInterceptorService theInterceptorService) {
|
||||||
myFhirContext = theCtx;
|
myFhirContext = theCtx;
|
||||||
setInterceptorService(new InterceptorService());
|
setInterceptorService(theInterceptorService);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addContentLocationHeaders(RequestDetails theRequest, HttpServletResponse servletResponse, MethodOutcome response, String resourceName) {
|
private void addContentLocationHeaders(RequestDetails theRequest, HttpServletResponse servletResponse, MethodOutcome response, String resourceName) {
|
||||||
|
|
Loading…
Reference in New Issue