@Path(value="/v2/destination/") public class TopicLookup extends TopicLookupBase
/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/topic vs
lookup/v2/topic/persistent/prop/ns/topic.httpRequest, NOT_IMPLEMENTED, servletContext, uri| Constructor and Description |
|---|
TopicLookup() |
| Modifier and Type | Method and Description |
|---|---|
String |
getNamespaceBundle(String topicDomain,
String property,
String cluster,
String namespace,
String encodedTopic) |
void |
lookupTopicAsync(String topicDomain,
String property,
String cluster,
String namespace,
String encodedTopic,
boolean authoritative,
javax.ws.rs.container.AsyncResponse asyncResponse) |
getTopicName, getTopicName, internalGetNamespaceBundle, internalLookupTopicAsync, lookupTopicAsync, lookupTopicAsynccheckAuthorization, checkConnect, checkLocalOrGetPeerReplicationCluster, clientAppId, clientAuthData, config, getClusterDataIfDifferentCluster, hasSuperUserAccess, isBundleOwnedByAnyBroker, isClientAuthenticated, isLeaderBroker, isLeaderBroker, isRequestHttps, joinPath, originalPrincipal, path, pulsar, setPulsar, splitPath, validateAdminAccessForTenant, validateAdminAccessForTenant, validateBundleOwnership, validateBundleOwnership, validateClusterForTenant, validateClusterOwnership, validateGlobalNamespaceOwnership, validateNamespaceBundleOwnership, validateNamespaceBundleRange, validateNamespaceOperation, validateNamespaceOwnershipWithBundles, validateNamespacePolicyOperation, validateSuperUserAccess, validateTenantOperation, validateTopicOwnership@GET
@Path(value="{topic-domain}/{property}/{cluster}/{namespace}/{topic}")
@Produces(value="application/json")
public void lookupTopicAsync(@PathParam(value="topic-domain")
String topicDomain,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse)
@GET
@Path(value="{topic-domain}/{property}/{cluster}/{namespace}/{topic}/bundle")
@Produces(value="application/json")
public String getNamespaceBundle(@PathParam(value="topic-domain")
String topicDomain,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic)
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.