forked from fcrepo-exts/fcrepo-java-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FedoraHeaderConstants.java
76 lines (46 loc) · 2.2 KB
/
FedoraHeaderConstants.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree.
*/
package org.fcrepo.client;
/**
* Header constants used in calls to the Fedora API
*
* @author bbpennel
*/
public class FedoraHeaderConstants {
public static final String CONTENT_TYPE = "Content-Type";
public static final String CONTENT_DISPOSITION = "Content-Disposition";
public static final String CONTENT_DISPOSITION_FILENAME = "filename";
public static final String CONTENT_DISPOSITION_CREATION_DATE = "creation-date";
public static final String CONTENT_DISPOSITION_MODIFICATION_DATE = "modification-date";
public static final String CONTENT_DISPOSITION_SIZE = "size";
public static final String SLUG = "Slug";
public static final String DIGEST = "digest";
public static final String LOCATION = "Location";
public static final String ACCEPT = "Accept";
public static final String PREFER = "Prefer";
public static final String RANGE = "Range";
public static final String IF_NONE_MATCH = "If-None-Match";
public static final String IF_MODIFIED_SINCE = "If-Modified-Since";
public static final String IF_MATCH = "If-Match";
public static final String IF_UNMODIFIED_SINCE = "If-Unmodified-Since";
public static final String LAST_MODIFIED = "Last-Modified";
public static final String ETAG = "ETag";
public static final String STATE_TOKEN = "X-State-Token";
public static final String IF_STATE_TOKEN = "X-If-State-Token";
public static final String DESTINATION = "Destination";
public static final String LINK = "Link";
public static final String WANT_DIGEST = "Want-Digest";
public static final String CACHE_CONTROL = "Cache-Control";
/**
* Datetime for a memento, either provided when creating the memento or returned when retrieving one.
*/
public static final String MEMENTO_DATETIME = "Memento-Datetime";
public static final String ACCEPT_DATETIME = "Accept-Datetime";
public static final String ATOMIC_ID = "Atomic-Id";
public static final String ATOMIC_EXPIRES = "Atomic-Expires";
private FedoraHeaderConstants() {
}
}