Codota Logo
StorageService.getObject
Code IndexAdd Codota to your IDE (free)

How to use
getObject
method
in
org.jets3t.service.StorageService

Best Java code snippets using org.jets3t.service.StorageService.getObject (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

/**
 * Returns an object representing the details and data of an item in a service,
 * without applying any preconditions.
 * <p>
 * This method can be performed by anonymous services. Anonymous services
 * can get a publicly-readable object.
 * <p>
 * <b>Important:</b> It is the caller's responsibility to close the object's data input stream.
 * The data stream should be consumed and closed as soon as is practical as network connections
 * may be held open until the streams are closed. Excessive unclosed streams can lead to
 * connection starvation.
 *
 * @param bucketName
 * the name of the bucket containing the object.
 * @param objectKey
 * the key identifying the object.
 * @return
 * the object with the given key, including the object's data input stream.
 * @throws ServiceException
 */
public StorageObject getObject(String bucketName, String objectKey) throws ServiceException {
  return getObject(bucketName, objectKey,
    null, null, null, null, null, null);
}
origin: net.java.dev.jets3t/jets3t

public void run() {
  try {
    if (headOnly) {
      result = storageService.getObjectDetails(
        bucketName, objectKey, null, null, null, null);
    } else {
      result = storageService.getObject(
        bucketName, objectKey);
    }
  } catch (ServiceException e) {
    if (this.errorPermitter != null && this.errorPermitter.isPermitted(e)) {
      result = new ThrowableBearingStorageObject(this.objectKey, e);
    } else {
      result = e;
    }
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

public void run() {
  try {
    if (headOnly) {
      result = storageService.getObjectDetails(
        bucketName, objectKey, null, null, null, null);
    } else {
      result = storageService.getObject(
        bucketName, objectKey);
    }
  } catch (ServiceException e) {
    if (this.errorPermitter != null && this.errorPermitter.isPermitted(e)) {
      result = new ThrowableBearingStorageObject(this.objectKey, e);
    } else {
      result = e;
    }
  }
}
origin: net.java.dev.jets3t/jets3t

/**
 * Returns an object representing the details and data of an item in a service,
 * without applying any preconditions.
 * <p>
 * This method can be performed by anonymous services. Anonymous services
 * can get a publicly-readable object.
 * <p>
 * <b>Important:</b> It is the caller's responsibility to close the object's data input stream.
 * The data stream should be consumed and closed as soon as is practical as network connections
 * may be held open until the streams are closed. Excessive unclosed streams can lead to
 * connection starvation.
 *
 * @param bucketName
 * the name of the bucket containing the object.
 * @param objectKey
 * the key identifying the object.
 * @return
 * the object with the given key, including the object's data input stream.
 * @throws ServiceException
 */
public StorageObject getObject(String bucketName, String objectKey) throws ServiceException {
  return getObject(bucketName, objectKey,
    null, null, null, null, null, null);
}
origin: net.java.dev.jets3t/jets3t

  credentials = null;
  StorageService service = getStorageService();
  encryptedCredentialsObject = service.getObject(
    bucketName[0], credentialObjectKey[0]);
} catch (ServiceException e) {
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

  credentials = null;
  StorageService service = getStorageService();
  encryptedCredentialsObject = service.getObject(
    bucketName[0], credentialObjectKey[0]);
} catch (ServiceException e) {
origin: net.java.dev.jets3t/jets3t

object = storageService.getObject(
  bucketName, objectKey);
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

object = storageService.getObject(
  bucketName, objectKey);
origin: io.druid.extensions/druid-s3-extensions

 @Override
 public InputStream openStream() throws IOException
 {
  try {
   final long start;
   final long end = objectDetails.getContentLength() - 1;
   if (offset > 0 && offset < objectDetails.getContentLength()) {
    start = offset;
   } else if (offset < 0 && (-1 * offset) < objectDetails.getContentLength()) {
    start = objectDetails.getContentLength() + offset;
   } else {
    start = 0;
   }
   return service.getObject(
     config.getS3Bucket(),
     taskKey,
     null,
     null,
     new String[]{objectDetails.getETag()},
     null,
     start,
     end
   ).getDataInputStream();
  }
  catch (ServiceException e) {
   throw new IOException(e);
  }
 }
}
org.jets3t.serviceStorageServicegetObject

Javadoc

Returns an object representing the details and data of an item in a service, without applying any preconditions.

This method can be performed by anonymous services. Anonymous services can get a publicly-readable object.

Important: It is the caller's responsibility to close the object's data input stream. The data stream should be consumed and closed as soon as is practical as network connections may be held open until the streams are closed. Excessive unclosed streams can lead to connection starvation.

Popular methods of StorageService

  • getObjectDetails
    Returns an object representing the details of an item that meets any given preconditions. The object
  • putObject
    Puts an object inside an existing bucket, creating a new object or overwriting an existing one with
  • assertAuthenticatedConnection
    Throws an exception if this service is anonymous (that is, it was created without an ProviderCredent
  • assertValidBucket
    Throws an exception if a bucket is null or contains a null/empty name.
  • assertValidObject
    Throws an exception if an object is null or contains a null/empty key.
  • copyObject
    Copy an object. You can copy an object within a single bucket or between buckets, and can optionally
  • copyObjectImpl
    Copy an object within your account. Copies within a single bucket or between buckets, and optionally
  • createBucket
    Create a bucket with the Access Control List settings of the bucket object (if any).Caution: Perform
  • createBucketImpl
  • deleteBucketImpl
  • deleteObject
    Deletes an object from a bucket. This method can be performed by anonymous services. Anonymous servi
  • deleteObjectImpl
  • deleteObject,
  • deleteObjectImpl,
  • getAccountOwnerImpl,
  • getBucket,
  • getBucketAclImpl,
  • getHttpsOnly,
  • getJetS3tProperties,
  • getObjectAcl,
  • getObjectAclImpl

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • requestLocationUpdates (LocationManager)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JPanel (javax.swing)
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