Class TopicLookup
- java.lang.Object
-
- org.apache.pulsar.broker.web.PulsarWebResource
-
- org.apache.pulsar.broker.lookup.TopicLookupBase
-
- org.apache.pulsar.broker.lookup.v1.TopicLookup
-
@Path("/v2/destination/") public class TopicLookup extends TopicLookupBaseThe path for this handler is marked as "v2" even though it refers to Pulsar 1.x topic name format. The lookup API was already/v2/in Pulsar 1.x. This was internally versioned at Yahoo to not clash with an earlier API. Since we're adding now the "Pulsar v2" we cannot rename this topic lookup into/v1. Rather the difference here would be :lookup/v2/destination/persistent/prop/cluster/ns/topicvslookup/v2/topic/persistent/prop/ns/topic.
-
-
Field Summary
-
Fields inherited from class org.apache.pulsar.broker.web.PulsarWebResource
httpRequest, NOT_IMPLEMENTED, servletContext, uri
-
-
Constructor Summary
Constructors Constructor Description TopicLookup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetNamespaceBundle(java.lang.String topicDomain, java.lang.String property, java.lang.String cluster, java.lang.String namespace, java.lang.String encodedTopic)voidlookupTopicAsync(java.lang.String topicDomain, java.lang.String property, java.lang.String cluster, java.lang.String namespace, java.lang.String encodedTopic, boolean authoritative, javax.ws.rs.container.AsyncResponse asyncResponse, java.lang.String listenerName, java.lang.String listenerNameHeader)-
Methods inherited from class org.apache.pulsar.broker.lookup.TopicLookupBase
getTopicName, getTopicName, internalGetNamespaceBundle, internalLookupTopicAsync, lookupTopicAsync, lookupTopicAsync
-
Methods inherited from class org.apache.pulsar.broker.web.PulsarWebResource
bookieResources, canUpdateCluster, checkAuthorizationAsync, checkLocalOrGetPeerReplicationCluster, checkLocalOrGetPeerReplicationCluster, clientAppId, clientAuthData, clusterResources, config, dynamicConfigurationResources, getClusterDataIfDifferentCluster, getLocalPolicies, getPulsarResources, handleCommonRestAsyncException, hasActiveNamespace, hasSuperUserAccess, isBundleOwnedByAnyBroker, isClientAuthenticated, isLeaderBroker, isLeaderBroker, isRequestHttps, jsonMapper, namespaceIsolationPolicies, namespaceResources, originalPrincipal, pulsar, resourceGroupResources, setPulsar, splitPath, tenantResources, topicResources, validateAdminAccessForTenant, validateAdminAccessForTenant, validateAdminAccessForTenantAsync, validateBrokerName, validateBundleOwnership, validateBundleOwnership, validateClusterExists, validateClusterForTenant, validateClusterOwnership, validateGlobalNamespaceOwnership, validateGlobalNamespaceOwnershipAsync, validateNamespaceBundleOwnership, validateNamespaceBundleRange, validateNamespaceOperation, validateNamespaceOperationAsync, validateNamespacePolicyOperation, validatePoliciesReadOnlyAccess, validateSuperUserAccess, validateTenantOperation, validateTopicOperation, validateTopicOperation, validateTopicOperationAsync, validateTopicOperationAsync, validateTopicOwnership, validateTopicOwnershipAsync, validateTopicPolicyOperation
-
-
-
-
Method Detail
-
lookupTopicAsync
@GET @Path("{topic-domain}/{property}/{cluster}/{namespace}/{topic}") @Produces("application/json") public void lookupTopicAsync(@PathParam("topic-domain") java.lang.String topicDomain, @PathParam("property") java.lang.String property, @PathParam("cluster") java.lang.String cluster, @PathParam("namespace") java.lang.String namespace, @PathParam("topic") @Encoded java.lang.String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @QueryParam("listenerName") java.lang.String listenerName, @HeaderParam("X-Pulsar-ListenerName") java.lang.String listenerNameHeader)
-
getNamespaceBundle
@GET @Path("{topic-domain}/{property}/{cluster}/{namespace}/{topic}/bundle") @Produces("application/json") public java.lang.String getNamespaceBundle(@PathParam("topic-domain") java.lang.String topicDomain, @PathParam("property") java.lang.String property, @PathParam("cluster") java.lang.String cluster, @PathParam("namespace") java.lang.String namespace, @PathParam("topic") @Encoded java.lang.String encodedTopic)
-
-