A couple of compile glitches
This commit is contained in:
parent
5a9fa4e549
commit
f3f5c570b1
|
@ -107,9 +107,10 @@ public class FhirServerConfig extends BaseJavaConfigDstu3 {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This interceptor adds some pretty syntax highlighting in responses when a browser is detected
|
* This interceptor adds some pretty syntax highlighting in responses when a browser is detected
|
||||||
|
* @return
|
||||||
*/
|
*/
|
||||||
@Bean(autowire = Autowire.BY_TYPE)
|
@Bean(autowire = Autowire.BY_TYPE)
|
||||||
public IServerInterceptor responseHighlighterInterceptor() {
|
public ResponseHighlighterInterceptor responseHighlighterInterceptor() {
|
||||||
ResponseHighlighterInterceptor retVal = new ResponseHighlighterInterceptor();
|
ResponseHighlighterInterceptor retVal = new ResponseHighlighterInterceptor();
|
||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
|
|
|
@ -158,8 +158,8 @@
|
||||||
<reporting>
|
<reporting>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupid>org.apache.maven.plugins</groupid>
|
||||||
<artifactId>maven-project-info-reports-plugin</artifactId>
|
<artifactid>maven-project-info-reports-plugin</artifactid>
|
||||||
<configuration>
|
<configuration>
|
||||||
<skip>true</skip>
|
<skip>true</skip>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
@ -78,9 +78,10 @@ public class FhirServerConfigR4 extends BaseJavaConfigR4 {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This interceptor adds some pretty syntax highlighting in responses when a browser is detected
|
* This interceptor adds some pretty syntax highlighting in responses when a browser is detected
|
||||||
|
* @return
|
||||||
*/
|
*/
|
||||||
@Bean(autowire = Autowire.BY_TYPE)
|
@Bean(autowire = Autowire.BY_TYPE)
|
||||||
public IServerInterceptor responseHighlighterInterceptor() {
|
public ResponseHighlighterInterceptor responseHighlighterInterceptor() {
|
||||||
ResponseHighlighterInterceptor retVal = new ResponseHighlighterInterceptor();
|
ResponseHighlighterInterceptor retVal = new ResponseHighlighterInterceptor();
|
||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1643,7 +1643,7 @@ public class RestfulServer extends HttpServlet implements IRestfulServer<Servlet
|
||||||
* @deprecated As of HAPI FHIR 3.8.0, use {@link #getInterceptorService()} to access the interceptor service. You can register and unregister interceptors using this service.
|
* @deprecated As of HAPI FHIR 3.8.0, use {@link #getInterceptorService()} to access the interceptor service. You can register and unregister interceptors using this service.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public void unregisterInterceptor(IServerInterceptor theInterceptor) {
|
public void unregisterInterceptor(Object theInterceptor) {
|
||||||
Validate.notNull(theInterceptor, "Interceptor can not be null");
|
Validate.notNull(theInterceptor, "Interceptor can not be null");
|
||||||
getInterceptorService().unregisterInterceptor(theInterceptor);
|
getInterceptorService().unregisterInterceptor(theInterceptor);
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,13 +47,13 @@ public class ServeMediaResourceRawInterceptorTest {
|
||||||
@Before
|
@Before
|
||||||
public void before() {
|
public void before() {
|
||||||
myInterceptor = new ServeMediaResourceRawInterceptor();
|
myInterceptor = new ServeMediaResourceRawInterceptor();
|
||||||
ourServlet.registerInterceptor(myInterceptor);
|
ourServlet.getInterceptorService().registerInterceptor(myInterceptor);
|
||||||
}
|
}
|
||||||
|
|
||||||
@After
|
@After
|
||||||
public void after() {
|
public void after() {
|
||||||
ourNextResponse = null;
|
ourNextResponse = null;
|
||||||
ourServlet.unregisterInterceptor(myInterceptor);
|
ourServlet.getInterceptorService().unregisterInterceptor(myInterceptor);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue