cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r915347 - in /cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs: core/Request.java core/Response.java ext/RuntimeDelegate.java
Date Tue, 23 Feb 2010 13:52:16 GMT
Author: bluk
Date: Tue Feb 23 13:52:15 2010
New Revision: 915347

URL: http://svn.apache.org/viewvc?rev=915347&view=rev
Log:
Add JAX-RS Request class

Added:
    cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/Request.java
      - copied, changed from r915346, cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/ext/RuntimeDelegate.java
Modified:
    cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/Response.java
    cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/ext/RuntimeDelegate.java

Copied: cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/Request.java (from
r915346, cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/ext/RuntimeDelegate.java)
URL: http://svn.apache.org/viewvc/cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/Request.java?p2=cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/Request.java&p1=cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/ext/RuntimeDelegate.java&r1=915346&r2=915347&rev=915347&view=diff
==============================================================================
--- cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/ext/RuntimeDelegate.java
(original)
+++ cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/Request.java Tue Feb
23 13:52:15 2010
@@ -17,27 +17,20 @@
  * under the License.    
  */
 
-package javax.ws.rs.ext;
+package javax.ws.rs.core;
 
-import javax.ws.rs.core.UriBuilder;
-import javax.ws.rs.core.Variant;
+import java.util.Date;
+import java.util.List;
 
-public abstract class RuntimeDelegate {
+public interface Request {
+    public Response.ResponseBuilder evaluatePreconditions(Date lastModified);
 
-    public static interface HeaderDelegate<T> {
-        public T fromString(String str);
+    public Response.ResponseBuilder evaluatePreconditions(Date lastModified,
+                                                          EntityTag entityTag);
 
-        public String toString(T obj);
-    }
+    public Response.ResponseBuilder evaluatePreconditions(EntityTag entityTag);
 
-    public static RuntimeDelegate getInstance() {
-        return null;
-    }
-
-    public abstract UriBuilder createUriBuilder();
-
-    public abstract Variant.VariantListBuilder createVariantListBuilder();
-
-    public abstract <T> RuntimeDelegate.HeaderDelegate<T> createHeaderDelegate(Class<T>
headerType);
+    public String getMethod();
 
+    public Variant selectVariant(List<Variant> variants);
 }

Modified: cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/Response.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/Response.java?rev=915347&r1=915346&r2=915347&view=diff
==============================================================================
--- cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/Response.java (original)
+++ cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/Response.java Tue Feb
23 13:52:15 2010
@@ -21,4 +21,8 @@
 
 public class Response {
 
+    public class ResponseBuilder {
+
+    }
+
 }

Modified: cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/ext/RuntimeDelegate.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/ext/RuntimeDelegate.java?rev=915347&r1=915346&r2=915347&view=diff
==============================================================================
--- cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/ext/RuntimeDelegate.java
(original)
+++ cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/ext/RuntimeDelegate.java
Tue Feb 23 13:52:15 2010
@@ -19,6 +19,7 @@
 
 package javax.ws.rs.ext;
 
+import javax.ws.rs.core.Response;
 import javax.ws.rs.core.UriBuilder;
 import javax.ws.rs.core.Variant;
 
@@ -40,4 +41,6 @@
 
     public abstract <T> RuntimeDelegate.HeaderDelegate<T> createHeaderDelegate(Class<T>
headerType);
 
+    public abstract Response.ResponseBuilder createResponseBuilder();
+
 }



Mime
View raw message