Search in sources :

Example 16 with ApiException

use of org.onap.so.apihandlerinfra.exceptions.ApiException in project so by onap.

the class CreateEcompOperationalEnvironmentTest method testProcessException.

@Test
public void testProcessException() throws JsonProcessingException {
    wireMockServer.stubFor(put(urlPathMatching("/aai/" + AAIVersion.LATEST + "/cloud-infrastructure/operational-environments/.*")).willReturn(aResponse().withHeader("Content-Type", "application/json").withStatus(HttpStatus.SC_ACCEPTED)));
    wireMockServer.stubFor(post(urlPathMatching("/events/.*")).willReturn(aResponse().withHeader("Content-Type", "application/json").withStatus(HttpStatus.SC_NOT_FOUND)));
    ErrorLoggerInfo errorLoggerInfo = new ErrorLoggerInfo.Builder(MessageEnum.APIH_GENERAL_EXCEPTION, ErrorCode.DataError).build();
    ValidateException expectedException = new ValidateException.Builder("Could not publish DMaap", HttpStatus.SC_BAD_REQUEST, ErrorNumbers.SVC_BAD_PARAMETER).errorInfo(errorLoggerInfo).build();
    InfraActiveRequests iar = new InfraActiveRequests();
    String uuid = UUID.randomUUID().toString();
    iar.setRequestId(uuid);
    iar.setOperationalEnvName("myOpEnv");
    iar.setRequestScope("create");
    iar.setRequestStatus("PENDING");
    iar.setRequestAction("UNKNOWN");
    wireMockServer.stubFor(get(urlPathEqualTo("/infraActiveRequests/" + uuid)).willReturn(aResponse().withHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON).withBody(mapper.writeValueAsString(iar)).withStatus(HttpStatus.SC_OK)));
    wireMockServer.stubFor(post(urlPathEqualTo("/infraActiveRequests/")).withRequestBody(containing("{\"requestId\":\"" + uuid + "\",\"requestStatus\":\"FAILED\",\"statusMessage\":\"FAILURE, operationalEnvironmentId - operationalEnvId; Error message:")).willReturn(aResponse().withHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON).withStatus(HttpStatus.SC_OK)));
    try {
        createEcompOpEn.execute(uuid, getCloudOrchestrationRequest());
    } catch (ApiException e) {
        assertThat(e, sameBeanAs((ApiException) expectedException).ignoring("cause"));
    }
}
Also used : ErrorLoggerInfo(org.onap.so.apihandlerinfra.logging.ErrorLoggerInfo) ValidateException(org.onap.so.apihandlerinfra.exceptions.ValidateException) InfraActiveRequests(org.onap.so.db.request.beans.InfraActiveRequests) ApiException(org.onap.so.apihandlerinfra.exceptions.ApiException) BaseTest(org.onap.so.apihandlerinfra.BaseTest) Test(org.junit.Test)

Example 17 with ApiException

use of org.onap.so.apihandlerinfra.exceptions.ApiException in project so by onap.

the class E2EServiceInstances method runCompareModelBPMWorkflow.

private Response runCompareModelBPMWorkflow(CompareModelsRequest e2eCompareModelReq, String requestJSON, String requestId, Action action, String version) throws ApiException {
    // Define RecipeLookupResult info here instead of query DB for efficiency
    String workflowUrl = "/mso/async/services/CompareModelofE2EServiceInstance";
    int recipeTimeout = 180;
    String bpmnRequest = null;
    RequestClientParameter postParam = null;
    try {
        JSONObject jjo = new JSONObject(requestJSON);
        bpmnRequest = jjo.toString();
        String serviceId = instanceIdMap.get(SERVICE_ID);
        String serviceType = e2eCompareModelReq.getServiceType();
        postParam = new RequestClientParameter.Builder().setRequestId(requestId).setBaseVfModule(false).setRecipeTimeout(recipeTimeout).setRequestAction(action.name()).setServiceInstanceId(serviceId).setServiceType(serviceType).setRequestDetails(bpmnRequest).setALaCarte(false).build();
    } catch (Exception e) {
        Response resp = msoRequest.buildServiceErrorResponse(HttpStatus.SC_BAD_GATEWAY, MsoException.ServiceException, "Failed calling bpmn " + e.getMessage(), ErrorNumbers.SVC_NO_SERVER_RESOURCES, null, version);
        logger.error("", MessageEnum.APIH_BPEL_COMMUNICATE_ERROR, MSO_PROP_APIHANDLER_INFRA, "", "", ErrorCode.AvailabilityError, "Exception while communicate with BPMN engine", e);
        logger.debug(END_OF_THE_TRANSACTION + resp.getEntity().toString());
        return resp;
    }
    return postRequest(workflowUrl, postParam, version);
}
Also used : CamundaResponse(org.onap.so.apihandler.camundabeans.CamundaResponse) GetE2EServiceInstanceResponse(org.onap.so.apihandlerinfra.e2eserviceinstancebeans.GetE2EServiceInstanceResponse) Response(javax.ws.rs.core.Response) ApiResponse(io.swagger.v3.oas.annotations.responses.ApiResponse) JSONObject(org.json.JSONObject) ResponseBuilder(org.onap.so.apihandler.common.ResponseBuilder) AAIFluentTypeBuilder(org.onap.aaiclient.client.generated.fluentbuilders.AAIFluentTypeBuilder) RequestClientParameter(org.onap.so.apihandler.common.RequestClientParameter) ApiException(org.onap.so.apihandlerinfra.exceptions.ApiException) BPMNFailureException(org.onap.so.apihandlerinfra.exceptions.BPMNFailureException) ValidateException(org.onap.so.apihandlerinfra.exceptions.ValidateException) IOException(java.io.IOException)

Example 18 with ApiException

use of org.onap.so.apihandlerinfra.exceptions.ApiException in project so by onap.

the class E2EServiceInstances method Activate5GSliceServiceInstances.

private Response Activate5GSliceServiceInstances(String requestJSON, Action action, HashMap<String, String> instanceIdMap, String version) throws ApiException {
    // TODO should be a new one or the same service instance Id
    E2ESliceServiceActivateRequest e2eActReq;
    ObjectMapper mapper = new ObjectMapper();
    try {
        e2eActReq = mapper.readValue(requestJSON, E2ESliceServiceActivateRequest.class);
    } catch (Exception e) {
        logger.debug("Mapping of request to JSON object failed : ", e);
        Response response = msoRequest.buildServiceErrorResponse(HttpStatus.SC_BAD_REQUEST, MsoException.ServiceException, "Mapping of request to JSON object failed.  " + e.getMessage(), ErrorNumbers.SVC_BAD_PARAMETER, null, version);
        logger.error(LoggingAnchor.FOUR, MessageEnum.APIH_REQUEST_VALIDATION_ERROR.toString(), MSO_PROP_APIHANDLER_INFRA, ErrorCode.SchemaError.getValue(), requestJSON, e);
        logger.debug(END_OF_THE_TRANSACTION + response.getEntity());
        return response;
    }
    String requestId = UUID.randomUUID().toString();
    RecipeLookupResult recipeLookupResult;
    try {
        // TODO Get the service template model version uuid from AAI.
        String modelVersionId = null;
        AAIResourcesClient client = new AAIResourcesClient();
        AAIResourceUri url = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.business().customer(e2eActReq.getGlobalSubscriberId()).serviceSubscription(e2eActReq.getServiceType()).serviceInstance(instanceIdMap.get(SERVICE_ID)));
        Optional<ServiceInstance> serviceInstanceOpt = client.get(ServiceInstance.class, url);
        if (serviceInstanceOpt.isPresent()) {
            modelVersionId = serviceInstanceOpt.get().getModelVersionId();
        }
        recipeLookupResult = getServiceInstanceOrchestrationURI(modelVersionId, action);
    } catch (Exception e) {
        logger.error(MessageEnum.APIH_DB_ACCESS_EXC.toString(), MSO_PROP_APIHANDLER_INFRA, ErrorCode.AvailabilityError.getValue(), "Exception while communciate with Catalog DB", e);
        Response response = msoRequest.buildServiceErrorResponse(HttpStatus.SC_NOT_FOUND, MsoException.ServiceException, "No communication to catalog DB " + e.getMessage(), ErrorNumbers.SVC_NO_SERVER_RESOURCES, null, version);
        msoRequest.createErrorRequestRecord(Status.FAILED, requestId, "Exception while communciate with " + "Catalog DB", action, ModelType.service.name(), requestJSON, null, null);
        logger.debug(END_OF_THE_TRANSACTION + response.getEntity());
        return response;
    }
    if (recipeLookupResult == null) {
        logger.error(LoggingAnchor.FOUR, MessageEnum.APIH_DB_ATTRIBUTE_NOT_FOUND.toString(), MSO_PROP_APIHANDLER_INFRA, ErrorCode.DataError.getValue(), "No recipe found in DB");
        Response response = msoRequest.buildServiceErrorResponse(HttpStatus.SC_NOT_FOUND, MsoException.ServiceException, "Recipe does not exist in catalog DB", ErrorNumbers.SVC_GENERAL_SERVICE_ERROR, null, version);
        msoRequest.createErrorRequestRecord(Status.FAILED, requestId, "Recipe does not exist in catalog DB", action, ModelType.service.name(), requestJSON, null, null);
        logger.debug(END_OF_THE_TRANSACTION + response.getEntity());
        return response;
    }
    String bpmnRequest = null;
    RequestClientParameter postParam = null;
    try {
        JSONObject jjo = new JSONObject(requestJSON);
        jjo.put("operationId", requestId);
        bpmnRequest = jjo.toString();
        String serviceId = instanceIdMap.get(SERVICE_ID);
        String operationType = instanceIdMap.get("operationType");
        String serviceInstanceType = e2eActReq.getServiceType();
        postParam = new RequestClientParameter.Builder().setRequestId(requestId).setBaseVfModule(false).setRecipeTimeout(recipeLookupResult.getRecipeTimeout()).setRequestAction(action.name()).setServiceInstanceId(serviceId).setOperationType(operationType).setServiceType(serviceInstanceType).setRequestDetails(bpmnRequest).setApiVersion(version).setALaCarte(false).setRecipeParamXsd(recipeLookupResult.getRecipeParamXsd()).build();
    } catch (Exception e) {
        Response resp = msoRequest.buildServiceErrorResponse(HttpStatus.SC_BAD_GATEWAY, MsoException.ServiceException, "Failed calling bpmn " + e.getMessage(), ErrorNumbers.SVC_NO_SERVER_RESOURCES, null, version);
        logger.error(LoggingAnchor.FOUR, MessageEnum.APIH_BPEL_COMMUNICATE_ERROR.toString(), MSO_PROP_APIHANDLER_INFRA, ErrorCode.AvailabilityError.getValue(), "Exception while communicate with BPMN engine");
        logger.debug("End of the transaction, the final response is: " + resp.getEntity());
        return resp;
    }
    return postRequest(recipeLookupResult.getOrchestrationURI(), postParam, version);
}
Also used : E2ESliceServiceActivateRequest(org.onap.so.apihandlerinfra.e2eserviceinstancebeans.E2ESliceServiceActivateRequest) AAIResourceUri(org.onap.aaiclient.client.aai.entities.uri.AAIResourceUri) ServiceInstance(org.onap.aai.domain.yang.v16.ServiceInstance) ApiException(org.onap.so.apihandlerinfra.exceptions.ApiException) BPMNFailureException(org.onap.so.apihandlerinfra.exceptions.BPMNFailureException) ValidateException(org.onap.so.apihandlerinfra.exceptions.ValidateException) IOException(java.io.IOException) RequestClientParameter(org.onap.so.apihandler.common.RequestClientParameter) CamundaResponse(org.onap.so.apihandler.camundabeans.CamundaResponse) GetE2EServiceInstanceResponse(org.onap.so.apihandlerinfra.e2eserviceinstancebeans.GetE2EServiceInstanceResponse) Response(javax.ws.rs.core.Response) ApiResponse(io.swagger.v3.oas.annotations.responses.ApiResponse) JSONObject(org.json.JSONObject) AAIResourcesClient(org.onap.aaiclient.client.aai.AAIResourcesClient) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper)

Example 19 with ApiException

use of org.onap.so.apihandlerinfra.exceptions.ApiException in project so by onap.

the class E2EServiceInstances method scaleE2EserviceInstances.

private Response scaleE2EserviceInstances(String requestJSON, Action action, String version) throws ApiException {
    String requestId = UUID.randomUUID().toString();
    E2EServiceInstanceScaleRequest e2eScaleReq;
    ObjectMapper mapper = new ObjectMapper();
    try {
        e2eScaleReq = mapper.readValue(requestJSON, E2EServiceInstanceScaleRequest.class);
    } catch (Exception e) {
        logger.debug("Mapping of request to JSON object failed : ", e);
        Response response = msoRequest.buildServiceErrorResponse(HttpStatus.SC_BAD_REQUEST, MsoException.ServiceException, "Mapping of request to JSON object failed.  " + e.getMessage(), ErrorNumbers.SVC_BAD_PARAMETER, null, version);
        logger.error(LoggingAnchor.FOUR, MessageEnum.APIH_REQUEST_VALIDATION_ERROR.toString(), MSO_PROP_APIHANDLER_INFRA, ErrorCode.SchemaError.getValue(), requestJSON, e);
        logger.debug(END_OF_THE_TRANSACTION + response.getEntity());
        return response;
    }
    RecipeLookupResult recipeLookupResult;
    try {
        // TODO Get the service template model version uuid from AAI.
        recipeLookupResult = getServiceInstanceOrchestrationURI(null, action);
    } catch (Exception e) {
        logger.error(LoggingAnchor.FOUR, MessageEnum.APIH_DB_ACCESS_EXC.toString(), MSO_PROP_APIHANDLER_INFRA, ErrorCode.AvailabilityError.getValue(), "Exception while communciate with Catalog DB", e);
        Response response = msoRequest.buildServiceErrorResponse(HttpStatus.SC_NOT_FOUND, MsoException.ServiceException, "No communication to catalog DB " + e.getMessage(), ErrorNumbers.SVC_NO_SERVER_RESOURCES, null, version);
        msoRequest.createErrorRequestRecord(Status.FAILED, requestId, "No communication to catalog DB " + e.getMessage(), action, ModelType.service.name(), requestJSON, null, null);
        logger.debug(END_OF_THE_TRANSACTION + response.getEntity());
        return response;
    }
    if (recipeLookupResult == null) {
        logger.error(LoggingAnchor.FOUR, MessageEnum.APIH_DB_ATTRIBUTE_NOT_FOUND.toString(), MSO_PROP_APIHANDLER_INFRA, ErrorCode.DataError.getValue(), "No recipe found in DB");
        Response response = msoRequest.buildServiceErrorResponse(HttpStatus.SC_NOT_FOUND, MsoException.ServiceException, "Recipe does not exist in catalog DB", ErrorNumbers.SVC_GENERAL_SERVICE_ERROR, null, version);
        msoRequest.createErrorRequestRecord(Status.FAILED, requestId, "No recipe found in DB", action, ModelType.service.name(), requestJSON, null, null);
        logger.debug(END_OF_THE_TRANSACTION + response.getEntity());
        return response;
    }
    String bpmnRequest = null;
    RequestClientParameter postParam = null;
    try {
        JSONObject jjo = new JSONObject(requestJSON);
        jjo.put("operationId", requestId);
        bpmnRequest = jjo.toString();
        String serviceId = instanceIdMap.get(SERVICE_ID);
        String serviceInstanceType = e2eScaleReq.getService().getServiceType();
        postParam = new RequestClientParameter.Builder().setRequestId(requestId).setBaseVfModule(false).setRecipeTimeout(recipeLookupResult.getRecipeTimeout()).setRequestAction(action.name()).setServiceInstanceId(serviceId).setServiceType(serviceInstanceType).setRequestDetails(bpmnRequest).setApiVersion(version).setALaCarte(false).setRecipeParamXsd(recipeLookupResult.getRecipeParamXsd()).build();
    } catch (Exception e) {
        Response resp = msoRequest.buildServiceErrorResponse(HttpStatus.SC_BAD_GATEWAY, MsoException.ServiceException, "Failed creating bpmnRequest " + e.getMessage(), ErrorNumbers.SVC_NO_SERVER_RESOURCES, null, version);
        logger.error(LoggingAnchor.FOUR, MessageEnum.APIH_BPEL_COMMUNICATE_ERROR.toString(), MSO_PROP_APIHANDLER_INFRA, ErrorCode.AvailabilityError.getValue(), "Exception while creating bpmnRequest", e);
        logger.debug(END_OF_THE_TRANSACTION + resp.getEntity());
        return resp;
    }
    return postRequest(recipeLookupResult.getOrchestrationURI(), postParam, version);
}
Also used : CamundaResponse(org.onap.so.apihandler.camundabeans.CamundaResponse) GetE2EServiceInstanceResponse(org.onap.so.apihandlerinfra.e2eserviceinstancebeans.GetE2EServiceInstanceResponse) Response(javax.ws.rs.core.Response) ApiResponse(io.swagger.v3.oas.annotations.responses.ApiResponse) JSONObject(org.json.JSONObject) ResponseBuilder(org.onap.so.apihandler.common.ResponseBuilder) AAIFluentTypeBuilder(org.onap.aaiclient.client.generated.fluentbuilders.AAIFluentTypeBuilder) E2EServiceInstanceScaleRequest(org.onap.so.apihandlerinfra.e2eserviceinstancebeans.E2EServiceInstanceScaleRequest) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) ApiException(org.onap.so.apihandlerinfra.exceptions.ApiException) BPMNFailureException(org.onap.so.apihandlerinfra.exceptions.BPMNFailureException) ValidateException(org.onap.so.apihandlerinfra.exceptions.ValidateException) IOException(java.io.IOException) RequestClientParameter(org.onap.so.apihandler.common.RequestClientParameter)

Example 20 with ApiException

use of org.onap.so.apihandlerinfra.exceptions.ApiException in project so by onap.

the class E2EServiceInstances method deleteE2EserviceInstances.

private Response deleteE2EserviceInstances(String requestJSON, Action action, HashMap<String, String> instanceIdMap, String version) throws ApiException {
    // TODO should be a new one or the same service instance Id
    E2EServiceInstanceDeleteRequest e2eDelReq;
    ObjectMapper mapper = new ObjectMapper();
    try {
        e2eDelReq = mapper.readValue(requestJSON, E2EServiceInstanceDeleteRequest.class);
    } catch (Exception e) {
        logger.debug("Mapping of request to JSON object failed : ", e);
        Response response = msoRequest.buildServiceErrorResponse(HttpStatus.SC_BAD_REQUEST, MsoException.ServiceException, "Mapping of request to JSON object failed.  " + e.getMessage(), ErrorNumbers.SVC_BAD_PARAMETER, null, version);
        logger.error(LoggingAnchor.FOUR, MessageEnum.APIH_REQUEST_VALIDATION_ERROR.toString(), MSO_PROP_APIHANDLER_INFRA, ErrorCode.SchemaError.getValue(), requestJSON, e);
        logger.debug(END_OF_THE_TRANSACTION + response.getEntity());
        return response;
    }
    String requestId = UUID.randomUUID().toString();
    RecipeLookupResult recipeLookupResult;
    try {
        // TODO Get the service template model version uuid from AAI.
        String modelVersionId = null;
        AAIResourcesClient client = new AAIResourcesClient();
        AAIResourceUri url = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.business().customer(e2eDelReq.getGlobalSubscriberId()).serviceSubscription(e2eDelReq.getServiceType()).serviceInstance(instanceIdMap.get(SERVICE_ID)));
        Optional<ServiceInstance> serviceInstanceOpt = client.get(ServiceInstance.class, url);
        if (serviceInstanceOpt.isPresent()) {
            modelVersionId = serviceInstanceOpt.get().getModelVersionId();
        }
        recipeLookupResult = getServiceInstanceOrchestrationURI(modelVersionId, action);
    } catch (Exception e) {
        logger.error(MessageEnum.APIH_DB_ACCESS_EXC.toString(), MSO_PROP_APIHANDLER_INFRA, ErrorCode.AvailabilityError.getValue(), "Exception while communciate with Catalog DB", e);
        Response response = msoRequest.buildServiceErrorResponse(HttpStatus.SC_NOT_FOUND, MsoException.ServiceException, "No communication to catalog DB " + e.getMessage(), ErrorNumbers.SVC_NO_SERVER_RESOURCES, null, version);
        msoRequest.createErrorRequestRecord(Status.FAILED, requestId, "Exception while communciate with " + "Catalog DB", action, ModelType.service.name(), requestJSON, null, null);
        logger.debug(END_OF_THE_TRANSACTION + response.getEntity());
        return response;
    }
    if (recipeLookupResult == null) {
        logger.error(LoggingAnchor.FOUR, MessageEnum.APIH_DB_ATTRIBUTE_NOT_FOUND.toString(), MSO_PROP_APIHANDLER_INFRA, ErrorCode.DataError.getValue(), "No recipe found in DB");
        Response response = msoRequest.buildServiceErrorResponse(HttpStatus.SC_NOT_FOUND, MsoException.ServiceException, "Recipe does not exist in catalog DB", ErrorNumbers.SVC_GENERAL_SERVICE_ERROR, null, version);
        msoRequest.createErrorRequestRecord(Status.FAILED, requestId, "Recipe does not exist in catalog DB", action, ModelType.service.name(), requestJSON, null, null);
        logger.debug(END_OF_THE_TRANSACTION + response.getEntity());
        return response;
    }
    String bpmnRequest = null;
    RequestClientParameter clientParam = null;
    try {
        JSONObject jjo = new JSONObject(requestJSON);
        jjo.put("operationId", requestId);
        bpmnRequest = jjo.toString();
        String serviceId = instanceIdMap.get(SERVICE_ID);
        String serviceInstanceType = e2eDelReq.getServiceType();
        clientParam = new RequestClientParameter.Builder().setRequestId(requestId).setBaseVfModule(false).setRecipeTimeout(recipeLookupResult.getRecipeTimeout()).setRequestAction(action.name()).setServiceInstanceId(serviceId).setServiceType(serviceInstanceType).setRequestDetails(bpmnRequest).setApiVersion(version).setALaCarte(false).setRecipeParamXsd(recipeLookupResult.getRecipeParamXsd()).build();
    } catch (Exception e) {
        Response resp = msoRequest.buildServiceErrorResponse(HttpStatus.SC_BAD_GATEWAY, MsoException.ServiceException, "Failed calling bpmn " + e.getMessage(), ErrorNumbers.SVC_NO_SERVER_RESOURCES, null, version);
        logger.error(LoggingAnchor.FOUR, MessageEnum.APIH_BPEL_COMMUNICATE_ERROR.toString(), MSO_PROP_APIHANDLER_INFRA, ErrorCode.AvailabilityError.getValue(), "Exception while communicate with BPMN engine");
        logger.debug("End of the transaction, the final response is: " + resp.getEntity());
        return resp;
    }
    return postRequest(recipeLookupResult.getOrchestrationURI(), clientParam, version);
}
Also used : ResponseBuilder(org.onap.so.apihandler.common.ResponseBuilder) AAIFluentTypeBuilder(org.onap.aaiclient.client.generated.fluentbuilders.AAIFluentTypeBuilder) AAIResourceUri(org.onap.aaiclient.client.aai.entities.uri.AAIResourceUri) ServiceInstance(org.onap.aai.domain.yang.v16.ServiceInstance) ApiException(org.onap.so.apihandlerinfra.exceptions.ApiException) BPMNFailureException(org.onap.so.apihandlerinfra.exceptions.BPMNFailureException) ValidateException(org.onap.so.apihandlerinfra.exceptions.ValidateException) IOException(java.io.IOException) RequestClientParameter(org.onap.so.apihandler.common.RequestClientParameter) CamundaResponse(org.onap.so.apihandler.camundabeans.CamundaResponse) GetE2EServiceInstanceResponse(org.onap.so.apihandlerinfra.e2eserviceinstancebeans.GetE2EServiceInstanceResponse) Response(javax.ws.rs.core.Response) ApiResponse(io.swagger.v3.oas.annotations.responses.ApiResponse) JSONObject(org.json.JSONObject) E2EServiceInstanceDeleteRequest(org.onap.so.apihandlerinfra.e2eserviceinstancebeans.E2EServiceInstanceDeleteRequest) AAIResourcesClient(org.onap.aaiclient.client.aai.AAIResourcesClient) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper)

Aggregations

ApiException (org.onap.so.apihandlerinfra.exceptions.ApiException)34 ValidateException (org.onap.so.apihandlerinfra.exceptions.ValidateException)28 IOException (java.io.IOException)23 ErrorLoggerInfo (org.onap.so.apihandlerinfra.logging.ErrorLoggerInfo)18 InfraActiveRequests (org.onap.so.db.request.beans.InfraActiveRequests)18 BPMNFailureException (org.onap.so.apihandlerinfra.exceptions.BPMNFailureException)16 CamundaResponse (org.onap.so.apihandler.camundabeans.CamundaResponse)15 RequestClientParameter (org.onap.so.apihandler.common.RequestClientParameter)14 ResponseBuilder (org.onap.so.apihandler.common.ResponseBuilder)14 Response (javax.ws.rs.core.Response)13 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)12 ApiResponse (io.swagger.v3.oas.annotations.responses.ApiResponse)12 RequestDbFailureException (org.onap.so.apihandlerinfra.exceptions.RequestDbFailureException)10 ValidationException (org.onap.so.exceptions.ValidationException)10 ServiceInstancesRequest (org.onap.so.serviceinstancebeans.ServiceInstancesRequest)8 JSONObject (org.json.JSONObject)7 GetE2EServiceInstanceResponse (org.onap.so.apihandlerinfra.e2eserviceinstancebeans.GetE2EServiceInstanceResponse)7 JsonProcessingException (com.fasterxml.jackson.core.JsonProcessingException)6 Operation (io.swagger.v3.oas.annotations.Operation)4 Transactional (javax.transaction.Transactional)4