public class ServiceRestUtils extends BaseRestUtils
acceptHeaderData, acceptJsonHeader, acceptOctetHeader, acceptOctetStream, authorizationHeader, authorizationPrefixString, ecomp, PRODUCT_COMPONENT_TYPE, RESOURCE_COMPONENT_TYPE, RESTRICTED_OPERATION, SERVICE_COMPONENT_TYPE, STATUS_CODE_ALREADY_EXISTS, STATUS_CODE_COMPONENT_NAME_EXCEEDS_LIMIT, STATUS_CODE_CREATED, STATUS_CODE_DELETE, STATUS_CODE_GET_SUCCESS, STATUS_CODE_IMPORT_SUCCESS, STATUS_CODE_INVALID_CONTENT, STATUS_CODE_MISSING_COMPONENT_NAME, STATUS_CODE_MISSING_DATA, STATUS_CODE_MISSING_INFORMATION, STATUS_CODE_NOT_FOUND, STATUS_CODE_RESTRICTED_ACCESS, STATUS_CODE_RESTRICTED_OPERATION, STATUS_CODE_SUCCESS, STATUS_CODE_SUCCESS_DELETE, STATUS_CODE_SUCCESS_NO_CONTENT, STATUS_CODE_UNSUPPORTED_ERROR, STATUS_CODE_UPDATE_SUCCESS, SUCCESS_MESSAGE
Constructor and Description |
---|
ServiceRestUtils() |
addAuthorizeHeader, encodeUrlForDownload, prepareHeadersMap, prepareHeadersMap, sendDelete, sendGet, sendGet, sendGetAndRemoveHeaders, sendPost, sendPost, sendPost, sendPut
checkCreateResponse, checkDeleteResponse, checkErrorCode, checkErrorMessageResponse, checkErrorResponse, checkStatusCode, checkSuccess
public static RestResponse deleteService(String serviceName, String version, User sdncModifierDetails) throws IOException
IOException
public static RestResponse deleteServiceById(String serviceId, String userId) throws IOException
IOException
public static void deleteMarkedServices(String userId) throws IOException
IOException
public static RestResponse createService(ServiceReqDetails service, User user) throws Exception
Exception
public static RestResponse updateService(ServiceReqDetails service, User user) throws Exception
Exception
public static RestResponse getService(ServiceReqDetails serviceReqDetails, User sdncModifierDetails) throws IOException
IOException
public static RestResponse getService(String serviceId, User sdncModifierDetails) throws IOException
IOException
public static RestResponse getServiceByNameAndVersion(User sdncModifierDetails, String serviceName, String serviceVersion) throws IOException
IOException
public static RestResponse getServiceFromUrl(String url, User sdncModifierDetails, boolean isCached) throws IOException
IOException
public static Map<String,String> prepareHeadersMap(User sdncModifierDetails, boolean isCached)
public static RestResponse approveServiceDistribution(String serviceId, String userId) throws Exception
Exception
public static RestResponse rejectServiceDistribution(String serviceId, String userId) throws Exception
Exception
public static RestResponse rejectServiceDistribution(String serviceId, String userId, String comment) throws Exception
Exception
public static RestResponse getServiceLatestVersionList(User sdncModifierDetails) throws IOException
IOException
public static RestResponse createServiceByHttpMethod(ServiceReqDetails serviceDetails, User sdncModifierDetails, String method, String urls) throws IOException
IOException
public static RestResponse deleteServiceByNameAndVersion(User sdncModifierDetails, String serviceName, String serviceVersion) throws IOException
IOException
public static RestResponse getFollowed(User user) throws Exception
Exception
public static org.json.simple.JSONArray getListArrayFromRestResponse(RestResponse restResponse)
Copyright © 2017. All rights reserved.