f87dd3c4fbadeec69ad8d1100d6f800d25808b89
[pithos-web-client] / src / gr / grnet / pithos / web / client / Const.java
1 package gr.grnet.pithos.web.client;
2
3 import com.google.gwt.regexp.shared.RegExp;
4
5 /**
6  * Gathers application-wide constants, like <code>X-Auth-Token</code>
7  */
8 public class Const {
9     public static final String X_AUTH_TOKEN = "X-Auth-Token";
10     public static final String OTHER_PROPERTIES = "otherProperties";
11     public static final String LOGIN_URL = "loginUrl";
12     public static final String IF_MODIFIED_SINCE = "If-Modified-Since";
13     public static final String PERCENT_100 = "100%";
14     public static final String DATE_FORMAT_1 = "EEE, dd MMM yyyy HH:mm:ss";
15     public static final String AUTH_COOKIE = "authCookie";
16     public static final String X_COPY_FROM = "X-Copy-From";
17     public static final String X_SOURCE_ACCOUNT = "X-Source-Account";
18     public static final String CONTENT_TYPE = "Content-Type";
19     public static final String ACCEPT = "Accept";
20     public static final String CONTENT_LENGTH = "Content-Length";
21     public static final String X_MOVE_FROM = "X-Move-From";
22     public static final String HOME_CONTAINER = "pithos";
23     public static final String TRASH_CONTAINER = "trash";
24     public static final RegExp EMAIL_REGEX = RegExp.compile("^[A-Z0-9._%+-]+@[A-Z0-9.-]+[.][A-Z]{2,4}$", "i");
25     public static final String X_ACCOUNT_GROUP_ = "X-Account-Group-";
26
27     private Const() {}
28
29
30 }