/** * validate HDFSResource Site and File Path * @param site * @param filePath * @throws Exception */ public void validate( String site, String filePath ) throws Exception { if (isNullOrEmpty(site)) throw new Exception("Invalid Request Received ... Site is Empty Or Null.."); if (isNullOrEmpty(filePath)) throw new Exception("Invalid Request Received ... file/Directory Path is Empty Or Null.."); }
/** * validate HDFSResource Site and File Path * @param site * @param filePath * @throws Exception */ public void validate( String site, String filePath ) throws Exception { if (isNullOrEmpty(site)) throw new Exception("Invalid Request Received ... Site is Empty Or Null.."); if (isNullOrEmpty(filePath)) throw new Exception("Invalid Request Received ... file/Directory Path is Empty Or Null.."); }