Fix operations{Json,Xml}GET definition
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / jaxrs / JaxRsRestconf.java
index 3ee648af7e11d1c49fab26e3829a69e22caba334..f7e3d50cd51c748ac8e2bf9b5faf87d8ef2dc2b0 100644 (file)
@@ -588,7 +588,8 @@ public final class JaxRsRestconf {
     @GET
     @Path("/operations/{operation:.+}")
     @Produces({ MediaTypes.APPLICATION_YANG_DATA_JSON, MediaType.APPLICATION_JSON })
-    public void operationsJsonGET(@PathParam("operation") final JaxRsApiPath operation, final AsyncResponse ar) {
+    public void operationsJsonGET(@PathParam("operation") final JaxRsApiPath operation,
+            @Suspended final AsyncResponse ar) {
         completeOperationsGet(server.operationsGET(operation.apiPath), ar, OperationsGetResult::toJSON);
     }
 
@@ -618,7 +619,8 @@ public final class JaxRsRestconf {
     @GET
     @Path("/operations/{operation:.+}")
     @Produces({ MediaTypes.APPLICATION_YANG_DATA_XML, MediaType.APPLICATION_XML, MediaType.TEXT_XML })
-    public void operationsXmlGET(@PathParam("operation") final JaxRsApiPath operation, final AsyncResponse ar) {
+    public void operationsXmlGET(@PathParam("operation") final JaxRsApiPath operation,
+            @Suspended final AsyncResponse ar) {
         completeOperationsXmlGet(server.operationsGET(operation.apiPath), ar);
     }