cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gkossakow...@apache.org
Subject svn commit: r570387 - /cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/util/BlockCallHttpServletRequest.java
Date Tue, 28 Aug 2007 11:39:46 GMT
Author: gkossakowski
Date: Tue Aug 28 04:39:45 2007
New Revision: 570387

URL: http://svn.apache.org/viewvc?rev=570387&view=rev
Log:
Implement getProtocol() method in BlockCallHttpServletRequest (always returns "HTTP/1.1").

Modified:
    cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/util/BlockCallHttpServletRequest.java

Modified: cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/util/BlockCallHttpServletRequest.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/util/BlockCallHttpServletRequest.java?rev=570387&r1=570386&r2=570387&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/util/BlockCallHttpServletRequest.java
(original)
+++ cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/util/BlockCallHttpServletRequest.java
Tue Aug 28 04:39:45 2007
@@ -66,6 +66,12 @@
      * format definied by RFC 822, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3
      */
     final SimpleDateFormat dateFormat = new SimpleDateFormat("EEE', 'dd' 'MMM' 'yyyy' 'HH:mm:ss'
'Z", Locale.US);
+    
+    
+    /**
+     * Protocol of block call requests.
+     */
+    private final String protocol = "HTTP/1.1";  
 
     /**
      * @param uri points to the called servlet
@@ -289,8 +295,7 @@
      * @see javax.servlet.ServletRequest#getProtocol()
      */
     public String getProtocol() {
-        // TODO Implement this
-        throw new UnsupportedOperationException();
+        return this.protocol;
     }
 
     /* (non-Javadoc)



Mime
View raw message