Codota Logo
RegionEndpointCache.putRegionForBucketName
Code IndexAdd Codota to your IDE (free)

How to use
putRegionForBucketName
method
in
org.jets3t.service.impl.rest.httpclient.RegionEndpointCache

Best Java code snippets using org.jets3t.service.impl.rest.httpclient.RegionEndpointCache.putRegionForBucketName (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: iterate-ch/cyberduck

  @Override
  public HttpUriRequest getRedirect(final HttpRequest request, final HttpResponse response, final HttpContext context) throws ProtocolException {
    if(response.containsHeader("x-amz-bucket-region")) {
      final String host = ((HttpUriRequest) request).getURI().getHost();
      if(!StringUtils.equals(session.getHost().getHostname(), host)) {
        regionEndpointCache.putRegionForBucketName(
          StringUtils.split(StringUtils.removeEnd(((HttpUriRequest) request).getURI().getHost(), session.getHost().getHostname()), ".")[0],
          response.getFirstHeader("x-amz-bucket-region").getValue());
      }
    }
    return super.getRedirect(request, response, context);
  }
});
origin: net.java.dev.jets3t/jets3t

String bucketName = ServiceUtils.findBucketNameInHostOrPath(
  originalURI, this.getEndpoint());
this.regionEndpointCache.putRegionForBucketName(
  bucketName, expectedRegion);
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

String bucketName = ServiceUtils.findBucketNameInHostOrPath(
  originalURI, this.getEndpoint());
this.regionEndpointCache.putRegionForBucketName(
  bucketName, expectedRegion);
origin: net.java.dev.jets3t/jets3t

this.regionEndpointCache.putRegionForBucketName(
  requestBucketName, region);
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

this.regionEndpointCache.putRegionForBucketName(
  requestBucketName, region);
origin: iterate-ch/cyberduck

cache.putRegionForBucketName(container.getName(), region.getIdentifier());
return region;
org.jets3t.service.impl.rest.httpclientRegionEndpointCacheputRegionForBucketName

Popular methods of RegionEndpointCache

  • containsRegionForBucketName
  • getRegionForBucketName
  • <init>
  • removeRegionForBucketName

Popular in Java

  • Reactive rest calls using spring rest template
  • startActivity (Activity)
  • getApplicationContext (Context)
  • getSystemService (Context)
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now