Tabnine Logo
HttpAuthenticationFeature$Builder.build
Code IndexAdd Tabnine to your IDE (free)

How to use
build
method
in
org.glassfish.jersey.client.authentication.HttpAuthenticationFeature$Builder

Best Java code snippets using org.glassfish.jersey.client.authentication.HttpAuthenticationFeature$Builder.build (Showing top 20 results out of 315)

origin: oracle/helidon

.build();
origin: hortonworks/streamline

private Client newHttpClient() {
  final HttpAuthenticationFeature feature = HttpAuthenticationFeature.basicBuilder()
      .credentials(username, password).build();
  final ClientConfig clientConfig = new ClientConfig();
  clientConfig.register(feature);
  return ClientBuilder.newClient(clientConfig);
}
origin: hortonworks/streamline

private void setupClient() {
 HttpAuthenticationFeature feature = HttpAuthenticationFeature.basicBuilder()
   .credentials(username, password).build();
 ClientConfig clientConfig = new ClientConfig();
 clientConfig.register(feature);
 clientConfig.register(JsonToMapProvider.class);
 client = ClientBuilder.newClient(clientConfig);
}
origin: org.appverse.web.framework.modules.backend.core.rest/appverse-web-modules-backend-core-rest

.basicBuilder()
.credentials(defaultUser, defaultUserPassword)
.build();
origin: com.qwazr/qwazr-server

protected JsonClient(final RemoteService remote) {
  this.remote = Objects.requireNonNull(remote, "The remote parameter is null");
  final ClientConfig clientConfig = new ClientConfig();
  clientConfig.register(JacksonJsonProvider.class).register(JacksonSmileProvider.class);
  if (remote.isCredential()) {
    final HttpAuthenticationFeature feature = HttpAuthenticationFeature.basicBuilder()
        .nonPreemptive()
        .credentials(remote.username, remote.password)
        .build();
    clientConfig.register(feature);
  }
  final int timeout = remote.timeout != null ? remote.timeout : DEFAULT_TIMEOUT;
  client = ClientBuilder.newClient(clientConfig);
  client.property(ClientProperties.CONNECT_TIMEOUT, timeout);
  client.property(ClientProperties.READ_TIMEOUT, timeout);
}
origin: hstaudacher/osgi-jax-rs-connector

private static HttpAuthenticationFeature build(Mode mode, String username, String password) {
  return new BuilderImpl(mode).credentials(username, password).build();
}
origin: com.eclipsesource.jaxrs/jersey-all

private static HttpAuthenticationFeature build(Mode mode, String username, byte[] password) {
  return new BuilderImpl(mode).credentials(username, password).build();
}
origin: hstaudacher/osgi-jax-rs-connector

private static HttpAuthenticationFeature build(Mode mode, String username, String password) {
  return new BuilderImpl(mode).credentials(username, password).build();
}
origin: hstaudacher/osgi-jax-rs-connector

private static HttpAuthenticationFeature build(Mode mode, String username, byte[] password) {
  return new BuilderImpl(mode).credentials(username, password).build();
}
origin: org.glassfish.jersey.bundles/jaxrs-ri

private static HttpAuthenticationFeature build(Mode mode, String username, byte[] password) {
  return new BuilderImpl(mode).credentials(username, password).build();
}
origin: hstaudacher/osgi-jax-rs-connector

private static HttpAuthenticationFeature build(Mode mode, String username, byte[] password) {
  return new BuilderImpl(mode).credentials(username, password).build();
}
origin: com.eclipsesource.jaxrs/jersey-all

private static HttpAuthenticationFeature build(Mode mode, String username, String password) {
  return new BuilderImpl(mode).credentials(username, password).build();
}
origin: org.glassfish.jersey.bundles/jaxrs-ri

private static HttpAuthenticationFeature build(Mode mode, String username, String password) {
  return new BuilderImpl(mode).credentials(username, password).build();
}
origin: sargue/mailgun

  HttpAuthenticationFeature httpAuthenticationFeature() {
    return HttpAuthenticationFeature
        .basicBuilder()
        .credentials("api", apiKey())
        .build();
  }
}
origin: org.glassfish.jersey.core/jersey-client

private static HttpAuthenticationFeature build(Mode mode, String username, String password) {
  return new BuilderImpl(mode).credentials(username, password).build();
}
origin: org.glassfish.jersey.core/jersey-client

private static HttpAuthenticationFeature build(Mode mode, String username, byte[] password) {
  return new BuilderImpl(mode).credentials(username, password).build();
}
origin: jersey/jersey

private static HttpAuthenticationFeature build(Mode mode, String username, String password) {
  return new BuilderImpl(mode).credentials(username, password).build();
}
origin: jersey/jersey

private static HttpAuthenticationFeature build(Mode mode, String username, byte[] password) {
  return new BuilderImpl(mode).credentials(username, password).build();
}
origin: jersey/jersey

private static HttpAuthenticationFeature build(Mode mode, String username, String password) {
  return new BuilderImpl(mode).credentials(username, password).build();
}
origin: jersey/jersey

private static HttpAuthenticationFeature build(Mode mode, String username, byte[] password) {
  return new BuilderImpl(mode).credentials(username, password).build();
}
org.glassfish.jersey.client.authenticationHttpAuthenticationFeature$Builderbuild

Javadoc

Build the feature.

Popular methods of HttpAuthenticationFeature$Builder

    Popular in Java

    • Creating JSON documents from java classes using gson
    • getSystemService (Context)
    • requestLocationUpdates (LocationManager)
    • startActivity (Activity)
    • Table (com.google.common.collect)
      A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
    • Pointer (com.sun.jna)
      An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
    • KeyStore (java.security)
      KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
    • ConcurrentHashMap (java.util.concurrent)
      A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
    • XPath (javax.xml.xpath)
      XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
    • Project (org.apache.tools.ant)
      Central representation of an Ant project. This class defines an Ant project with all of its targets,
    • 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