summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/java/org/openecomp/sdc/be/distribution/servlet/DistributionCatalogServlet.java
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-be/src/main/java/org/openecomp/sdc/be/distribution/servlet/DistributionCatalogServlet.java')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/distribution/servlet/DistributionCatalogServlet.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/distribution/servlet/DistributionCatalogServlet.java b/catalog-be/src/main/java/org/openecomp/sdc/be/distribution/servlet/DistributionCatalogServlet.java
index 8c0041af9a..5ed0719f90 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/distribution/servlet/DistributionCatalogServlet.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/distribution/servlet/DistributionCatalogServlet.java
@@ -74,13 +74,14 @@ import io.swagger.annotations.ApiResponses;
public class DistributionCatalogServlet extends BeGenericServlet {
private static Logger log = LoggerFactory.getLogger(DistributionCatalogServlet.class.getName());
+ @Context
+ private HttpServletRequest request;
// *******************************************************
// Download (GET) artifacts
// **********************************************************/
/**
*
- * @param request
* @param requestId
* @param instanceIdHeader
* @param accept
@@ -105,7 +106,7 @@ public class DistributionCatalogServlet extends BeGenericServlet {
@ApiResponse(code = 404, message = "Specified artifact is not found - SVC4505"),
@ApiResponse(code = 405, message = "Method Not Allowed: Invalid HTTP method type used (PUT,DELETE,POST will be rejected) - POL4050"),
@ApiResponse(code = 500, message = "The GET request failed either due to internal SDC problem or Cambria Service failure. ECOMP Component should continue the attempts to get the needed information - POL5000")})
- public Response downloadServiceArtifact(@Context final HttpServletRequest request,
+ public Response downloadServiceArtifact(
@ApiParam(value = "X-ECOMP-RequestID header", required = false)@HeaderParam(value = Constants.X_ECOMP_REQUEST_ID_HEADER) String requestId,
@ApiParam(value = "X-ECOMP-InstanceID header", required = true)@HeaderParam(value = Constants.X_ECOMP_INSTANCE_ID_HEADER) final String instanceIdHeader,
@ApiParam(value = "Determines the format of the body of the response", required = false)@HeaderParam(value = Constants.ACCEPT_HEADER) String accept,
@@ -158,7 +159,6 @@ public class DistributionCatalogServlet extends BeGenericServlet {
/**
*
- * @param request
* @param requestId
* @param instanceIdHeader
* @param accept
@@ -186,7 +186,7 @@ public class DistributionCatalogServlet extends BeGenericServlet {
@ApiResponse(code = 404, message = "Specified artifact is not found - SVC4505"),
@ApiResponse(code = 405, message = "Method Not Allowed: Invalid HTTP method type used (PUT,DELETE,POST will be rejected) - POL4050"),
@ApiResponse(code = 500, message = "The GET request failed either due to internal SDC problem or Cambria Service failure. ECOMP Component should continue the attempts to get the needed information - POL5000")})
- public Response downloadResourceArtifact(@Context final HttpServletRequest request,
+ public Response downloadResourceArtifact(
@ApiParam(value = "X-ECOMP-RequestID header", required = false)@HeaderParam(value = Constants.X_ECOMP_REQUEST_ID_HEADER) String requestId,
@ApiParam(value = "X-ECOMP-InstanceID header", required = true)@HeaderParam(value = Constants.X_ECOMP_INSTANCE_ID_HEADER) final String instanceIdHeader,
@ApiParam(value = "Determines the format of the body of the response", required = false)@HeaderParam(value = Constants.ACCEPT_HEADER) String accept,
@@ -241,7 +241,6 @@ public class DistributionCatalogServlet extends BeGenericServlet {
/**
*
- * @param request
* @param requestId
* @param instanceIdHeader
* @param accept
@@ -268,7 +267,7 @@ public class DistributionCatalogServlet extends BeGenericServlet {
@ApiResponse(code = 404, message = "Specified artifact is not found - SVC4505"),
@ApiResponse(code = 405, message = "Method Not Allowed: Invalid HTTP method type used (PUT,DELETE,POST will be rejected) - POL4050"),
@ApiResponse(code = 500, message = "The GET request failed either due to internal SDC problem or Cambria Service failure. ECOMP Component should continue the attempts to get the needed information - POL5000")})
- public Response downloadResourceInstanceArtifact(@Context final HttpServletRequest request,
+ public Response downloadResourceInstanceArtifact(
@ApiParam(value = "X-ECOMP-RequestID header", required = false)@HeaderParam(value = Constants.X_ECOMP_REQUEST_ID_HEADER) String requestId,
@ApiParam(value = "X-ECOMP-InstanceID header", required = true)@HeaderParam(value = Constants.X_ECOMP_INSTANCE_ID_HEADER) final String instanceIdHeader,
@ApiParam(value = "Determines the format of the body of the response", required = false)@HeaderParam(value = Constants.ACCEPT_HEADER) String accept,