Class RestService
java.lang.Object
io.confluent.kafka.schemaregistry.client.rest.RestService
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.kafka.common.Configurable
Rest access layer for sending requests to the schema registry.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRestService(UrlList baseUrls) RestService(UrlList baseUrls, boolean isForward) RestService(UrlList baseUrls, boolean isForward, boolean useApacheHttpClient) RestService(String baseUrlConfig) RestService(String baseUrlConfig, boolean isForward) RestService(String baseUrlConfig, boolean isForward, boolean useApacheHttpClient) RestService(List<String> baseUrls) -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpURLConnectionvoidclose()voidcreateAssociation(Map<String, String> requestProperties, String context, Boolean dryRun, AssociationCreateOrUpdateRequest request) createAssociations(Map<String, String> requestProperties, String context, Boolean dryRun, AssociationBatchCreateOrUpdateRequest request) createOrUpdateAssociation(Map<String, String> requestProperties, String context, Boolean dryRun, AssociationCreateOrUpdateRequest request) createOrUpdateAssociations(Map<String, String> requestProperties, String context, Boolean dryRun, AssociationBatchCreateOrUpdateRequest request) voiddeleteAssociations(Map<String, String> requestProperties, String resourceId, String resourceType, List<String> associationTypes, boolean cascadeLifecycle) deleteConfig(String subject) deleteConfig(Map<String, String> requestProperties, String subject) voiddeleteContext(Map<String, String> requestProperties, String delimitedContext) deleteSchemaVersion(Map<String, String> requestProperties, String subject, String version, boolean permanentDelete) deleteSubject(Map<String, String> requestProperties, String subject) deleteSubject(Map<String, String> requestProperties, String subject, boolean permanentDelete) deleteSubjectMode(String subject) deleteSubjectMode(Map<String, String> requestProperties, String subject) deleteSubjectMode(Map<String, String> requestProperties, String subject, boolean recursive) getAllContextIds(String guid) getAllContextIds(Map<String, String> requestProperties, String guid) getAllContexts(int offset, int limit, String contextPrefix) getAllContexts(int offset, int limit, String contextPrefix, Map<String, String> requestProperties) getAllContexts(Map<String, String> requestProperties) getAllContextsWithPagination(int limit, int offset) getAllSubjects(boolean deletedSubjects) getAllSubjects(String subjectPrefix, boolean deletedSubjects) getAllSubjects(Map<String, String> requestProperties) getAllSubjects(Map<String, String> requestProperties, String subjectPrefix, boolean deletedSubjects) getAllSubjects(Map<String, String> requestProperties, String subjectPrefix, boolean deletedSubjects, boolean deletedOnlySubjects) getAllSubjectsById(int id) getAllSubjectsById(int id, String subject) getAllSubjectsById(int id, String subject, boolean deleted) getAllSubjectsById(Map<String, String> requestProperties, int id) getAllSubjectsById(Map<String, String> requestProperties, int id, String subject) getAllSubjectsById(Map<String, String> requestProperties, int id, String subject, boolean lookupDeleted) getAllSubjectsByIdWithPagination(Map<String, String> requestProperties, int id, String subject, boolean lookupDeleted, int limit, int offset) getAllSubjectsWithPagination(int offset, int limit) getAllSubjectsWithPagination(Map<String, String> requestProperties, int offset, int limit) getAllVersions(String subject) getAllVersions(Map<String, String> requestProperties, String subject) getAllVersions(Map<String, String> requestProperties, String subject, boolean lookupDeletedSchema) getAllVersions(Map<String, String> requestProperties, String subject, boolean lookupDeletedSchema, boolean lookupDeletedOnlySchema) getAllVersionsById(int id) getAllVersionsById(int id, String subject) getAllVersionsById(int id, String subject, boolean deleted) getAllVersionsById(Map<String, String> requestProperties, int id) getAllVersionsById(Map<String, String> requestProperties, int id, String subject) getAllVersionsById(Map<String, String> requestProperties, int id, String subject, boolean lookupDeleted) getAllVersionsByIdWithPagination(Map<String, String> requestProperties, int id, String subject, boolean lookupDeleted, int offset, int limit) getAllVersionsWithPagination(Map<String, String> requestProperties, String subject, boolean lookupDeletedSchema, int offset, int limit) getClusterId(Map<String, String> requestProperties) getDeletedOnlySubjects(String subjectPrefix) getDeletedOnlyVersions(String subject) getId(int id) getId(int id, boolean fetchMaxId) getId(Map<String, String> requestProperties, int id, String subject, String format, String referenceFormat, Set<String> findTags, boolean fetchMaxId) getId(Map<String, String> requestProperties, int id, String subject, String format, Set<String> findTags, boolean fetchMaxId) getId(Map<String, String> requestProperties, int id, String subject, Set<String> findTags, boolean fetchMaxId) getLatestVersion(String subject) getLatestVersion(Map<String, String> requestProperties, String subject) getLatestVersion(Map<String, String> requestProperties, String subject, String format, Set<String> findTags) getLatestVersionSchemaOnly(String subject) getLatestWithMetadata(String subject, Map<String, String> metadata, boolean lookupDeletedSchema) getLatestWithMetadata(Map<String, String> requestProperties, String subject, Map<String, String> metadata, boolean lookupDeletedSchema) getLatestWithMetadata(Map<String, String> requestProperties, String subject, Map<String, String> metadata, String format, boolean lookupDeletedSchema) getMode()getOnlySchemaById(int id) getOnlySchemaById(Map<String, String> requestProperties, int id, String subject) getReferencedBy(String subject, int version) getReferencedBy(Map<String, String> requestProperties, String subject, int version) getReferencedByWithPagination(String subject, int version, int offset, int limit) getSchemas(String subjectPrefix, boolean lookupDeletedSchema, boolean latestOnly) getSchemas(Map<String, String> requestProperties, String subjectPrefix, boolean includeAliases, boolean lookupDeletedSchema, boolean latestOnly, String ruleType, Integer offset, Integer limit) getSchemas(Map<String, String> requestProperties, String subjectPrefix, boolean lookupDeletedSchema, boolean latestOnly, String ruleType, Integer offset, Integer limit) getSchemaTypes(Map<String, String> requestProperties) getVersion(String subject, int version) getVersion(String subject, int version, boolean lookupDeletedSchema) getVersion(Map<String, String> requestProperties, String subject, int version) getVersion(Map<String, String> requestProperties, String subject, int version, boolean lookupDeletedSchema) getVersion(Map<String, String> requestProperties, String subject, int version, String format, boolean lookupDeletedSchema, Set<String> findTags) getVersion(Map<String, String> requestProperties, String subject, int version, String format, String referenceFormat, boolean lookupDeletedSchema, Set<String> findTags) getVersionSchemaOnly(String subject, int version) <T> ThttpRequest(String path, String method, byte[] requestBodyData, Map<String, String> requestProperties, com.fasterxml.jackson.core.type.TypeReference<T> responseFormat) Send an HTTP request.booleanstatic booleanlookUpSubjectVersion(RegisterSchemaRequest registerSchemaRequest, String subject, boolean normalize, boolean lookupDeletedSchema) lookUpSubjectVersion(String schemaString, String subject) lookUpSubjectVersion(String schemaString, String subject, boolean lookupDeletedSchema) lookUpSubjectVersion(String schemaString, String subject, boolean normalize, boolean lookupDeletedSchema) lookUpSubjectVersion(String schemaString, String schemaType, List<SchemaReference> references, String subject, boolean lookupDeletedSchema) lookUpSubjectVersion(String schemaString, String schemaType, List<SchemaReference> references, String subject, boolean normalize, boolean lookupDeletedSchema) lookUpSubjectVersion(Map<String, String> requestProperties, RegisterSchemaRequest registerSchemaRequest, String subject, boolean normalize, boolean lookupDeletedSchema) lookUpSubjectVersion(Map<String, String> requestProperties, RegisterSchemaRequest registerSchemaRequest, String subject, boolean normalize, String format, boolean lookupDeletedSchema) modifySchemaTags(Map<String, String> requestProperties, TagSchemaRequest tagSchemaRequest, String subject, String version) registerSchema(RegisterSchemaRequest registerSchemaRequest, String subject, boolean normalize) intregisterSchema(String schemaString, String subject) registerSchema(String schemaString, String subject, boolean normalize) intregisterSchema(String schemaString, String subject, int version, int id) registerSchema(String schemaString, String subject, int version, int id, boolean normalize) registerSchema(String schemaString, String schemaType, List<SchemaReference> references, String subject) registerSchema(String schemaString, String schemaType, List<SchemaReference> references, String subject, boolean normalize) registerSchema(String schemaString, String schemaType, List<SchemaReference> references, String subject, int version, int id) registerSchema(String schemaString, String schemaType, List<SchemaReference> references, String subject, int version, int id, boolean normalize) registerSchema(Map<String, String> requestProperties, RegisterSchemaRequest registerSchemaRequest, String subject, boolean normalize) registerSchema(Map<String, String> requestProperties, RegisterSchemaRequest registerSchemaRequest, String subject, boolean normalize, String format) voidsetBasicAuthCredentialProvider(BasicAuthCredentialProvider basicAuthCredentialProvider) voidsetBearerAuthCredentialProvider(BearerAuthCredentialProvider bearerAuthCredentialProvider) voidsetHostnameVerifier(HostnameVerifier hostnameVerifier) voidsetHttpConnectTimeoutMs(int httpConnectTimeoutMs) voidsetHttpHeaders(Map<String, String> httpHeaders) voidsetHttpReadTimeoutMs(int httpReadTimeoutMs) setMode(Map<String, String> requestProperties, ModeUpdateRequest modeUpdateRequest, String subject, boolean force) On success, this api simply echoes the request in the response.voidvoidsetSslSocketFactory(SSLSocketFactory sslSocketFactory) testCompatibility(RegisterSchemaRequest registerSchemaRequest, String subject, String version, boolean normalize, boolean verbose) testCompatibility(String schemaString, String subject, boolean verbose) testCompatibility(String schemaString, String subject, String version) testCompatibility(String schemaString, String schemaType, List<SchemaReference> references, String subject, String version, boolean verbose) testCompatibility(Map<String, String> requestProperties, RegisterSchemaRequest registerSchemaRequest, String subject, String version, boolean normalize, boolean verbose) updateCompatibility(String compatibility, String subject) updateConfig(ConfigUpdateRequest configUpdateRequest, String subject) updateConfig(Map<String, String> requestProperties, ConfigUpdateRequest configUpdateRequest, String subject) On success, this api simply echoes the request in the response.
-
Field Details
-
ACCEPT_UNKNOWN_PROPERTIES
- See Also:
-
X_FORWARD_HEADER
- See Also:
-
VERSION_8_0
- See Also:
-
DEFAULT_REQUEST_PROPERTIES
-
-
Constructor Details
-
RestService
-
RestService
-
RestService
-
RestService
-
RestService
-
RestService
-
RestService
-
-
Method Details
-
configure
- Specified by:
configurein interfaceorg.apache.kafka.common.Configurable
-
setSslSocketFactory
-
setHostnameVerifier
-
setHttpConnectTimeoutMs
public void setHttpConnectTimeoutMs(int httpConnectTimeoutMs) -
setHttpReadTimeoutMs
public void setHttpReadTimeoutMs(int httpReadTimeoutMs) -
buildConnection
protected HttpURLConnection buildConnection(URL url, String method, Map<String, String> requestProperties) throws IOException- Throws:
IOException
-
httpRequest
public <T> T httpRequest(String path, String method, byte[] requestBodyData, Map<String, String> requestProperties, com.fasterxml.jackson.core.type.TypeReference<T> responseFormat) throws IOException, RestClientExceptionSend an HTTP request.- Type Parameters:
T- The type of the deserialized response to the HTTP request.- Parameters:
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.- Returns:
- The deserialized response to the HTTP request, or null if no data is expected.
- Throws:
IOExceptionRestClientException
-
isRestClientExceptionRetriable
-
lookUpSubjectVersion
public Schema lookUpSubjectVersion(String schemaString, String subject) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
lookUpSubjectVersion
public Schema lookUpSubjectVersion(String schemaString, String subject, boolean lookupDeletedSchema) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
lookUpSubjectVersion
public Schema lookUpSubjectVersion(String schemaString, String subject, boolean normalize, boolean lookupDeletedSchema) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
lookUpSubjectVersion
public Schema lookUpSubjectVersion(String schemaString, String schemaType, List<SchemaReference> references, String subject, boolean lookupDeletedSchema) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
lookUpSubjectVersion
public Schema lookUpSubjectVersion(String schemaString, String schemaType, List<SchemaReference> references, String subject, boolean normalize, boolean lookupDeletedSchema) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
lookUpSubjectVersion
public Schema lookUpSubjectVersion(RegisterSchemaRequest registerSchemaRequest, String subject, boolean normalize, boolean lookupDeletedSchema) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
lookUpSubjectVersion
public Schema lookUpSubjectVersion(Map<String, String> requestProperties, RegisterSchemaRequest registerSchemaRequest, String subject, boolean normalize, boolean lookupDeletedSchema) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
lookUpSubjectVersion
public Schema lookUpSubjectVersion(Map<String, String> requestProperties, RegisterSchemaRequest registerSchemaRequest, String subject, boolean normalize, String format, boolean lookupDeletedSchema) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
registerSchema
public int registerSchema(String schemaString, String subject) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
registerSchema
public RegisterSchemaResponse registerSchema(String schemaString, String subject, boolean normalize) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
registerSchema
public RegisterSchemaResponse registerSchema(String schemaString, String schemaType, List<SchemaReference> references, String subject) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
registerSchema
public RegisterSchemaResponse registerSchema(String schemaString, String schemaType, List<SchemaReference> references, String subject, boolean normalize) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
registerSchema
public int registerSchema(String schemaString, String subject, int version, int id) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
registerSchema
public RegisterSchemaResponse registerSchema(String schemaString, String subject, int version, int id, boolean normalize) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
registerSchema
public RegisterSchemaResponse registerSchema(String schemaString, String schemaType, List<SchemaReference> references, String subject, int version, int id) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
registerSchema
public RegisterSchemaResponse registerSchema(String schemaString, String schemaType, List<SchemaReference> references, String subject, int version, int id, boolean normalize) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
registerSchema
public RegisterSchemaResponse registerSchema(RegisterSchemaRequest registerSchemaRequest, String subject, boolean normalize) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
registerSchema
public RegisterSchemaResponse registerSchema(Map<String, String> requestProperties, RegisterSchemaRequest registerSchemaRequest, String subject, boolean normalize) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
registerSchema
public RegisterSchemaResponse registerSchema(Map<String, String> requestProperties, RegisterSchemaRequest registerSchemaRequest, String subject, boolean normalize, String format) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
modifySchemaTags
public RegisterSchemaResponse modifySchemaTags(Map<String, String> requestProperties, TagSchemaRequest tagSchemaRequest, String subject, String version) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
testCompatibility
public List<String> testCompatibility(String schemaString, String subject, boolean verbose) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
testCompatibility
public List<String> testCompatibility(String schemaString, String subject, String version) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
testCompatibility
public List<String> testCompatibility(String schemaString, String schemaType, List<SchemaReference> references, String subject, String version, boolean verbose) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
testCompatibility
public List<String> testCompatibility(RegisterSchemaRequest registerSchemaRequest, String subject, String version, boolean normalize, boolean verbose) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
testCompatibility
public List<String> testCompatibility(Map<String, String> requestProperties, RegisterSchemaRequest registerSchemaRequest, String subject, String version, boolean normalize, boolean verbose) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
updateCompatibility
public ConfigUpdateRequest updateCompatibility(String compatibility, String subject) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
updateConfig
public ConfigUpdateRequest updateConfig(ConfigUpdateRequest configUpdateRequest, String subject) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
updateConfig
public ConfigUpdateRequest updateConfig(Map<String, String> requestProperties, ConfigUpdateRequest configUpdateRequest, String subject) throws IOException, RestClientExceptionOn success, this api simply echoes the request in the response.- Throws:
IOExceptionRestClientException
-
getConfig
- Throws:
IOExceptionRestClientException
-
getConfig
public Config getConfig(Map<String, String> requestProperties, String subject) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getConfig
public Config getConfig(Map<String, String> requestProperties, String subject, boolean defaultToGlobal) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
deleteConfig
- Throws:
IOExceptionRestClientException
-
deleteConfig
public Config deleteConfig(Map<String, String> requestProperties, String subject) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
setMode
- Throws:
IOExceptionRestClientException
-
setMode
public ModeUpdateRequest setMode(String mode, String subject) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
setMode
public ModeUpdateRequest setMode(String mode, String subject, boolean force) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
setMode
public ModeUpdateRequest setMode(Map<String, String> requestProperties, ModeUpdateRequest modeUpdateRequest, String subject, boolean force) throws IOException, RestClientExceptionOn success, this api simply echoes the request in the response.- Throws:
IOExceptionRestClientException
-
getMode
- Throws:
IOExceptionRestClientException
-
getMode
- Throws:
IOExceptionRestClientException
-
getMode
public Mode getMode(String subject, boolean defaultToGlobal) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
deleteSubjectMode
- Throws:
IOExceptionRestClientException
-
deleteSubjectMode
public Mode deleteSubjectMode(Map<String, String> requestProperties, String subject) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
deleteSubjectMode
public Mode deleteSubjectMode(Map<String, String> requestProperties, String subject, boolean recursive) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getSchemas
public List<Schema> getSchemas(String subjectPrefix, boolean lookupDeletedSchema, boolean latestOnly) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getSchemas
public List<Schema> getSchemas(Map<String, String> requestProperties, String subjectPrefix, boolean lookupDeletedSchema, boolean latestOnly, String ruleType, Integer offset, Integer limit) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getSchemas
public List<ExtendedSchema> getSchemas(Map<String, String> requestProperties, String subjectPrefix, boolean includeAliases, boolean lookupDeletedSchema, boolean latestOnly, String ruleType, Integer offset, Integer limit) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getId
- Throws:
IOExceptionRestClientException
-
getId
- Throws:
IOExceptionRestClientException
-
getId
- Throws:
IOExceptionRestClientException
-
getId
public SchemaString getId(int id, String subject, boolean fetchMaxId) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getId
public SchemaString getId(Map<String, String> requestProperties, int id) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getId
public SchemaString getId(Map<String, String> requestProperties, int id, String subject) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getId
public SchemaString getId(Map<String, String> requestProperties, int id, String subject, boolean fetchMaxId) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getId
public SchemaString getId(Map<String, String> requestProperties, int id, String subject, Set<String> findTags, boolean fetchMaxId) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getId
public SchemaString getId(Map<String, String> requestProperties, int id, String subject, String format, Set<String> findTags, boolean fetchMaxId) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getId
public SchemaString getId(Map<String, String> requestProperties, int id, String subject, String format, String referenceFormat, Set<String> findTags, boolean fetchMaxId) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getOnlySchemaById
- Throws:
RestClientExceptionIOException
-
getOnlySchemaById
public String getOnlySchemaById(Map<String, String> requestProperties, int id, String subject) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getSchemaTypes
- Throws:
IOExceptionRestClientException
-
getSchemaTypes
public List<String> getSchemaTypes(Map<String, String> requestProperties) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getVersion
- Throws:
IOExceptionRestClientException
-
getVersion
public Schema getVersion(String subject, int version, boolean lookupDeletedSchema) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getVersion
public Schema getVersion(Map<String, String> requestProperties, String subject, int version) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getVersion
public Schema getVersion(Map<String, String> requestProperties, String subject, int version, boolean lookupDeletedSchema) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getVersion
public Schema getVersion(Map<String, String> requestProperties, String subject, int version, String format, boolean lookupDeletedSchema, Set<String> findTags) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getVersion
public Schema getVersion(Map<String, String> requestProperties, String subject, int version, String format, String referenceFormat, boolean lookupDeletedSchema, Set<String> findTags) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getLatestVersion
- Throws:
IOExceptionRestClientException
-
getLatestVersion
public Schema getLatestVersion(Map<String, String> requestProperties, String subject) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getLatestVersion
public Schema getLatestVersion(Map<String, String> requestProperties, String subject, Set<String> findTags) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getLatestVersion
public Schema getLatestVersion(Map<String, String> requestProperties, String subject, String format, Set<String> findTags) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getVersionSchemaOnly
public String getVersionSchemaOnly(String subject, int version) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getLatestVersionSchemaOnly
- Throws:
IOExceptionRestClientException
-
getLatestWithMetadata
public Schema getLatestWithMetadata(String subject, Map<String, String> metadata, boolean lookupDeletedSchema) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getLatestWithMetadata
public Schema getLatestWithMetadata(Map<String, String> requestProperties, String subject, Map<String, throws IOException, RestClientExceptionString> metadata, boolean lookupDeletedSchema) - Throws:
IOExceptionRestClientException
-
getLatestWithMetadata
public Schema getLatestWithMetadata(Map<String, String> requestProperties, String subject, Map<String, throws IOException, RestClientExceptionString> metadata, String format, boolean lookupDeletedSchema) - Throws:
IOExceptionRestClientException
-
getReferencedBy
public List<Integer> getReferencedBy(String subject, int version) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getReferencedBy
public List<Integer> getReferencedBy(Map<String, String> requestProperties, String subject, int version) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getReferencedByWithPagination
public List<Integer> getReferencedByWithPagination(String subject, int version, int offset, int limit) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getAllVersions
- Throws:
IOExceptionRestClientException
-
getAllVersions
public List<Integer> getAllVersions(Map<String, String> requestProperties, String subject) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getAllVersions
public List<Integer> getAllVersions(Map<String, String> requestProperties, String subject, boolean lookupDeletedSchema) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getAllVersions
public List<Integer> getAllVersions(Map<String, String> requestProperties, String subject, boolean lookupDeletedSchema, boolean lookupDeletedOnlySchema) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getAllVersionsWithPagination
public List<Integer> getAllVersionsWithPagination(Map<String, String> requestProperties, String subject, boolean lookupDeletedSchema, int offset, int limit) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getDeletedOnlyVersions
- Throws:
IOExceptionRestClientException
-
getAllContexts
- Throws:
IOExceptionRestClientException
-
getAllContexts
public List<String> getAllContexts(Map<String, String> requestProperties) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getAllContexts
public List<String> getAllContexts(int offset, int limit, String contextPrefix) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getAllContexts
public List<String> getAllContexts(int offset, int limit, String contextPrefix, Map<String, String> requestProperties) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getAllContextsWithPagination
public List<String> getAllContextsWithPagination(int limit, int offset) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getAllSubjects
- Throws:
IOExceptionRestClientException
-
getAllSubjects
- Throws:
IOExceptionRestClientException
-
getAllSubjects
public List<String> getAllSubjects(String subjectPrefix, boolean deletedSubjects) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getAllSubjects
public List<String> getAllSubjects(Map<String, String> requestProperties) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getAllSubjects
public List<String> getAllSubjects(Map<String, String> requestProperties, String subjectPrefix, boolean deletedSubjects) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getAllSubjects
public List<String> getAllSubjects(Map<String, String> requestProperties, String subjectPrefix, boolean deletedSubjects, boolean deletedOnlySubjects) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getAllSubjectsWithPagination
public List<String> getAllSubjectsWithPagination(int offset, int limit) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getAllSubjectsWithPagination
public List<String> getAllSubjectsWithPagination(Map<String, String> requestProperties, int offset, int limit) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getDeletedOnlySubjects
public List<String> getDeletedOnlySubjects(String subjectPrefix) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getAllSubjectsById
- Throws:
IOExceptionRestClientException
-
getAllSubjectsById
public List<String> getAllSubjectsById(int id, String subject) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getAllSubjectsById
public List<String> getAllSubjectsById(int id, String subject, boolean deleted) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getAllSubjectsById
public List<String> getAllSubjectsById(Map<String, String> requestProperties, int id) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getAllSubjectsById
public List<String> getAllSubjectsById(Map<String, String> requestProperties, int id, String subject) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getAllSubjectsById
public List<String> getAllSubjectsById(Map<String, String> requestProperties, int id, String subject, boolean lookupDeleted) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getAllSubjectsByIdWithPagination
public List<String> getAllSubjectsByIdWithPagination(Map<String, String> requestProperties, int id, String subject, boolean lookupDeleted, int limit, int offset) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getAllVersionsById
- Throws:
IOExceptionRestClientException
-
getAllVersionsById
public List<SubjectVersion> getAllVersionsById(int id, String subject) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getAllVersionsById
public List<SubjectVersion> getAllVersionsById(int id, String subject, boolean deleted) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getAllVersionsById
public List<SubjectVersion> getAllVersionsById(Map<String, String> requestProperties, int id) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getAllVersionsById
public List<SubjectVersion> getAllVersionsById(Map<String, String> requestProperties, int id, String subject) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getAllVersionsById
public List<SubjectVersion> getAllVersionsById(Map<String, String> requestProperties, int id, String subject, boolean lookupDeleted) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getAllVersionsByIdWithPagination
public List<SubjectVersion> getAllVersionsByIdWithPagination(Map<String, String> requestProperties, int id, String subject, boolean lookupDeleted, int offset, int limit) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getByGuid
- Throws:
IOExceptionRestClientException
-
getByGuid
public SchemaString getByGuid(Map<String, String> requestProperties, String guid, String format) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getAllContextIds
- Throws:
IOExceptionRestClientException
-
getAllContextIds
public List<ContextId> getAllContextIds(Map<String, String> requestProperties, String guid) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
deleteSchemaVersion
public Integer deleteSchemaVersion(Map<String, String> requestProperties, String subject, String version) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
deleteSchemaVersion
public Integer deleteSchemaVersion(Map<String, String> requestProperties, String subject, String version, boolean permanentDelete) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
deleteSubject
public List<Integer> deleteSubject(Map<String, String> requestProperties, String subject) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
deleteSubject
public List<Integer> deleteSubject(Map<String, String> requestProperties, String subject, boolean permanentDelete) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
deleteContext
public void deleteContext(Map<String, String> requestProperties, String delimitedContext) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
createAssociation
public AssociationResponse createAssociation(Map<String, String> requestProperties, String context, Boolean dryRun, AssociationCreateOrUpdateRequest request) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
createAssociations
public AssociationBatchResponse createAssociations(Map<String, String> requestProperties, String context, Boolean dryRun, AssociationBatchCreateOrUpdateRequest request) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
createOrUpdateAssociation
public AssociationResponse createOrUpdateAssociation(Map<String, String> requestProperties, String context, Boolean dryRun, AssociationCreateOrUpdateRequest request) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
createOrUpdateAssociations
public AssociationBatchResponse createOrUpdateAssociations(Map<String, String> requestProperties, String context, Boolean dryRun, AssociationBatchCreateOrUpdateRequest request) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
deleteAssociations
public void deleteAssociations(Map<String, String> requestProperties, String resourceId, String resourceType, List<String> associationTypes, boolean cascadeLifecycle) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getClusterId
- Throws:
IOExceptionRestClientException
-
getClusterId
public ServerClusterId getClusterId(Map<String, String> requestProperties) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getSchemaRegistryServerVersion
public SchemaRegistryServerVersion getSchemaRegistryServerVersion() throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getSchemaRegistryDeployment
public SchemaRegistryDeployment getSchemaRegistryDeployment() throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
getBaseUrls
-
setBasicAuthCredentialProvider
-
setBearerAuthCredentialProvider
public void setBearerAuthCredentialProvider(BearerAuthCredentialProvider bearerAuthCredentialProvider) -
setHttpHeaders
-
setProxy
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
isForward
public boolean isForward()
-