- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {ArrayList a =
new ArrayList<String>()
new ArrayList()
new ArrayList<Object>()
- Smart code suggestions by Codota
}
@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); } });
String bucketName = ServiceUtils.findBucketNameInHostOrPath( originalURI, this.getEndpoint()); this.regionEndpointCache.putRegionForBucketName( bucketName, expectedRegion);
String bucketName = ServiceUtils.findBucketNameInHostOrPath( originalURI, this.getEndpoint()); this.regionEndpointCache.putRegionForBucketName( bucketName, expectedRegion);
this.regionEndpointCache.putRegionForBucketName( requestBucketName, region);
this.regionEndpointCache.putRegionForBucketName( requestBucketName, region);
cache.putRegionForBucketName(container.getName(), region.getIdentifier()); return region;