You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by bl...@apache.org on 2010/02/23 14:52:06 UTC

svn commit: r915345 - /cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/HttpHeaders.java

Author: bluk
Date: Tue Feb 23 13:52:06 2010
New Revision: 915345

URL: http://svn.apache.org/viewvc?rev=915345&view=rev
Log:
Add JAX-RS HttpHeaders

Added:
    cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/HttpHeaders.java   (with props)

Added: cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/HttpHeaders.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/HttpHeaders.java?rev=915345&view=auto
==============================================================================
--- cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/HttpHeaders.java (added)
+++ cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/HttpHeaders.java Tue Feb 23 13:52:06 2010
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package javax.ws.rs.core;
+
+import java.util.List;
+import java.util.Locale;
+import java.util.Map;
+
+public interface HttpHeaders {
+    public static final String ACCEPT              = "Accept";
+    public static final String ACCEPT_CHARSET      = "Accept-Charset";
+    public static final String ACCEPT_ENCODING     = "Accept-Encoding";
+    public static final String ACCEPT_LANGUAGE     = "Accept-Language";
+    public static final String AUTHORIZATION       = "Authorization";
+    public static final String CACHE_CONTROL       = "Cache-Control";
+    public static final String CONTENT_ENCODING    = "Content-Encoding";
+    public static final String CONTENT_LANGUAGE    = "Content-Language";
+    public static final String CONTENT_LENGTH      = "Content-Length";
+    public static final String CONTENT_LOCATION    = "Content-Location";
+    public static final String CONTENT_TYPE        = "Content-Type";
+    public static final String COOKIE              = "Cookie";
+    public static final String DATE                = "Date";
+    public static final String ETAG                = "ETag";
+    public static final String EXPIRES             = "Expires";
+    public static final String HOST                = "Host";
+    public static final String IF_MATCH            = "If-Match";
+    public static final String IF_MODIFIED_SINCE   = "If-Modified-Since";
+    public static final String IF_NONE_MATCH       = "If-None-Match";
+    public static final String IF_UNMODIFIED_SINCE = "If-Unmodified-Since";
+    public static final String LAST_MODIFIED       = "Last-Modified";
+    public static final String LOCATION            = "Location";
+    public static final String SET_COOKIE          = "Set-Cookie";
+    public static final String USER_AGENT          = "User-Agent";
+    public static final String VARY                = "Vary";
+    public static final String WWW_AUTHENTICATE    = "WWW-Authenticate";
+
+    public List<Locale> getAcceptableLanguages();
+
+    public List<MediaType> getAcceptableMediaTypes();
+
+    public Map<String, Cookie> getCookies();
+
+    public Locale getLanguage();
+
+    public MediaType getMediaType();
+
+    public List<String> getRequestHeader(String name);
+
+    public MultivaluedMap<String, String> getRequestHeaders();
+}

Propchange: cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/HttpHeaders.java
------------------------------------------------------------------------------
    svn:eol-style = native