tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1738760 - /tomcat/trunk/java/javax/servlet/http/HttpServletRequestWrapper.java
Date Tue, 12 Apr 2016 10:59:34 GMT
Author: markt
Date: Tue Apr 12 10:59:34 2016
New Revision: 1738760

URL: http://svn.apache.org/viewvc?rev=1738760&view=rev
Log:
getPushBuilder() needs to delegate to wrapped Request by default

Modified:
    tomcat/trunk/java/javax/servlet/http/HttpServletRequestWrapper.java

Modified: tomcat/trunk/java/javax/servlet/http/HttpServletRequestWrapper.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/http/HttpServletRequestWrapper.java?rev=1738760&r1=1738759&r2=1738760&view=diff
==============================================================================
--- tomcat/trunk/java/javax/servlet/http/HttpServletRequestWrapper.java (original)
+++ tomcat/trunk/java/javax/servlet/http/HttpServletRequestWrapper.java Tue Apr 12 10:59:34
2016
@@ -396,4 +396,18 @@ public class HttpServletRequestWrapper e
     public boolean isPushSupported() {
         return this._getHttpServletRequest().isPushSupported();
     }
+
+
+    /**
+     * {@inheritDoc}
+     * <p>
+     * The default behavior of this method is to return
+     * {@link HttpServletRequest#getPushBuilder()} on the wrapped request object.
+     *
+     * @since Servlet 4.0
+     */
+    @Override
+    public PushBuilder getPushBuilder() {
+        return this._getHttpServletRequest().getPushBuilder();
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message