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

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

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

origin: apache/pulsar

if (authData.hasDataForHttp()) {
  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

auth.start();
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

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

Javadoc

Check if data for HTTP are available.

Popular methods of AuthenticationDataProvider

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

Popular in Java

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • getContentResolver (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 12 Jupyter Notebook extensions
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