congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ClientProperties.getValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getValue
method
in
org.glassfish.jersey.client.ClientProperties

Best Java code snippets using org.glassfish.jersey.client.ClientProperties.getValue (Showing top 20 results out of 315)

origin: jersey/jersey

private int getMaximumCacheLimit(Configuration configuration) {
  int limit = ClientProperties.getValue(configuration.getProperties(),
      ClientProperties.DIGESTAUTH_URI_CACHE_SIZELIMIT, MAXIMUM_DIGEST_CACHE_SIZE);
  if (limit < 1) {
    limit = MAXIMUM_DIGEST_CACHE_SIZE;
  }
  return limit;
}
origin: jersey/jersey

private int getMaximumCacheLimit(Configuration configuration) {
  int limit = ClientProperties.getValue(configuration.getProperties(),
      ClientProperties.DIGESTAUTH_URI_CACHE_SIZELIMIT, MAXIMUM_DIGEST_CACHE_SIZE);
  if (limit < 1) {
    limit = MAXIMUM_DIGEST_CACHE_SIZE;
  }
  return limit;
}
origin: jersey/jersey

@Override
public Connector getConnector(final Client client, final Configuration config) {
  final Map<String, Object> properties = config.getProperties();
  int computedChunkSize = ClientProperties.getValue(properties,
      ClientProperties.CHUNKED_ENCODING_SIZE, chunkSize, Integer.class);
  if (computedChunkSize < 0) {
    LOGGER.warning(LocalizationMessages.NEGATIVE_CHUNK_SIZE(computedChunkSize, chunkSize));
    computedChunkSize = chunkSize;
  }
  final boolean computedUseFixedLengthStreaming = ClientProperties.getValue(properties,
      USE_FIXED_LENGTH_STREAMING, useFixedLengthStreaming, Boolean.class);
  final boolean computedUseSetMethodWorkaround = ClientProperties.getValue(properties,
      SET_METHOD_WORKAROUND, useSetMethodWorkaround, Boolean.class);
  return createHttpUrlConnector(client, connectionFactory, computedChunkSize, computedUseFixedLengthStreaming,
                 computedUseSetMethodWorkaround);
}
origin: org.glassfish.jersey.core/jersey-client

private int getMaximumCacheLimit(Configuration configuration) {
  int limit = ClientProperties.getValue(configuration.getProperties(),
      ClientProperties.DIGESTAUTH_URI_CACHE_SIZELIMIT, MAXIMUM_DIGEST_CACHE_SIZE);
  if (limit < 1) {
    limit = MAXIMUM_DIGEST_CACHE_SIZE;
  }
  return limit;
}
origin: jersey/jersey

@Override
public Connector getConnector(final Client client, final Configuration config) {
  final Map<String, Object> properties = config.getProperties();
  int computedChunkSize = ClientProperties.getValue(properties,
      ClientProperties.CHUNKED_ENCODING_SIZE, chunkSize, Integer.class);
  if (computedChunkSize < 0) {
    LOGGER.warning(LocalizationMessages.NEGATIVE_CHUNK_SIZE(computedChunkSize, chunkSize));
    computedChunkSize = chunkSize;
  }
  final boolean computedUseFixedLengthStreaming = ClientProperties.getValue(properties,
      USE_FIXED_LENGTH_STREAMING, useFixedLengthStreaming, Boolean.class);
  final boolean computedUseSetMethodWorkaround = ClientProperties.getValue(properties,
      SET_METHOD_WORKAROUND, useSetMethodWorkaround, Boolean.class);
  return createHttpUrlConnector(client, connectionFactory, computedChunkSize, computedUseFixedLengthStreaming,
                 computedUseSetMethodWorkaround);
}
origin: org.glassfish.jersey.core/jersey-client

@Override
public Connector getConnector(final Client client, final Configuration config) {
  final Map<String, Object> properties = config.getProperties();
  int computedChunkSize = ClientProperties.getValue(properties,
      ClientProperties.CHUNKED_ENCODING_SIZE, chunkSize, Integer.class);
  if (computedChunkSize < 0) {
    LOGGER.warning(LocalizationMessages.NEGATIVE_CHUNK_SIZE(computedChunkSize, chunkSize));
    computedChunkSize = chunkSize;
  }
  final boolean computedUseFixedLengthStreaming = ClientProperties.getValue(properties,
      USE_FIXED_LENGTH_STREAMING, useFixedLengthStreaming, Boolean.class);
  final boolean computedUseSetMethodWorkaround = ClientProperties.getValue(properties,
      SET_METHOD_WORKAROUND, useSetMethodWorkaround, Boolean.class);
  return createHttpUrlConnector(client, connectionFactory, computedChunkSize, computedUseFixedLengthStreaming,
                 computedUseSetMethodWorkaround);
}
origin: jersey/jersey

private ProxyConfiguration(Map<String, Object> properties) {
  String uriStr = ClientProperties.getValue(properties, ClientProperties.PROXY_URI, String.class);
  if (uriStr == null) {
    configured = false;
    host = null;
    port = -1;
    userName = null;
    password = null;
    return;
  }
  configured = true;
  URI proxyUri = URI.create(uriStr);
  host = proxyUri.getHost();
  if (proxyUri.getPort() == -1) {
    port = 8080;
  } else {
    port = proxyUri.getPort();
  }
  userName = JdkConnectorProperties.getValue(properties, ClientProperties.PROXY_USERNAME, String.class);
  password = JdkConnectorProperties.getValue(properties, ClientProperties.PROXY_PASSWORD, String.class);
}
origin: jersey/jersey

Integer timeout = ClientProperties.getValue(jerseyRequest.getConfiguration().getProperties(),
                      ClientProperties.READ_TIMEOUT, 0);
origin: jersey/jersey

  @Override
  protected void initChannel(SocketChannel ch) throws Exception {
    ChannelPipeline p = ch.pipeline();
    // Enable HTTPS if necessary.
    if ("https".equals(requestUri.getScheme())) {
      // making client authentication optional for now; it could be extracted to configurable property
      JdkSslContext jdkSslContext = new JdkSslContext(client.getSslContext(), true, ClientAuth.NONE);
      p.addLast(jdkSslContext.newHandler(ch.alloc()));
    }
    // http proxy
    Configuration config = jerseyRequest.getConfiguration();
    final Object proxyUri = config.getProperties().get(ClientProperties.PROXY_URI);
    if (proxyUri != null) {
      final URI u = getProxyUri(proxyUri);
      final String userName = ClientProperties.getValue(
          config.getProperties(), ClientProperties.PROXY_USERNAME, String.class);
      final String password = ClientProperties.getValue(
          config.getProperties(), ClientProperties.PROXY_PASSWORD, String.class);
      p.addLast(new HttpProxyHandler(new InetSocketAddress(u.getHost(),
                                u.getPort() == -1 ? 8080 : u.getPort()),
                     userName, password));
    }
    p.addLast(new HttpClientCodec());
    p.addLast(new ChunkedWriteHandler());
    p.addLast(new HttpContentDecompressor());
    p.addLast(new JerseyClientHandler(NettyConnector.this, jerseyRequest, jerseyCallback, settableFuture));
  }
});
origin: jersey/jersey

    .build();
final Integer chunkSize = ClientProperties.getValue(config.getProperties(),
    ClientProperties.CHUNKED_ENCODING_SIZE, ClientProperties.DEFAULT_CHUNK_SIZE, Integer.class);
origin: jersey/jersey

final HttpHost proxy = new HttpHost(u.getHost(), u.getPort(), u.getScheme());
final String userName;
userName = ClientProperties.getValue(config.getProperties(), ClientProperties.PROXY_USERNAME, String.class);
if (userName != null) {
  final String password;
  password = ClientProperties.getValue(config.getProperties(), ClientProperties.PROXY_PASSWORD, String.class);
origin: jersey/jersey

Integer connectTimeout = ClientProperties.getValue(jerseyRequest.getConfiguration().getProperties(),
                          ClientProperties.CONNECT_TIMEOUT, 0);
if (connectTimeout > 0) {
origin: jersey/jersey

builder.setConnectTimeout(ClientProperties.getValue(config.getProperties(),
                          ClientProperties.CONNECT_TIMEOUT, 10000));
builder.setRequestTimeout(ClientProperties.getValue(config.getProperties(),
                          ClientProperties.READ_TIMEOUT, 10000));
  proxyProperties.setProperty(ProxyUtils.PROXY_PORT, String.valueOf(u.getPort()));
  final String userName = ClientProperties.getValue(
      config.getProperties(), ClientProperties.PROXY_USERNAME, String.class);
  if (userName != null) {
    proxyProperties.setProperty(ProxyUtils.PROXY_USER, userName);
    final String password = ClientProperties.getValue(
        config.getProperties(), ClientProperties.PROXY_PASSWORD, String.class);
    if (password != null) {
origin: jersey/jersey

threadPoolConfig.setCorePoolSize(ClientProperties.getValue(properties, ClientProperties.ASYNC_THREADPOOL_SIZE,
    threadPoolConfig.getCorePoolSize(), Integer.class));
containerIdleTimeout = JdkConnectorProperties.getValue(properties, JdkConnectorProperties.CONTAINER_IDLE_TIMEOUT,
followRedirects = ClientProperties.getValue(properties, ClientProperties.FOLLOW_REDIRECTS, true, Boolean.class);
        JdkConnectorProperties.DEFAULT_CONNECTION_IDLE_TIMEOUT, Integer.class);
responseTimeout = ClientProperties.getValue(properties, ClientProperties.READ_TIMEOUT, 0, Integer.class);
connectTimeout = ClientProperties.getValue(properties, ClientProperties.CONNECT_TIMEOUT, 0, Integer.class);
origin: jersey/jersey

boolean followRedirects = ClientProperties.getValue(clientRequest.getConfiguration().getProperties(),
    ClientProperties.FOLLOW_REDIRECTS, true);
origin: jersey/jersey

.getValue(runtimeProperties, ClientProperties.ASYNC_THREADPOOL_SIZE, Integer.class);
origin: jersey/jersey

.getValue(runtimeProperties, ClientProperties.ASYNC_THREADPOOL_SIZE, Integer.class);
origin: org.glassfish.jersey.core/jersey-client

.getValue(runtimeProperties, ClientProperties.ASYNC_THREADPOOL_SIZE, Integer.class);
origin: com.eclipsesource.jaxrs/jersey-all

private int getMaximumCacheLimit(Configuration configuration) {
  int limit = ClientProperties.getValue(configuration.getProperties(),
      ClientProperties.DIGESTAUTH_URI_CACHE_SIZELIMIT, MAXIMUM_DIGEST_CACHE_SIZE);
  if (limit < 1) {
    limit = MAXIMUM_DIGEST_CACHE_SIZE;
  }
  return limit;
}
origin: hstaudacher/osgi-jax-rs-connector

private int getMaximumCacheLimit(Configuration configuration) {
  int limit = ClientProperties.getValue(configuration.getProperties(),
      ClientProperties.DIGESTAUTH_URI_CACHE_SIZELIMIT, MAXIMUM_DIGEST_CACHE_SIZE);
  if (limit < 1) {
    limit = MAXIMUM_DIGEST_CACHE_SIZE;
  }
  return limit;
}
org.glassfish.jersey.clientClientPropertiesgetValue

Javadoc

Get the value of the specified property.

If the property is not set or the actual property value type is not compatible with the specified type, the method will return null.

Popular methods of ClientProperties

    Popular in Java

    • Making http requests using okhttp
    • getApplicationContext (Context)
    • onRequestPermissionsResult (Fragment)
    • requestLocationUpdates (LocationManager)
    • IOException (java.io)
      Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
    • PrintStream (java.io)
      Fake signature of an existing Java class.
    • StringTokenizer (java.util)
      Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
    • UUID (java.util)
      UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
    • ImageIO (javax.imageio)
    • Runner (org.openjdk.jmh.runner)
    • Top 17 Plugins for Android Studio
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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