Repository: wicket
Updated Branches:
  refs/heads/master 0f2d2e626 -> 812bf99b4


WICKET-6194 - guide and core added to parent pom

Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/812bf99b
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/812bf99b
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/812bf99b

Branch: refs/heads/master
Commit: 812bf99b428dbea3f2de69f21f219fc762ab2874
Parents: 0f2d2e6
Author: Tobias Soloschenko <[email protected]>
Authored: Mon Jul 11 20:49:21 2016 +0200
Committer: Tobias Soloschenko <[email protected]>
Committed: Mon Jul 11 21:15:42 2016 +0200

----------------------------------------------------------------------
 pom.xml                                         |  6 ++++
 .../wicket-http2/wicket-http2-jetty/pom.xml     |  1 -
 .../wicket-http2/wicket-http2-tomcat/pom.xml    |  3 +-
 .../wicket-http2/wicket-http2-undertow/pom.xml  |  1 -
 wicket-user-guide/src/docs/guide/http2push.gdoc |  3 ++
 .../src/docs/guide/http2push/http2push_1.gdoc   | 37 ++++++++++++++++++++
 wicket-user-guide/src/docs/guide/toc.yml        |  3 ++
 7 files changed, 50 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/812bf99b/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index b49c8ce..022b963 100644
--- a/pom.xml
+++ b/pom.xml
@@ -418,6 +418,12 @@
                        </dependency>
                        <dependency>
                                
<groupId>org.apache.wicket.experimental.wicket8</groupId>
+                               <artifactId>wicket-http2-core</artifactId>
+                               <version>0.1-SNAPSHOT</version>
+                               <type>jar</type>
+                       </dependency>
+                       <dependency>
+                               
<groupId>org.apache.wicket.experimental.wicket8</groupId>
                                <artifactId>wicket-http2-jetty</artifactId>
                                <version>0.1-SNAPSHOT</version>
                                <type>jar</type>

http://git-wip-us.apache.org/repos/asf/wicket/blob/812bf99b/wicket-experimental/wicket-http2/wicket-http2-jetty/pom.xml
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-http2/wicket-http2-jetty/pom.xml 
b/wicket-experimental/wicket-http2/wicket-http2-jetty/pom.xml
index 7d653c5..a3eba15 100644
--- a/wicket-experimental/wicket-http2/wicket-http2-jetty/pom.xml
+++ b/wicket-experimental/wicket-http2/wicket-http2-jetty/pom.xml
@@ -36,7 +36,6 @@
                <dependency>
                        
<groupId>org.apache.wicket.experimental.wicket8</groupId>
                        <artifactId>wicket-http2-core</artifactId>
-                       <version>0.1-SNAPSHOT</version>
                </dependency>
                <dependency>
                        <groupId>org.eclipse.jetty</groupId>

http://git-wip-us.apache.org/repos/asf/wicket/blob/812bf99b/wicket-experimental/wicket-http2/wicket-http2-tomcat/pom.xml
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-http2/wicket-http2-tomcat/pom.xml 
b/wicket-experimental/wicket-http2/wicket-http2-tomcat/pom.xml
index 658c73f..5bc7c46 100644
--- a/wicket-experimental/wicket-http2/wicket-http2-tomcat/pom.xml
+++ b/wicket-experimental/wicket-http2/wicket-http2-tomcat/pom.xml
@@ -36,13 +36,12 @@
                <dependency>
                        
<groupId>org.apache.wicket.experimental.wicket8</groupId>
                        <artifactId>wicket-http2-core</artifactId>
-                       <version>0.1-SNAPSHOT</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>tomcat-catalina</artifactId>
                        <version>8.5.3</version>
-            <scope>provided</scope>
+                       <scope>provided</scope>
                </dependency>
        </dependencies>
 </project>

http://git-wip-us.apache.org/repos/asf/wicket/blob/812bf99b/wicket-experimental/wicket-http2/wicket-http2-undertow/pom.xml
----------------------------------------------------------------------
diff --git a/wicket-experimental/wicket-http2/wicket-http2-undertow/pom.xml 
b/wicket-experimental/wicket-http2/wicket-http2-undertow/pom.xml
index a56171a..fa32469 100644
--- a/wicket-experimental/wicket-http2/wicket-http2-undertow/pom.xml
+++ b/wicket-experimental/wicket-http2/wicket-http2-undertow/pom.xml
@@ -36,7 +36,6 @@
                <dependency>
                        
<groupId>org.apache.wicket.experimental.wicket8</groupId>
                        <artifactId>wicket-http2-core</artifactId>
-                       <version>0.1-SNAPSHOT</version>
                </dependency>
                <dependency>
                    <groupId>io.undertow</groupId>

http://git-wip-us.apache.org/repos/asf/wicket/blob/812bf99b/wicket-user-guide/src/docs/guide/http2push.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/http2push.gdoc 
b/wicket-user-guide/src/docs/guide/http2push.gdoc
new file mode 100644
index 0000000..62e6a36
--- /dev/null
+++ b/wicket-user-guide/src/docs/guide/http2push.gdoc
@@ -0,0 +1,3 @@
+With Wicket 8.0.0-M2 the new HTTP/2 push API is supported which uses the 
PushBuilder.
+
+The advantage of this is that you reduce the latency and thus save a lot of 
time in waiting for requests.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/wicket/blob/812bf99b/wicket-user-guide/src/docs/guide/http2push/http2push_1.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/http2push/http2push_1.gdoc 
b/wicket-user-guide/src/docs/guide/http2push/http2push_1.gdoc
new file mode 100644
index 0000000..e03477d
--- /dev/null
+++ b/wicket-user-guide/src/docs/guide/http2push/http2push_1.gdoc
@@ -0,0 +1,37 @@
+Currently there are different implementations for each server to be used until 
the Servlet 4.0 (JSR 369) specification reaches the final state.
+
+Current supported servers are:
+* Eclipse Jetty
+* Apache Tomcat
+* redhat undertow
+
+
+For the setup you need to follow those steps:
+
+1. Setup your server to use HTTP/2 and follow the instructions provided by the 
vendor specific documentation
+
+2. Add two dependencies to provide the push functionality - one core 
dependency and one for the custom server implementation.
+{code}
+<dependency>
+       <groupId>org.apache.wicket.experimental.wicket8</groupId>
+       <artifactId>wicket-http2-core</artifactId>
+       <version>0.X-SNAPSHOT</version>
+</dependency>
+<dependency>
+       <groupId>org.apache.wicket.experimental.wicket8</groupId>
+       <artifactId>wicket-http2-jetty</artifactId>
+       <!--<artifactId>wicket-http2-tomcat</artifactId>
+       <artifactId>wicket-http2-undertow</artifactId>-->
+       <version>0.X-SNAPSHOT</version>
+</dependency>
+{code}
+
+3. Add the following PushHeaderItem to the renderHead method in your component.
+Example:
+{code}
+TestResourceReference instance = TestResourceReference.getInstance();
+response.render(CssHeaderItem.forReference(instance));
+response.render(new PushHeaderItem().push(Arrays.asList(new 
PushItem(instance))));
+{code}
+
+Basically the resource is pushed before the actual response of the component 
is send to the client (browser) and because of this the client does not need to 
send an additional request.

http://git-wip-us.apache.org/repos/asf/wicket/blob/812bf99b/wicket-user-guide/src/docs/guide/toc.yml
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/toc.yml 
b/wicket-user-guide/src/docs/guide/toc.yml
index d75318e..d72fb3d 100644
--- a/wicket-user-guide/src/docs/guide/toc.yml
+++ b/wicket-user-guide/src/docs/guide/toc.yml
@@ -215,6 +215,9 @@ internals:
   autocomponents: Markup parsing and Autocomponents
 lambdas:
   title: Lambda Expressions
+http2push:
+  title: Wicket HTTP/2 Support (Experimental)
+  http2push_1: Example Usage
 monitoring:
   title: Wicket Metrics Monitoring (Experimental)
   monitoring_1: Example setup

Reply via email to