tvaultapi/src/main/java/com/tmobile/cso/vault/api/service/SSLCertificateService.java
private boolean checkAppDetailsAvailable(String appName, String token) {
		 String certPath =  TVaultConstants.TMO_APP_METADATA_PATH + "/" + appName;
			Response response = new Response();
			boolean isDataAvailable = true;
			
			try {
					response = reqProcessor.process("/read", "{\"path\":\"" + certPath + "\"}", token);
					
			} catch (Exception e) {
				log.error(
						JSONUtil.getJSON(
								ImmutableMap.<String, String> builder()
										.put(LogMessage.USER,
												ThreadLocalContext.getCurrentMap().get(LogMessage.USER))
										.put(LogMessage.ACTION,
												String.format("Exception = [%s] =  Message [%s]",
														Arrays.toString(e.getStackTrace()), response.getResponse()))
										.build()));				
			}
			if (!HttpStatus.OK.equals(response.getHttpstatus())) {
				isDataAvailable = false;
			}
			return isDataAvailable;
	 }
/**
     * Method to check application metadata details is already available for given application
     * @param appName
     * @param token
     * @return
     */
Method to check application metadata details is already available for given application
@param appName
@param token
@return
Method to check application metadata details is already available for given application @param appName @param token @return
private boolean checkAppDetailsAvailable(String appName, String token) {
		 String certPath =  TVaultConstants.TMO_APP_METADATA_PATH + "/" + appName;
			Response response = new Response();
			boolean isDataAvailable = true;
			try {
					response = reqProcessor.process("/read", "{\"path\":\"" + certPath + "\"}", token);
			} catch (Exception e) {
				log.error(
						JSONUtil.getJSON(
								ImmutableMap.<String, String> builder()
										.put(LogMessage.USER,
												ThreadLocalContext.getCurrentMap().get(LogMessage.USER))
										.put(LogMessage.ACTION,
												String.format("Exception = [%s] =  Message [%s]",
														Arrays.toString(e.getStackTrace()), response.getResponse()))
										.build()));				
			}
			if (!HttpStatus.OK.equals(response.getHttpstatus())) {
				isDataAvailable = false;
			}
			return isDataAvailable;
	 }
private boolean checkAppDetailsAvailable ( String appName , String token ) { String certPath = TVaultConstants . TMO_APP_METADATA_PATH + "/" + appName ; Response response = new Response ( ) ; boolean isDataAvailable = true ; try { response = reqProcessor . process ( "/read" , "{\"path\":\"" + certPath + "\"}" , token ) ; } catch ( Exception e ) { log . error ( JSONUtil . getJSON ( ImmutableMap . < String , String > builder ( ) . put ( LogMessage . USER , ThreadLocalContext . getCurrentMap ( ) . get ( LogMessage . USER ) ) . put ( LogMessage . ACTION , String . format ( "Exception = [%s] =  Message [%s]" , Arrays . toString ( e . getStackTrace ( ) ) , response . getResponse ( ) ) ) . build ( ) ) ) ; } if ( ! HttpStatus . OK . equals ( response . getHttpstatus ( ) ) ) { isDataAvailable = false ; } return isDataAvailable ; }
Method to check application metadata details is already available for given application
 @param appName
 @param token
 @return
Method to check application metadata details is already available for given application @param appName @param token @return