@Test public void buildRequestUrl_trimPath() { String baseUrl = "http: String path = "/some/path"; assertEquals("http: }
static String buildRequestUrl(String baseUrl, String path) { return baseUrl.replaceFirst("/$", "") + "/" + path.replaceFirst("^/", ""); }
RestService implements Configurable { static String buildRequestUrl(String baseUrl, String path) { return baseUrl.replaceFirst("/$", "") + "/" + path.replaceFirst("^/", ""); } }
RestService implements Configurable { static String buildRequestUrl(String baseUrl, String path) { return baseUrl.replaceFirst("/$", "") + "/" + path.replaceFirst("^/", ""); } RestService(UrlList baseUrls);  RestService(List<String> baseUrls);  RestService(String baseUrlConfig); }
RestService implements Configurable { static String buildRequestUrl(String baseUrl, String path) { return baseUrl.replaceFirst("/$", "") + "/" + path.replaceFirst("^/", ""); } RestService(UrlList baseUrls);  RestService(List<String> baseUrls);  RestService(String baseUrlConfig); @Override void configure(Map<String, ?> configs); void setSslSocketFactory(SSLSocketFactory sslSocketFactory); void setHostnameVerifier(HostnameVerifier hostnameVerifier); Schema lookUpSubjectVersion(String schemaString, String subject); Schema lookUpSubjectVersion(RegisterSchemaRequest registerSchemaRequest,
                                     String subject); Schema lookUpSubjectVersion(Map<String, String> requestProperties,
                                     RegisterSchemaRequest registerSchemaRequest,
                                     String subject); Schema lookUpSubjectVersion(String schemaString,
                                     String subject,
                                     boolean lookupDeletedSchema); Schema lookUpSubjectVersion(String schemaString,
                                     String schemaType,
                                     List<SchemaReference> references,
                                     String subject,
                                     boolean lookupDeletedSchema); Schema lookUpSubjectVersion(Map<String, String> requestProperties,
                                     RegisterSchemaRequest registerSchemaRequest,
                                     String subject,
                                     boolean lookupDeletedSchema); int registerSchema(String schemaString, String subject); int registerSchema(String schemaString, String schemaType,
                            List<SchemaReference> references, String subject); int registerSchema(String schemaString, String subject, int version, int id); int registerSchema(String schemaString, String schemaType,
                            List<SchemaReference> references, String subject, int version, int id); int registerSchema(RegisterSchemaRequest registerSchemaRequest, String subject); int registerSchema(Map<String, String> requestProperties,
                            RegisterSchemaRequest registerSchemaRequest, String subject); List<String> testCompatibility(String schemaString, String subject, String version); List<String> testCompatibility(String schemaString,
                                        String schemaType,
                                        List<SchemaReference> references,
                                        String subject,
                                        String version,
                                        boolean verbose); List<String> testCompatibility(RegisterSchemaRequest registerSchemaRequest,
                                        String subject,
                                        String version,
                                        boolean verbose); List<String> testCompatibility(Map<String, String> requestProperties,
                                        RegisterSchemaRequest registerSchemaRequest,
                                        String subject,
                                        String version,
                                        boolean verbose); ConfigUpdateRequest updateCompatibility(String compatibility, String subject); ConfigUpdateRequest updateConfig(ConfigUpdateRequest configUpdateRequest,
                                          String subject); ConfigUpdateRequest updateConfig(Map<String, String> requestProperties,
                                          ConfigUpdateRequest configUpdateRequest,
                                          String subject); Config getConfig(String subject); Config getConfig(Map<String, String> requestProperties,
                          String subject); ModeUpdateRequest setMode(String mode); ModeUpdateRequest setMode(String mode, String subject); ModeUpdateRequest setMode(Map<String, String> requestProperties,
                                   ModeUpdateRequest modeUpdateRequest,
                                   String subject); ModeGetResponse getMode(); ModeGetResponse getMode(String subject); List<Schema> getSchemas(
      String subjectPrefix,
      boolean lookupDeletedSchema,
      boolean latestOnly); List<Schema> getSchemas(Map<String, String> requestProperties,
      String subjectPrefix,
      boolean lookupDeletedSchema,
      boolean latestOnly,
      Integer offset,
      Integer limit); SchemaString getId(int id); SchemaString getId(Map<String, String> requestProperties,
                            int id); SchemaString getId(int id, boolean fetchMaxId); SchemaString getId(Map<String, String> requestProperties,
                            int id, boolean fetchMaxId); List<String> getSchemaTypes(); List<String> getSchemaTypes(Map<String, String> requestProperties); Schema getVersion(String subject, int version); Schema getVersion(String subject, int version, boolean lookupDeletedSchema); Schema getVersion(Map<String, String> requestProperties,
                           String subject, int version); Schema getVersion(Map<String, String> requestProperties,
                           String subject, int version, boolean lookupDeletedSchema); Schema getLatestVersion(String subject); Schema getLatestVersion(Map<String, String> requestProperties,
                                 String subject); String getVersionSchemaOnly(String subject, int version); String getLatestVersionSchemaOnly(String subject); List<Integer> getReferencedBy(String subject, int version); List<Integer> getReferencedBy(Map<String, String> requestProperties,
                                       String subject, int version); List<Integer> getAllVersions(String subject); List<Integer> getAllVersions(Map<String, String> requestProperties,
                                      String subject); List<Integer> getAllVersions(Map<String, String> requestProperties,
                                      String subject,
                                      boolean lookupDeletedSchema); List<String> getAllSubjects(); List<String> getAllSubjects(boolean deletedSubjects); List<String> getAllSubjects(Map<String, String> requestProperties); List<String> getAllSubjectsById(int id); List<String> getAllSubjectsById(Map<String, String> requestProperties,
                                         int id); List<String> getAllSubjectsById(Map<String, String> requestProperties,
                                         int id,
                                         boolean lookupDeleted); List<SubjectVersion> getAllVersionsById(int id); List<SubjectVersion> getAllVersionsById(Map<String, String> requestProperties,
                                                 int id); List<SubjectVersion> getAllVersionsById(Map<String, String> requestProperties,
                                                 int id,
                                                 boolean lookupDeleted); Integer deleteSchemaVersion(
      Map<String, String> requestProperties,
      String subject,
      String version
  ); Integer deleteSchemaVersion(
          Map<String, String> requestProperties,
          String subject,
          String version,
          boolean permanentDelete
  ); List<Integer> deleteSubject(
      Map<String, String> requestProperties,
      String subject
  ); List<Integer> deleteSubject(
          Map<String, String> requestProperties,
          String subject,
          boolean permanentDelete
  ); ServerClusterId getClusterId(); ServerClusterId getClusterId(Map<String, String> requestProperties); UrlList getBaseUrls(); void setBasicAuthCredentialProvider(
      BasicAuthCredentialProvider basicAuthCredentialProvider); void setBearerAuthCredentialProvider(
      BearerAuthCredentialProvider bearerAuthCredentialProvider); void setHttpHeaders(Map<String, String> httpHeaders); void setProxy(String proxyHost, int proxyPort); }
RestService implements Configurable { static String buildRequestUrl(String baseUrl, String path) { return baseUrl.replaceFirst("/$", "") + "/" + path.replaceFirst("^/", ""); } RestService(UrlList baseUrls);  RestService(List<String> baseUrls);  RestService(String baseUrlConfig); @Override void configure(Map<String, ?> configs); void setSslSocketFactory(SSLSocketFactory sslSocketFactory); void setHostnameVerifier(HostnameVerifier hostnameVerifier); Schema lookUpSubjectVersion(String schemaString, String subject); Schema lookUpSubjectVersion(RegisterSchemaRequest registerSchemaRequest,
                                     String subject); Schema lookUpSubjectVersion(Map<String, String> requestProperties,
                                     RegisterSchemaRequest registerSchemaRequest,
                                     String subject); Schema lookUpSubjectVersion(String schemaString,
                                     String subject,
                                     boolean lookupDeletedSchema); Schema lookUpSubjectVersion(String schemaString,
                                     String schemaType,
                                     List<SchemaReference> references,
                                     String subject,
                                     boolean lookupDeletedSchema); Schema lookUpSubjectVersion(Map<String, String> requestProperties,
                                     RegisterSchemaRequest registerSchemaRequest,
                                     String subject,
                                     boolean lookupDeletedSchema); int registerSchema(String schemaString, String subject); int registerSchema(String schemaString, String schemaType,
                            List<SchemaReference> references, String subject); int registerSchema(String schemaString, String subject, int version, int id); int registerSchema(String schemaString, String schemaType,
                            List<SchemaReference> references, String subject, int version, int id); int registerSchema(RegisterSchemaRequest registerSchemaRequest, String subject); int registerSchema(Map<String, String> requestProperties,
                            RegisterSchemaRequest registerSchemaRequest, String subject); List<String> testCompatibility(String schemaString, String subject, String version); List<String> testCompatibility(String schemaString,
                                        String schemaType,
                                        List<SchemaReference> references,
                                        String subject,
                                        String version,
                                        boolean verbose); List<String> testCompatibility(RegisterSchemaRequest registerSchemaRequest,
                                        String subject,
                                        String version,
                                        boolean verbose); List<String> testCompatibility(Map<String, String> requestProperties,
                                        RegisterSchemaRequest registerSchemaRequest,
                                        String subject,
                                        String version,
                                        boolean verbose); ConfigUpdateRequest updateCompatibility(String compatibility, String subject); ConfigUpdateRequest updateConfig(ConfigUpdateRequest configUpdateRequest,
                                          String subject); ConfigUpdateRequest updateConfig(Map<String, String> requestProperties,
                                          ConfigUpdateRequest configUpdateRequest,
                                          String subject); Config getConfig(String subject); Config getConfig(Map<String, String> requestProperties,
                          String subject); ModeUpdateRequest setMode(String mode); ModeUpdateRequest setMode(String mode, String subject); ModeUpdateRequest setMode(Map<String, String> requestProperties,
                                   ModeUpdateRequest modeUpdateRequest,
                                   String subject); ModeGetResponse getMode(); ModeGetResponse getMode(String subject); List<Schema> getSchemas(
      String subjectPrefix,
      boolean lookupDeletedSchema,
      boolean latestOnly); List<Schema> getSchemas(Map<String, String> requestProperties,
      String subjectPrefix,
      boolean lookupDeletedSchema,
      boolean latestOnly,
      Integer offset,
      Integer limit); SchemaString getId(int id); SchemaString getId(Map<String, String> requestProperties,
                            int id); SchemaString getId(int id, boolean fetchMaxId); SchemaString getId(Map<String, String> requestProperties,
                            int id, boolean fetchMaxId); List<String> getSchemaTypes(); List<String> getSchemaTypes(Map<String, String> requestProperties); Schema getVersion(String subject, int version); Schema getVersion(String subject, int version, boolean lookupDeletedSchema); Schema getVersion(Map<String, String> requestProperties,
                           String subject, int version); Schema getVersion(Map<String, String> requestProperties,
                           String subject, int version, boolean lookupDeletedSchema); Schema getLatestVersion(String subject); Schema getLatestVersion(Map<String, String> requestProperties,
                                 String subject); String getVersionSchemaOnly(String subject, int version); String getLatestVersionSchemaOnly(String subject); List<Integer> getReferencedBy(String subject, int version); List<Integer> getReferencedBy(Map<String, String> requestProperties,
                                       String subject, int version); List<Integer> getAllVersions(String subject); List<Integer> getAllVersions(Map<String, String> requestProperties,
                                      String subject); List<Integer> getAllVersions(Map<String, String> requestProperties,
                                      String subject,
                                      boolean lookupDeletedSchema); List<String> getAllSubjects(); List<String> getAllSubjects(boolean deletedSubjects); List<String> getAllSubjects(Map<String, String> requestProperties); List<String> getAllSubjectsById(int id); List<String> getAllSubjectsById(Map<String, String> requestProperties,
                                         int id); List<String> getAllSubjectsById(Map<String, String> requestProperties,
                                         int id,
                                         boolean lookupDeleted); List<SubjectVersion> getAllVersionsById(int id); List<SubjectVersion> getAllVersionsById(Map<String, String> requestProperties,
                                                 int id); List<SubjectVersion> getAllVersionsById(Map<String, String> requestProperties,
                                                 int id,
                                                 boolean lookupDeleted); Integer deleteSchemaVersion(
      Map<String, String> requestProperties,
      String subject,
      String version
  ); Integer deleteSchemaVersion(
          Map<String, String> requestProperties,
          String subject,
          String version,
          boolean permanentDelete
  ); List<Integer> deleteSubject(
      Map<String, String> requestProperties,
      String subject
  ); List<Integer> deleteSubject(
          Map<String, String> requestProperties,
          String subject,
          boolean permanentDelete
  ); ServerClusterId getClusterId(); ServerClusterId getClusterId(Map<String, String> requestProperties); UrlList getBaseUrls(); void setBasicAuthCredentialProvider(
      BasicAuthCredentialProvider basicAuthCredentialProvider); void setBearerAuthCredentialProvider(
      BearerAuthCredentialProvider bearerAuthCredentialProvider); void setHttpHeaders(Map<String, String> httpHeaders); void setProxy(String proxyHost, int proxyPort); static final Map<String, String> DEFAULT_REQUEST_PROPERTIES; }