Class SchemasResource
- java.lang.Object
-
- org.apache.pulsar.broker.web.PulsarWebResource
-
- org.apache.pulsar.broker.admin.AdminResource
-
- org.apache.pulsar.broker.admin.impl.SchemasResourceBase
-
- org.apache.pulsar.broker.admin.v2.SchemasResource
-
@Path("/schemas") public class SchemasResource extends SchemasResourceBase
-
-
Field Summary
-
Fields inherited from class org.apache.pulsar.broker.admin.AdminResource
namespaceName, topicName
-
Fields inherited from class org.apache.pulsar.broker.web.PulsarWebResource
httpRequest, servletContext, uri
-
-
Constructor Summary
Constructors Constructor Description SchemasResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteSchema(java.lang.String tenant, java.lang.String namespace, java.lang.String topic, boolean authoritative, javax.ws.rs.container.AsyncResponse response)voidgetAllSchemas(java.lang.String tenant, java.lang.String namespace, java.lang.String topic, boolean authoritative, javax.ws.rs.container.AsyncResponse response)voidgetSchema(java.lang.String tenant, java.lang.String namespace, java.lang.String topic, boolean authoritative, javax.ws.rs.container.AsyncResponse response)voidgetSchema(java.lang.String tenant, java.lang.String namespace, java.lang.String topic, java.lang.String version, boolean authoritative, javax.ws.rs.container.AsyncResponse response)voidgetVersionBySchema(java.lang.String tenant, java.lang.String namespace, java.lang.String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, boolean authoritative, javax.ws.rs.container.AsyncResponse response)voidpostSchema(java.lang.String tenant, java.lang.String namespace, java.lang.String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, boolean authoritative, javax.ws.rs.container.AsyncResponse response)voidtestCompatibility(java.lang.String tenant, java.lang.String namespace, java.lang.String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, boolean authoritative, javax.ws.rs.container.AsyncResponse response)-
Methods inherited from class org.apache.pulsar.broker.admin.impl.SchemasResourceBase
deleteSchema, domain, getAllSchemas, getSchema, getSchema, getVersionBySchema, postSchema, testCompatibility
-
Methods inherited from class org.apache.pulsar.broker.admin.AdminResource
bookKeeper, checkArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, checkTopicLevelPolicyEnable, clusters, dispatchRate, fetchPartitionedTopicMetadata, fetchPartitionedTopicMetadataCheckAllowAutoCreation, getNamespacePolicies, getNamespacePolicies, getNamespacePoliciesAsync, getNamespaceReplicatedClusters, getPartitionedTopicList, getPartitionedTopicMetadata, getPartitionedTopicMetadataAsync, getSchemaCompatibilityStrategyAsync, getSchemaCompatibilityStrategyAsyncWithoutAuth, getSubNotFoundErrorMessage, getTopicNotFoundErrorMessage, getTopicPartitionList, getTopicPoliciesAsyncWithRetry, getTopicPoliciesAsyncWithRetry, internalCreatePartitionedTopic, internalCreatePartitionedTopic, isLeaderBroker, isManagedLedgerNotFoundException, isNamespaceReplicated, isRedirectException, jsonMapper, namespaceBacklogQuota, replicatorDispatchRate, resumeAsyncResponseExceptionally, setServletContext, subscribeRate, subscriptionDispatchRate, tryCreatePartitionsAsync, validateAdminAccessForTenant, validateAndGetWorkerService, validateBundleOwnership, validateClusterExists, validateGlobalNamespaceOwnership, validateNamespaceName, validateNamespaceName, validatePartitionedTopicMetadata, validatePartitionedTopicName, validatePersistencePolicies, validatePersistentTopicName, validatePersistentTopicName, validatePoliciesReadOnlyAccess, validatePoliciesReadOnlyAccessAsync, validateSuperUserAccess, validateTopicName, validateTopicName
-
Methods inherited from class org.apache.pulsar.broker.web.PulsarWebResource
bookieResources, canUpdateCluster, checkAuthorizationAsync, checkLocalOrGetPeerReplicationCluster, checkLocalOrGetPeerReplicationCluster, clientAppId, clientAuthData, clusterResources, config, dynamicConfigurationResources, getClusterDataIfDifferentCluster, getLocalPolicies, getPulsarResources, hasActiveNamespace, hasSuperUserAccess, isBundleOwnedByAnyBroker, isClientAuthenticated, isLeaderBroker, isRequestHttps, namespaceIsolationPolicies, namespaceResources, originalPrincipal, pulsar, resourceGroupResources, setPulsar, splitPath, sync, tenantResources, topicResources, validateAdminAccessForTenant, validateAdminAccessForTenantAsync, validateAdminAccessForTenantAsync, validateBrokerName, validateBundleOwnership, validateClusterForTenant, validateClusterOwnership, validateClusterOwnershipAsync, validateGlobalNamespaceOwnership, validateGlobalNamespaceOwnershipAsync, validateNamespaceBundleOwnership, validateNamespaceBundleRange, validateNamespaceOperation, validateNamespaceOperationAsync, validateNamespacePolicyOperation, validateNamespacePolicyOperationAsync, validatePeerClusterConflict, validateSuperUserAccessAsync, validateTenantOperation, validateTenantOperationAsync, validateTopicOperation, validateTopicOperation, validateTopicOperationAsync, validateTopicOperationAsync, validateTopicOwnership, validateTopicOwnershipAsync, validateTopicPolicyOperation, validateTopicPolicyOperationAsync
-
-
-
-
Method Detail
-
getSchema
@GET @Path("/{tenant}/{namespace}/{topic}/schema") @Produces("application/json") public void getSchema(@PathParam("tenant") java.lang.String tenant, @PathParam("namespace") java.lang.String namespace, @PathParam("topic") java.lang.String topic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @Suspended javax.ws.rs.container.AsyncResponse response)
-
getSchema
@GET @Path("/{tenant}/{namespace}/{topic}/schema/{version}") @Produces("application/json") public void getSchema(@PathParam("tenant") java.lang.String tenant, @PathParam("namespace") java.lang.String namespace, @PathParam("topic") java.lang.String topic, @PathParam("version") @Encoded java.lang.String version, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @Suspended javax.ws.rs.container.AsyncResponse response)
-
getAllSchemas
@GET @Path("/{tenant}/{namespace}/{topic}/schemas") @Produces("application/json") public void getAllSchemas(@PathParam("tenant") java.lang.String tenant, @PathParam("namespace") java.lang.String namespace, @PathParam("topic") java.lang.String topic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @Suspended javax.ws.rs.container.AsyncResponse response)
-
deleteSchema
@DELETE @Path("/{tenant}/{namespace}/{topic}/schema") @Produces("application/json") public void deleteSchema(@PathParam("tenant") java.lang.String tenant, @PathParam("namespace") java.lang.String namespace, @PathParam("topic") java.lang.String topic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @Suspended javax.ws.rs.container.AsyncResponse response)
-
postSchema
@POST @Path("/{tenant}/{namespace}/{topic}/schema") @Produces("application/json") @Consumes("application/json") public void postSchema(@PathParam("tenant") java.lang.String tenant, @PathParam("namespace") java.lang.String namespace, @PathParam("topic") java.lang.String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @Suspended javax.ws.rs.container.AsyncResponse response)
-
testCompatibility
@POST @Path("/{tenant}/{namespace}/{topic}/compatibility") @Produces("application/json") @Consumes("application/json") public void testCompatibility(@PathParam("tenant") java.lang.String tenant, @PathParam("namespace") java.lang.String namespace, @PathParam("topic") java.lang.String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @Suspended javax.ws.rs.container.AsyncResponse response)
-
getVersionBySchema
@POST @Path("/{tenant}/{namespace}/{topic}/version") @Produces("application/json") @Consumes("application/json") public void getVersionBySchema(@PathParam("tenant") java.lang.String tenant, @PathParam("namespace") java.lang.String namespace, @PathParam("topic") java.lang.String topic, org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @Suspended javax.ws.rs.container.AsyncResponse response)
-
-