]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.cms/src/org/argeo/cms/http/HttpHeader.java
Releasing
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / http / HttpHeader.java
index 217b7a48aa4a63c8cc00765330cf1cd2875678ba..67eec9172048164800d112a81c2fef74c672ce9b 100644 (file)
@@ -1,20 +1,33 @@
 package org.argeo.cms.http;
 
-/** Standard HTTP headers (including WebDav). */
+/** Selection of standard or common HTTP headers (including WebDav). */
 public enum HttpHeader {
        AUTHORIZATION("Authorization"), //
        WWW_AUTHENTICATE("WWW-Authenticate"), //
        ALLOW("Allow"), //
+       VIA("Via"), //
+       CONTENT_TYPE("Content-Type"), //
+       CONTENT_LENGTH("Content-Length"), //
+       CONTENT_DISPOSITION("Content-Disposition"), //
+       DATE("Date"), //
 
        // WebDav
        DAV("DAV"), //
        DEPTH("Depth"), //
+
+       // Non-standard
+       X_FORWARDED_HOST("X-Forwarded-Host"), //
        ;
 
+       // WWW-Authenticate related constants
        public final static String BASIC = "Basic";
        public final static String REALM = "realm";
        public final static String NEGOTIATE = "Negotiate";
 
+       // Content-Disposition related constants
+       public final static String ATTACHMENT = "attachment";
+       public final static String FILENAME = "filename";
+
        private final String name;
 
        private HttpHeader(String headerName) {