Class UploadOptions
java.lang.Object
com.google.appengine.api.blobstore.UploadOptions
Allows users to customize the behavior of a single upload to the
BlobstoreService.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains static creation methods forUploadOptions. -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonglonggoogleStorageBucketName(String bucketName) booleanDetermines if the storage bucket is set.inthashCode()booleanDetermines if the maximum size is set.booleanDetermines if the maximum upload size per blob is set.maxUploadSizeBytes(long maxUploadSizeBytes) Sets the maximum size in bytes that for the total upload.maxUploadSizeBytesPerBlob(long maxUploadSizeBytesPerBlob) Sets the maximum size in bytes for any one blob in the upload.toString()
-
Method Details
-
maxUploadSizeBytesPerBlob
Sets the maximum size in bytes for any one blob in the upload. If any blob in the upload exceeds this value then a 413 error will be returned to the client.- Parameters:
maxUploadSizeBytesPerBlob- The maximum size in bytes that any one blob in the upload can be.- Returns:
this(for chaining)
-
hasMaxUploadSizeBytesPerBlob
public boolean hasMaxUploadSizeBytesPerBlob()Determines if the maximum upload size per blob is set. -
getMaxUploadSizeBytesPerBlob
public long getMaxUploadSizeBytesPerBlob() -
maxUploadSizeBytes
Sets the maximum size in bytes that for the total upload. If the upload exceeds this value then a 413 error will be returned to the client.- Parameters:
maxUploadSizeBytes- The maximum size in bytes for the upload.- Returns:
this(for chaining)
-
hasMaxUploadSizeBytes
public boolean hasMaxUploadSizeBytes()Determines if the maximum size is set. -
getMaxUploadSizeBytes
public long getMaxUploadSizeBytes() -
googleStorageBucketName
-
hasGoogleStorageBucketName
public boolean hasGoogleStorageBucketName()Determines if the storage bucket is set. -
getGoogleStorageBucketName
-
hashCode
public int hashCode() -
equals
-
toString
-