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

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

Best Java code snippets using org.jets3t.service.StorageService.assertValidObject (Showing top 6 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: net.java.dev.jets3t/jets3t

/**
 * Deletes an object from a bucket.
 * <p>
 * This method can be performed by anonymous services. Anonymous services
 * can delete objects from publicly-writable buckets.
 *
 * @param bucketName
 * the name of the bucket containing the object to be deleted.
 * @param objectKey
 * the key representing the object
 * @throws ServiceException
 */
public void deleteObject(String bucketName, String objectKey) throws ServiceException {
  assertValidObject(objectKey, "deleteObject");
  MxDelegate.getInstance().registerStorageObjectDeleteEvent(bucketName, objectKey);
  deleteObjectImpl(bucketName, objectKey, null, null, null);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

/**
 * Deletes an object from a bucket.
 * <p>
 * This method can be performed by anonymous services. Anonymous services
 * can delete objects from publicly-writable buckets.
 *
 * @param bucketName
 * the name of the bucket containing the object to be deleted.
 * @param objectKey
 * the key representing the object
 * @throws ServiceException
 */
public void deleteObject(String bucketName, String objectKey) throws ServiceException {
  assertValidObject(objectKey, "deleteObject");
  MxDelegate.getInstance().registerStorageObjectDeleteEvent(bucketName, objectKey);
  deleteObjectImpl(bucketName, objectKey, null, null, null);
}
origin: net.java.dev.jets3t/jets3t

/**
 * Applies access control settings to an object. The ACL settings must be included
 * with the object.
 *
 * This method can be performed by anonymous services, but can only succeed if the
 * object's existing ACL already allows write access by the anonymous user.
 * In general, you can only access the ACL of an object if the ACL already in place
 * for that object allows you to do so.
 *
 * @param bucketName
 * the name of the bucket containing the object to modify.
 * @param object
 * the object with ACL settings that will be applied.
 * @throws ServiceException
 */
public void putObjectAcl(String bucketName, StorageObject object) throws ServiceException {
  assertValidObject(object, "Put Object Access Control List");
  putObjectAcl(bucketName, object.getKey(), object.getAcl());
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

/**
 * Applies access control settings to an object. The ACL settings must be included
 * with the object.
 *
 * This method can be performed by anonymous services, but can only succeed if the
 * object's existing ACL already allows write access by the anonymous user.
 * In general, you can only access the ACL of an object if the ACL already in place
 * for that object allows you to do so.
 *
 * @param bucketName
 * the name of the bucket containing the object to modify.
 * @param object
 * the object with ACL settings that will be applied.
 * @throws ServiceException
 */
public void putObjectAcl(String bucketName, StorageObject object) throws ServiceException {
  assertValidObject(object, "Put Object Access Control List");
  putObjectAcl(bucketName, object.getKey(), object.getAcl());
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

/**
 * Puts an object inside an existing bucket, creating a new object or overwriting
 * an existing one with the same key. The Access Control List settings of the object
 * (if any) will also be applied.
 * <p>
 * This method can be performed by anonymous services. Anonymous services
 * can put objects into a publicly-writable bucket.
 *
 * @param bucketName
 * the name of the bucket inside which the object will be put.
 * @param object
 * the object containing all information that will be written to the service.
 * At very least this object must be valid. Beyond that it may contain: an input stream
 * with the object's data content, metadata, and access control settings.
 * <p>
 * <b>Note:</b> It is very important to set the object's Content-Length to match the size of the
 * data input stream when possible, as this can remove the need to read data into memory to
 * determine its size.
 *
 * @return
 * the object populated with any metadata.
 * @throws ServiceException
 */
public StorageObject putObject(String bucketName, StorageObject object)
  throws ServiceException
{
  assertValidObject(object, "Create Object in bucket " + bucketName);
  MxDelegate.getInstance().registerStorageObjectPutEvent(bucketName, object.getKey());
  return putObjectImpl(bucketName, object);
}
origin: net.java.dev.jets3t/jets3t

/**
 * Puts an object inside an existing bucket, creating a new object or overwriting
 * an existing one with the same key. The Access Control List settings of the object
 * (if any) will also be applied.
 * <p>
 * This method can be performed by anonymous services. Anonymous services
 * can put objects into a publicly-writable bucket.
 *
 * @param bucketName
 * the name of the bucket inside which the object will be put.
 * @param object
 * the object containing all information that will be written to the service.
 * At very least this object must be valid. Beyond that it may contain: an input stream
 * with the object's data content, metadata, and access control settings.
 * <p>
 * <b>Note:</b> It is very important to set the object's Content-Length to match the size of the
 * data input stream when possible, as this can remove the need to read data into memory to
 * determine its size.
 *
 * @return
 * the object populated with any metadata.
 * @throws ServiceException
 */
public StorageObject putObject(String bucketName, StorageObject object)
  throws ServiceException
{
  assertValidObject(object, "Create Object in bucket " + bucketName);
  MxDelegate.getInstance().registerStorageObjectPutEvent(bucketName, object.getKey());
  return putObjectImpl(bucketName, object);
}
org.jets3t.serviceStorageServiceassertValidObject

Javadoc

Throws an exception if an object's key name is null or empty.

Popular methods of StorageService

  • getObject
    Returns an object representing the details and data of an item that meets any given preconditions.Im
  • 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.
  • 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

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JButton (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
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