| 1 | /** |
| 2 | * Licensed to jclouds, Inc. (jclouds) under one or more |
| 3 | * contributor license agreements. See the NOTICE file |
| 4 | * distributed with this work for additional information |
| 5 | * regarding copyright ownership. jclouds licenses this file |
| 6 | * to you under the Apache License, Version 2.0 (the |
| 7 | * "License"); you may not use this file except in compliance |
| 8 | * with the License. You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, |
| 13 | * software distributed under the License is distributed on an |
| 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | * KIND, either express or implied. See the License for the |
| 16 | * specific language governing permissions and limitations |
| 17 | * under the License. |
| 18 | */ |
| 19 | package org.jclouds.blobstore.attr; |
| 20 | |
| 21 | /** |
| 22 | * Represents the capabilities of a BlobStore |
| 23 | * |
| 24 | * @author Adrian Cole |
| 25 | * |
| 26 | */ |
| 27 | public enum BlobCapability { |
| 28 | |
| 29 | /** |
| 30 | * supports |
| 31 | */ |
| 32 | CONDITIONAL_MATCH, |
| 33 | |
| 34 | /** |
| 35 | * receive pieces of a blob via Content-Range header |
| 36 | */ |
| 37 | CONDITIONAL_DATE, |
| 38 | |
| 39 | /** |
| 40 | * receive pieces of a blob via Content-Range header |
| 41 | */ |
| 42 | GET_RANGE, |
| 43 | |
| 44 | /** |
| 45 | * replace pieces of a blob via Content-Range header |
| 46 | */ |
| 47 | PUT_RANGE, |
| 48 | |
| 49 | /** |
| 50 | * Enable "chunked"/"streamed" data, where the size needn't be known in advance. |
| 51 | */ |
| 52 | CHUNKED_ENCODING, |
| 53 | |
| 54 | /** |
| 55 | * blobs can have key-value pairs associated with them |
| 56 | */ |
| 57 | METADATA, |
| 58 | |
| 59 | /** |
| 60 | * blobs have an etag associated with them |
| 61 | */ |
| 62 | ETAG, |
| 63 | |
| 64 | /** |
| 65 | * blobs have a system generated ID associated with them |
| 66 | */ |
| 67 | ID, |
| 68 | |
| 69 | /** |
| 70 | * blobstore stores Content-MD5 header |
| 71 | */ |
| 72 | MD5, |
| 73 | |
| 74 | /** |
| 75 | * etag is the same value as the MD5 of the object |
| 76 | */ |
| 77 | ETAG_EQUALS_MD5, |
| 78 | |
| 79 | /** |
| 80 | * blobs will have last modified date associated with them |
| 81 | */ |
| 82 | LAST_MODIFIED, |
| 83 | |
| 84 | /** |
| 85 | * timestamps are precise in milliseconds (as opposed to seconds) |
| 86 | */ |
| 87 | MILLISECOND_PRECISION, |
| 88 | |
| 89 | /** |
| 90 | * blob size in bytes is exposed by service listing |
| 91 | */ |
| 92 | SIZE, |
| 93 | |
| 94 | |
| 95 | /** |
| 96 | * possible to expose blobs to anonymous access |
| 97 | */ |
| 98 | PUBLIC |
| 99 | |
| 100 | } |