code: @Override
      public String getBaseForRequest() {
          try {
              return new URL(getUriInfo().getBaseUri().toURL(), getResourceType().getSimpleName()).toExternalForm();
          }
          catch (final Exception e) {
              // cannot happen
              return null;
          }
      }
docs: The base for request for a resource provider has the following form:</br>
  {@link AbstractJaxRsResourceProvider#getBaseForServer()
  getBaseForServer()} + "/" +
  {@link AbstractJaxRsResourceProvider#getResourceType() getResourceType()}
  .{@link java.lang.Class#getSimpleName() getSimpleName()}