diff --git a/jaxrs/src/main/java/org/ow2/authzforce/rest/pdp/jaxrs/JaxrsPdpResource.java b/jaxrs/src/main/java/org/ow2/authzforce/rest/pdp/jaxrs/JaxrsPdpResource.java index 732e657..e4ae834 100644 --- a/jaxrs/src/main/java/org/ow2/authzforce/rest/pdp/jaxrs/JaxrsPdpResource.java +++ b/jaxrs/src/main/java/org/ow2/authzforce/rest/pdp/jaxrs/JaxrsPdpResource.java @@ -53,9 +53,9 @@ public JaxrsPdpResource(final PdpEngineConfiguration pdpConf) throws IllegalArgu final PdpBundle pdpBundle = new PdpBundle(pdpConf); this.xmlPdpEngineAdapter = pdpBundle.getXacmlJaxbIoAdapter(); final PdpEngineInoutAdapter defaultJsonPdpEngineAdapter = pdpBundle.getDefaultJsonIoAdapter(); - this.defaultJsonRequestEvalFunction = defaultJsonPdpEngineAdapter == null? json -> {throw new NotSupportedException();}: json -> defaultJsonPdpEngineAdapter.evaluate(json); + this.defaultJsonRequestEvalFunction = defaultJsonPdpEngineAdapter == null? json -> {throw new NotSupportedException();}: defaultJsonPdpEngineAdapter::evaluate; final PdpEngineInoutAdapter xacmlJsonPdpEngineAdapter = pdpBundle.getXacmlJsonIoAdapter(); - this.xacmlJsonRequestEvalFunction = xacmlJsonPdpEngineAdapter == null? json -> {throw new NotSupportedException();}: json -> xacmlJsonPdpEngineAdapter.evaluate(json); + this.xacmlJsonRequestEvalFunction = xacmlJsonPdpEngineAdapter == null? json -> {throw new NotSupportedException();}: xacmlJsonPdpEngineAdapter::evaluate; } /**