@Override
    public void handle(final String target, final Request baseRequest,
      final HttpServletRequest request, final HttpServletResponse response) {
      responseMappingLock.readLock().lock();
      try {
        if (!regexSet.matches(target)) {
          response.setStatus(HttpServletResponse.SC_NOT_FOUND);
          return;
        }
        responseMapping.entrySet().stream().filter(e -> Pattern.matches(e.getKey(), target))
          .findAny().map(Map.Entry::getValue).orElseThrow(() -> noMatchFound(target))
          .accept(target, response);
      } finally {
        responseMappingLock.readLock().unlock();
      }
    }
Retrieve the service URI for this service.
hbase-it/src/test/java/org/apache/hadoop/hbase/MockHttpApiRule.java