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.io;
20
21 import org.jclouds.javax.annotation.Nullable;
22
23 import com.google.common.collect.Multimap;
24
25 /**
26 * @author Adrian Cole
27 */
28 public interface MutableContentMetadata extends ContentMetadata {
29 /**
30 * sets properties related to the http headers listed in
31 * {@link ContentMetadata#HTTP_HEADERS}
32 *
33 */
34 void setPropertiesFromHttpHeaders(Multimap<String, String> headers);
35
36 void setContentLength(@Nullable Long contentLength);
37
38 void setContentMD5(@Nullable byte[] md5);
39
40 void setContentType(@Nullable String contentType);
41
42 /**
43 * Set Content Disposition of the payload
44 * <p/>
45 * Not all providers may support it
46 *
47 * @param contentDisposition
48 */
49 void setContentDisposition(@Nullable String contentDisposition);
50
51 /**
52 * Set Content Language of the payload
53 * <p/>
54 * Not all providers may support it
55 *
56 * @param contentLanguage
57 */
58 void setContentLanguage(@Nullable String contentLanguage);
59
60 /**
61 * Set Content Encoding of the payload
62 * <p/>
63 * Not all providers may support it
64 *
65 * @param contentEncoding
66 */
67 void setContentEncoding(@Nullable String contentEncoding);
68
69 }