public class RestService extends Object implements Closeable, org.apache.kafka.common.Configurable
| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
DEFAULT_REQUEST_PROPERTIES |
static String |
X_FORWARD_HEADER |
| Constructor and Description |
|---|
RestService(List<String> baseUrls) |
RestService(String baseUrlConfig) |
RestService(String baseUrlConfig,
boolean isForward) |
RestService(UrlList baseUrls) |
RestService(UrlList baseUrls,
boolean isForward) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpURLConnection |
buildConnection(URL url,
String method,
Map<String,String> requestProperties) |
void |
close() |
void |
configure(Map<String,?> configs) |
Config |
deleteConfig(Map<String,String> requestProperties,
String subject) |
Config |
deleteConfig(String subject) |
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) |
Mode |
deleteSubjectMode(Map<String,String> requestProperties,
String subject) |
Mode |
deleteSubjectMode(String subject) |
List<String> |
getAllContexts() |
List<String> |
getAllContexts(Map<String,String> requestProperties) |
List<String> |
getAllContextsWithPagination(int limit,
int offset) |
List<String> |
getAllSubjects() |
List<String> |
getAllSubjects(boolean deletedSubjects) |
List<String> |
getAllSubjects(Map<String,String> requestProperties) |
List<String> |
getAllSubjects(Map<String,String> requestProperties,
String subjectPrefix,
boolean deletedSubjects) |
List<String> |
getAllSubjects(Map<String,String> requestProperties,
String subjectPrefix,
boolean deletedSubjects,
boolean deletedOnlySubjects) |
List<String> |
getAllSubjects(String subjectPrefix,
boolean deletedSubjects) |
List<String> |
getAllSubjectsById(int id) |
List<String> |
getAllSubjectsById(int id,
String subject) |
List<String> |
getAllSubjectsById(int id,
String subject,
boolean deleted) |
List<String> |
getAllSubjectsById(Map<String,String> requestProperties,
int id) |
List<String> |
getAllSubjectsById(Map<String,String> requestProperties,
int id,
String subject) |
List<String> |
getAllSubjectsById(Map<String,String> requestProperties,
int id,
String subject,
boolean lookupDeleted) |
List<String> |
getAllSubjectsByIdWithPagination(Map<String,String> requestProperties,
int id,
String subject,
boolean lookupDeleted,
int limit,
int offset) |
List<String> |
getAllSubjectsWithPagination(int offset,
int limit) |
List<String> |
getAllSubjectsWithPagination(Map<String,String> requestProperties,
int offset,
int limit) |
List<Integer> |
getAllVersions(Map<String,String> requestProperties,
String subject) |
List<Integer> |
getAllVersions(Map<String,String> requestProperties,
String subject,
boolean lookupDeletedSchema) |
List<Integer> |
getAllVersions(Map<String,String> requestProperties,
String subject,
boolean lookupDeletedSchema,
boolean lookupDeletedOnlySchema) |
List<Integer> |
getAllVersions(String subject) |
List<SubjectVersion> |
getAllVersionsById(int id) |
List<SubjectVersion> |
getAllVersionsById(int id,
String subject) |
List<SubjectVersion> |
getAllVersionsById(int id,
String subject,
boolean deleted) |
List<SubjectVersion> |
getAllVersionsById(Map<String,String> requestProperties,
int id) |
List<SubjectVersion> |
getAllVersionsById(Map<String,String> requestProperties,
int id,
String subject) |
List<SubjectVersion> |
getAllVersionsById(Map<String,String> requestProperties,
int id,
String subject,
boolean lookupDeleted) |
List<SubjectVersion> |
getAllVersionsByIdWithPagination(Map<String,String> requestProperties,
int id,
String subject,
boolean lookupDeleted,
int offset,
int limit) |
List<Integer> |
getAllVersionsWithPagination(Map<String,String> requestProperties,
String subject,
boolean lookupDeletedSchema,
int offset,
int limit) |
UrlList |
getBaseUrls() |
ServerClusterId |
getClusterId() |
ServerClusterId |
getClusterId(Map<String,String> requestProperties) |
Config |
getConfig(Map<String,String> requestProperties,
String subject) |
Config |
getConfig(Map<String,String> requestProperties,
String subject,
boolean defaultToGlobal) |
Config |
getConfig(String subject) |
List<String> |
getDeletedOnlySubjects(String subjectPrefix) |
List<Integer> |
getDeletedOnlyVersions(String subject) |
SchemaString |
getId(int id) |
SchemaString |
getId(int id,
boolean fetchMaxId) |
SchemaString |
getId(int id,
String subject) |
SchemaString |
getId(int id,
String subject,
boolean fetchMaxId) |
SchemaString |
getId(Map<String,String> requestProperties,
int id) |
SchemaString |
getId(Map<String,String> requestProperties,
int id,
String subject) |
SchemaString |
getId(Map<String,String> requestProperties,
int id,
String subject,
boolean fetchMaxId) |
SchemaString |
getId(Map<String,String> requestProperties,
int id,
String subject,
Set<String> findTags,
boolean fetchMaxId) |
SchemaString |
getId(Map<String,String> requestProperties,
int id,
String subject,
String format,
Set<String> findTags,
boolean fetchMaxId) |
Schema |
getLatestVersion(Map<String,String> requestProperties,
String subject) |
Schema |
getLatestVersion(Map<String,String> requestProperties,
String subject,
Set<String> findTags) |
Schema |
getLatestVersion(Map<String,String> requestProperties,
String subject,
String format,
Set<String> findTags) |
Schema |
getLatestVersion(String subject) |
String |
getLatestVersionSchemaOnly(String subject) |
Schema |
getLatestWithMetadata(Map<String,String> requestProperties,
String subject,
Map<String,String> metadata,
boolean lookupDeletedSchema) |
Schema |
getLatestWithMetadata(Map<String,String> requestProperties,
String subject,
Map<String,String> metadata,
String format,
boolean lookupDeletedSchema) |
Schema |
getLatestWithMetadata(String subject,
Map<String,String> metadata,
boolean lookupDeletedSchema) |
Mode |
getMode() |
Mode |
getMode(String subject) |
Mode |
getMode(String subject,
boolean defaultToGlobal) |
String |
getOnlySchemaById(int id) |
String |
getOnlySchemaById(Map<String,String> requestProperties,
int id,
String subject) |
List<Integer> |
getReferencedBy(Map<String,String> requestProperties,
String subject,
int version) |
List<Integer> |
getReferencedBy(String subject,
int version) |
List<Integer> |
getReferencedByWithPagination(String subject,
int version,
int offset,
int limit) |
SchemaRegistryServerVersion |
getSchemaRegistryServerVersion() |
List<ExtendedSchema> |
getSchemas(Map<String,String> requestProperties,
String subjectPrefix,
boolean includeAliases,
boolean lookupDeletedSchema,
boolean latestOnly,
String ruleType,
Integer offset,
Integer limit) |
List<Schema> |
getSchemas(Map<String,String> requestProperties,
String subjectPrefix,
boolean lookupDeletedSchema,
boolean latestOnly,
String ruleType,
Integer offset,
Integer limit) |
List<Schema> |
getSchemas(String subjectPrefix,
boolean lookupDeletedSchema,
boolean latestOnly) |
List<String> |
getSchemaTypes() |
List<String> |
getSchemaTypes(Map<String,String> requestProperties) |
Schema |
getVersion(Map<String,String> requestProperties,
String subject,
int version) |
Schema |
getVersion(Map<String,String> requestProperties,
String subject,
int version,
boolean lookupDeletedSchema) |
Schema |
getVersion(Map<String,String> requestProperties,
String subject,
int version,
String format,
boolean lookupDeletedSchema,
Set<String> findTags) |
Schema |
getVersion(String subject,
int version) |
Schema |
getVersion(String subject,
int version,
boolean lookupDeletedSchema) |
String |
getVersionSchemaOnly(String subject,
int version) |
<T> T |
httpRequest(String path,
String method,
byte[] requestBodyData,
Map<String,String> requestProperties,
com.fasterxml.jackson.core.type.TypeReference<T> responseFormat)
Send an HTTP request.
|
static boolean |
isRetriable(RestClientException e) |
Schema |
lookUpSubjectVersion(Map<String,String> requestProperties,
RegisterSchemaRequest registerSchemaRequest,
String subject,
boolean normalize,
boolean lookupDeletedSchema) |
Schema |
lookUpSubjectVersion(Map<String,String> requestProperties,
RegisterSchemaRequest registerSchemaRequest,
String subject,
boolean normalize,
String format,
boolean lookupDeletedSchema) |
Schema |
lookUpSubjectVersion(RegisterSchemaRequest registerSchemaRequest,
String subject,
boolean normalize,
boolean lookupDeletedSchema) |
Schema |
lookUpSubjectVersion(String schemaString,
String subject) |
Schema |
lookUpSubjectVersion(String schemaString,
String subject,
boolean lookupDeletedSchema) |
Schema |
lookUpSubjectVersion(String schemaString,
String subject,
boolean normalize,
boolean lookupDeletedSchema) |
Schema |
lookUpSubjectVersion(String schemaString,
String schemaType,
List<SchemaReference> references,
String subject,
boolean lookupDeletedSchema) |
Schema |
lookUpSubjectVersion(String schemaString,
String schemaType,
List<SchemaReference> references,
String subject,
boolean normalize,
boolean lookupDeletedSchema) |
RegisterSchemaResponse |
modifySchemaTags(Map<String,String> requestProperties,
TagSchemaRequest tagSchemaRequest,
String subject,
String version) |
RegisterSchemaResponse |
registerSchema(Map<String,String> requestProperties,
RegisterSchemaRequest registerSchemaRequest,
String subject,
boolean normalize) |
RegisterSchemaResponse |
registerSchema(Map<String,String> requestProperties,
RegisterSchemaRequest registerSchemaRequest,
String subject,
boolean normalize,
String format) |
RegisterSchemaResponse |
registerSchema(RegisterSchemaRequest registerSchemaRequest,
String subject,
boolean normalize) |
int |
registerSchema(String schemaString,
String subject) |
RegisterSchemaResponse |
registerSchema(String schemaString,
String subject,
boolean normalize) |
int |
registerSchema(String schemaString,
String subject,
int version,
int id) |
RegisterSchemaResponse |
registerSchema(String schemaString,
String subject,
int version,
int id,
boolean normalize) |
RegisterSchemaResponse |
registerSchema(String schemaString,
String schemaType,
List<SchemaReference> references,
String subject) |
RegisterSchemaResponse |
registerSchema(String schemaString,
String schemaType,
List<SchemaReference> references,
String subject,
boolean normalize) |
RegisterSchemaResponse |
registerSchema(String schemaString,
String schemaType,
List<SchemaReference> references,
String subject,
int version,
int id) |
RegisterSchemaResponse |
registerSchema(String schemaString,
String schemaType,
List<SchemaReference> references,
String subject,
int version,
int id,
boolean normalize) |
void |
setBasicAuthCredentialProvider(BasicAuthCredentialProvider basicAuthCredentialProvider) |
void |
setBearerAuthCredentialProvider(BearerAuthCredentialProvider bearerAuthCredentialProvider) |
void |
setHostnameVerifier(HostnameVerifier hostnameVerifier) |
void |
setHttpConnectTimeoutMs(int httpConnectTimeoutMs) |
void |
setHttpHeaders(Map<String,String> httpHeaders) |
void |
setHttpReadTimeoutMs(int httpReadTimeoutMs) |
ModeUpdateRequest |
setMode(Map<String,String> requestProperties,
ModeUpdateRequest modeUpdateRequest,
String subject,
boolean force)
On success, this api simply echoes the request in the response.
|
ModeUpdateRequest |
setMode(String mode) |
ModeUpdateRequest |
setMode(String mode,
String subject) |
ModeUpdateRequest |
setMode(String mode,
String subject,
boolean force) |
void |
setProxy(String proxyHost,
int proxyPort) |
void |
setSslSocketFactory(SSLSocketFactory sslSocketFactory) |
List<String> |
testCompatibility(Map<String,String> requestProperties,
RegisterSchemaRequest registerSchemaRequest,
String subject,
String version,
boolean normalize,
boolean verbose) |
List<String> |
testCompatibility(RegisterSchemaRequest registerSchemaRequest,
String subject,
String version,
boolean normalize,
boolean verbose) |
List<String> |
testCompatibility(String schemaString,
String subject,
boolean verbose) |
List<String> |
testCompatibility(String schemaString,
String schemaType,
List<SchemaReference> references,
String subject,
String version,
boolean verbose) |
List<String> |
testCompatibility(String schemaString,
String subject,
String version) |
ConfigUpdateRequest |
updateCompatibility(String compatibility,
String subject) |
ConfigUpdateRequest |
updateConfig(ConfigUpdateRequest configUpdateRequest,
String subject) |
ConfigUpdateRequest |
updateConfig(Map<String,String> requestProperties,
ConfigUpdateRequest configUpdateRequest,
String subject)
On success, this api simply echoes the request in the response.
|
public static final String X_FORWARD_HEADER
public RestService(UrlList baseUrls)
public RestService(String baseUrlConfig)
public RestService(String baseUrlConfig, boolean isForward)
public RestService(UrlList baseUrls, boolean isForward)
public void configure(Map<String,?> configs)
configure in interface org.apache.kafka.common.Configurablepublic void setSslSocketFactory(SSLSocketFactory sslSocketFactory)
public void setHostnameVerifier(HostnameVerifier hostnameVerifier)
public void setHttpConnectTimeoutMs(int httpConnectTimeoutMs)
public void setHttpReadTimeoutMs(int httpReadTimeoutMs)
protected HttpURLConnection buildConnection(URL url, String method, Map<String,String> requestProperties) throws IOException
IOExceptionpublic <T> T httpRequest(String path, String method, byte[] requestBodyData, Map<String,String> requestProperties, com.fasterxml.jackson.core.type.TypeReference<T> responseFormat) throws IOException, RestClientException
T - The type of the deserialized response to the HTTP request.path - The relative pathmethod - HTTP method ("GET", "POST", "PUT", etc.)requestBodyData - Bytes to be sent in the request body.requestProperties - HTTP header properties.responseFormat - Expected format of the response to the HTTP request.IOExceptionRestClientExceptionpublic static boolean isRetriable(RestClientException e)
public Schema lookUpSubjectVersion(String schemaString, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema lookUpSubjectVersion(String schemaString, String subject, boolean lookupDeletedSchema) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema lookUpSubjectVersion(String schemaString, String subject, boolean normalize, boolean lookupDeletedSchema) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema lookUpSubjectVersion(String schemaString, String schemaType, List<SchemaReference> references, String subject, boolean lookupDeletedSchema) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema lookUpSubjectVersion(String schemaString, String schemaType, List<SchemaReference> references, String subject, boolean normalize, boolean lookupDeletedSchema) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema lookUpSubjectVersion(RegisterSchemaRequest registerSchemaRequest, String subject, boolean normalize, boolean lookupDeletedSchema) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema lookUpSubjectVersion(Map<String,String> requestProperties, RegisterSchemaRequest registerSchemaRequest, String subject, boolean normalize, boolean lookupDeletedSchema) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema lookUpSubjectVersion(Map<String,String> requestProperties, RegisterSchemaRequest registerSchemaRequest, String subject, boolean normalize, String format, boolean lookupDeletedSchema) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic int registerSchema(String schemaString, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic RegisterSchemaResponse registerSchema(String schemaString, String subject, boolean normalize) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic RegisterSchemaResponse registerSchema(String schemaString, String schemaType, List<SchemaReference> references, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic RegisterSchemaResponse registerSchema(String schemaString, String schemaType, List<SchemaReference> references, String subject, boolean normalize) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic int registerSchema(String schemaString, String subject, int version, int id) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic RegisterSchemaResponse registerSchema(String schemaString, String subject, int version, int id, boolean normalize) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic RegisterSchemaResponse registerSchema(String schemaString, String schemaType, List<SchemaReference> references, String subject, int version, int id) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic RegisterSchemaResponse registerSchema(String schemaString, String schemaType, List<SchemaReference> references, String subject, int version, int id, boolean normalize) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic RegisterSchemaResponse registerSchema(RegisterSchemaRequest registerSchemaRequest, String subject, boolean normalize) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic RegisterSchemaResponse registerSchema(Map<String,String> requestProperties, RegisterSchemaRequest registerSchemaRequest, String subject, boolean normalize) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic RegisterSchemaResponse registerSchema(Map<String,String> requestProperties, RegisterSchemaRequest registerSchemaRequest, String subject, boolean normalize, String format) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic RegisterSchemaResponse modifySchemaTags(Map<String,String> requestProperties, TagSchemaRequest tagSchemaRequest, String subject, String version) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> testCompatibility(String schemaString, String subject, boolean verbose) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> testCompatibility(String schemaString, String subject, String version) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> testCompatibility(String schemaString, String schemaType, List<SchemaReference> references, String subject, String version, boolean verbose) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> testCompatibility(RegisterSchemaRequest registerSchemaRequest, String subject, String version, boolean normalize, boolean verbose) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> testCompatibility(Map<String,String> requestProperties, RegisterSchemaRequest registerSchemaRequest, String subject, String version, boolean normalize, boolean verbose) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic ConfigUpdateRequest updateCompatibility(String compatibility, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic ConfigUpdateRequest updateConfig(ConfigUpdateRequest configUpdateRequest, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic ConfigUpdateRequest updateConfig(Map<String,String> requestProperties, ConfigUpdateRequest configUpdateRequest, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Config getConfig(String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Config getConfig(Map<String,String> requestProperties, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Config getConfig(Map<String,String> requestProperties, String subject, boolean defaultToGlobal) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Config deleteConfig(String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Config deleteConfig(Map<String,String> requestProperties, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic ModeUpdateRequest setMode(String mode) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic ModeUpdateRequest setMode(String mode, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic ModeUpdateRequest setMode(String mode, String subject, boolean force) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic ModeUpdateRequest setMode(Map<String,String> requestProperties, ModeUpdateRequest modeUpdateRequest, String subject, boolean force) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Mode getMode() throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Mode getMode(String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Mode getMode(String subject, boolean defaultToGlobal) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Mode deleteSubjectMode(String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Mode deleteSubjectMode(Map<String,String> requestProperties, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<Schema> getSchemas(String subjectPrefix, boolean lookupDeletedSchema, boolean latestOnly) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<Schema> getSchemas(Map<String,String> requestProperties, String subjectPrefix, boolean lookupDeletedSchema, boolean latestOnly, String ruleType, Integer offset, Integer limit) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<ExtendedSchema> getSchemas(Map<String,String> requestProperties, String subjectPrefix, boolean includeAliases, boolean lookupDeletedSchema, boolean latestOnly, String ruleType, Integer offset, Integer limit) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic SchemaString getId(int id) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic SchemaString getId(int id, boolean fetchMaxId) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic SchemaString getId(int id, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic SchemaString getId(int id, String subject, boolean fetchMaxId) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic SchemaString getId(Map<String,String> requestProperties, int id) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic SchemaString getId(Map<String,String> requestProperties, int id, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic SchemaString getId(Map<String,String> requestProperties, int id, String subject, boolean fetchMaxId) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic SchemaString getId(Map<String,String> requestProperties, int id, String subject, Set<String> findTags, boolean fetchMaxId) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic SchemaString getId(Map<String,String> requestProperties, int id, String subject, String format, Set<String> findTags, boolean fetchMaxId) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic String getOnlySchemaById(int id) throws RestClientException, IOException
RestClientExceptionIOExceptionpublic String getOnlySchemaById(Map<String,String> requestProperties, int id, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getSchemaTypes() throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getSchemaTypes(Map<String,String> requestProperties) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema getVersion(String subject, int version) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema getVersion(String subject, int version, boolean lookupDeletedSchema) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema getVersion(Map<String,String> requestProperties, String subject, int version) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema getVersion(Map<String,String> requestProperties, String subject, int version, boolean lookupDeletedSchema) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema getVersion(Map<String,String> requestProperties, String subject, int version, String format, boolean lookupDeletedSchema, Set<String> findTags) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema getLatestVersion(String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema getLatestVersion(Map<String,String> requestProperties, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema getLatestVersion(Map<String,String> requestProperties, String subject, Set<String> findTags) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema getLatestVersion(Map<String,String> requestProperties, String subject, String format, Set<String> findTags) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic String getVersionSchemaOnly(String subject, int version) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic String getLatestVersionSchemaOnly(String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema getLatestWithMetadata(String subject, Map<String,String> metadata, boolean lookupDeletedSchema) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema getLatestWithMetadata(Map<String,String> requestProperties, String subject, Map<String,String> metadata, boolean lookupDeletedSchema) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Schema getLatestWithMetadata(Map<String,String> requestProperties, String subject, Map<String,String> metadata, String format, boolean lookupDeletedSchema) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<Integer> getReferencedBy(String subject, int version) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<Integer> getReferencedBy(Map<String,String> requestProperties, String subject, int version) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<Integer> getReferencedByWithPagination(String subject, int version, int offset, int limit) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<Integer> getAllVersions(String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<Integer> getAllVersions(Map<String,String> requestProperties, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<Integer> getAllVersions(Map<String,String> requestProperties, String subject, boolean lookupDeletedSchema) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<Integer> getAllVersions(Map<String,String> requestProperties, String subject, boolean lookupDeletedSchema, boolean lookupDeletedOnlySchema) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<Integer> getAllVersionsWithPagination(Map<String,String> requestProperties, String subject, boolean lookupDeletedSchema, int offset, int limit) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<Integer> getDeletedOnlyVersions(String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getAllContexts() throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getAllContexts(Map<String,String> requestProperties) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getAllContextsWithPagination(int limit, int offset) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getAllSubjects() throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getAllSubjects(boolean deletedSubjects) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getAllSubjects(String subjectPrefix, boolean deletedSubjects) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getAllSubjects(Map<String,String> requestProperties) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getAllSubjects(Map<String,String> requestProperties, String subjectPrefix, boolean deletedSubjects) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getAllSubjects(Map<String,String> requestProperties, String subjectPrefix, boolean deletedSubjects, boolean deletedOnlySubjects) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getAllSubjectsWithPagination(int offset, int limit) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getAllSubjectsWithPagination(Map<String,String> requestProperties, int offset, int limit) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getDeletedOnlySubjects(String subjectPrefix) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getAllSubjectsById(int id) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getAllSubjectsById(int id, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getAllSubjectsById(int id, String subject, boolean deleted) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getAllSubjectsById(Map<String,String> requestProperties, int id) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getAllSubjectsById(Map<String,String> requestProperties, int id, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getAllSubjectsById(Map<String,String> requestProperties, int id, String subject, boolean lookupDeleted) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<String> getAllSubjectsByIdWithPagination(Map<String,String> requestProperties, int id, String subject, boolean lookupDeleted, int limit, int offset) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<SubjectVersion> getAllVersionsById(int id) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<SubjectVersion> getAllVersionsById(int id, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<SubjectVersion> getAllVersionsById(int id, String subject, boolean deleted) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<SubjectVersion> getAllVersionsById(Map<String,String> requestProperties, int id) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<SubjectVersion> getAllVersionsById(Map<String,String> requestProperties, int id, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<SubjectVersion> getAllVersionsById(Map<String,String> requestProperties, int id, String subject, boolean lookupDeleted) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<SubjectVersion> getAllVersionsByIdWithPagination(Map<String,String> requestProperties, int id, String subject, boolean lookupDeleted, int offset, int limit) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Integer deleteSchemaVersion(Map<String,String> requestProperties, String subject, String version) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Integer deleteSchemaVersion(Map<String,String> requestProperties, String subject, String version, boolean permanentDelete) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<Integer> deleteSubject(Map<String,String> requestProperties, String subject) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic List<Integer> deleteSubject(Map<String,String> requestProperties, String subject, boolean permanentDelete) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic ServerClusterId getClusterId() throws IOException, RestClientException
IOExceptionRestClientExceptionpublic ServerClusterId getClusterId(Map<String,String> requestProperties) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic SchemaRegistryServerVersion getSchemaRegistryServerVersion() throws IOException, RestClientException
IOExceptionRestClientExceptionpublic UrlList getBaseUrls()
public void setBasicAuthCredentialProvider(BasicAuthCredentialProvider basicAuthCredentialProvider)
public void setBearerAuthCredentialProvider(BearerAuthCredentialProvider bearerAuthCredentialProvider)
public void setProxy(String proxyHost, int proxyPort)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2025 Confluent, Inc.. All rights reserved.