hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/web/ozShell/Handler.java
protected URI verifyURI(String uri) throws URISyntaxException,
      OzoneException {
    if ((uri == null) || uri.isEmpty()) {
      throw new OzoneRestClientException(
          "Ozone URI is needed to execute this command.");
    }
    URIBuilder ozoneURI = new URIBuilder(uri);

    if (ozoneURI.getPort() == 0) {
      ozoneURI.setPort(Shell.DEFAULT_OZONE_PORT);
    }
    return ozoneURI.build();
  }
/**
   * verifies user provided URI.
   *
   * @param uri - UriString
   * @return URI
   * @throws URISyntaxException
   * @throws OzoneException
   */
verifies user provided URI.
@param uri - UriString
@return URI
@throws URISyntaxException
@throws OzoneException
verifies user provided URI . @param uri - UriString @return URI @throws URISyntaxException @throws OzoneException
protected URI verifyURI(String uri) throws URISyntaxException,
      OzoneException {
    if ((uri == null) || uri.isEmpty()) {
      throw new OzoneRestClientException(
          "Ozone URI is needed to execute this command.");
    }
    URIBuilder ozoneURI = new URIBuilder(uri);
    if (ozoneURI.getPort() == 0) {
      ozoneURI.setPort(Shell.DEFAULT_OZONE_PORT);
    }
    return ozoneURI.build();
  }
protected URI verifyURI ( String uri ) throws URISyntaxException , OzoneException { if ( ( uri == null ) || uri . isEmpty ( ) ) { throw new OzoneRestClientException ( "Ozone URI is needed to execute this command." ) ; } URIBuilder ozoneURI = new URIBuilder ( uri ) ; if ( ozoneURI . getPort ( ) == 0 ) { ozoneURI . setPort ( Shell . DEFAULT_OZONE_PORT ) ; } return ozoneURI . build ( ) ; }
verifies user provided URI.
verifies user provided URI .