Tabnine Logo
AuthenticationDataProvider.getHttpHeaders
Code IndexAdd Tabnine to your IDE (free)

How to use
getHttpHeaders
method
in
org.apache.pulsar.client.api.AuthenticationDataProvider

Best Java code snippets using org.apache.pulsar.client.api.AuthenticationDataProvider.getHttpHeaders (Showing top 4 results out of 315)

origin: apache/pulsar

for (Map.Entry<String, String> header : authData.getHttpHeaders()) {
  builder.setHeader(header.getKey(), header.getValue());
origin: org.apache.pulsar/pulsar-client-admin-original

public Builder request(final WebTarget target) throws PulsarAdminException {
  try {
    Builder builder = target.request(MediaType.APPLICATION_JSON);
    // Add headers for authentication if any
    if (auth != null && auth.getAuthData().hasDataForHttp()) {
      for (Map.Entry<String, String> header : auth.getAuthData().getHttpHeaders()) {
        builder.header(header.getKey(), header.getValue());
      }
    }
    return builder;
  } catch (Throwable t) {
    throw new GettingAuthenticationDataException(t);
  }
}
origin: org.apache.pulsar/pulsar-testclient

AuthenticationDataProvider authData = auth.getAuthData();
if (authData.hasDataForHttp()) {
  for (Map.Entry<String, String> kv : authData.getHttpHeaders()) {
    produceRequest.setHeader(kv.getKey(), kv.getValue());
origin: org.apache.pulsar/pulsar-client-original

for (Map.Entry<String, String> header : authData.getHttpHeaders()) {
  builder.setHeader(header.getKey(), header.getValue());
org.apache.pulsar.client.apiAuthenticationDataProvidergetHttpHeaders

Popular methods of AuthenticationDataProvider

  • getTlsCertificates
  • getTlsPrivateKey
  • hasDataForHttp
    Check if data for HTTP are available.
  • hasDataForTls
    Check if data for TLS are available.
  • getCommandData
  • hasDataFromCommand
    Check if data from Pulsar protocol are available.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setContentView (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JButton (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Option (scala)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now