rjack-jetty 7.6.16.0-java → 9.0.0.0-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. data/History.rdoc +11 -23
  2. data/Manifest.txt +12 -12
  3. data/README.rdoc +9 -7
  4. data/assembly.xml +1 -1
  5. data/lib/rjack-jetty.rb +12 -14
  6. data/lib/rjack-jetty/base.rb +4 -3
  7. data/lib/rjack-jetty/javax.servlet-3.0.0.v201112011016.jar +0 -0
  8. data/lib/rjack-jetty/jetty-client-9.0.0.M3.jar +0 -0
  9. data/lib/rjack-jetty/jetty-continuation-9.0.0.M3.jar +0 -0
  10. data/lib/rjack-jetty/jetty-http-9.0.0.M3.jar +0 -0
  11. data/lib/rjack-jetty/jetty-io-9.0.0.M3.jar +0 -0
  12. data/lib/rjack-jetty/jetty-rewrite-9.0.0.M3.jar +0 -0
  13. data/lib/rjack-jetty/jetty-security-9.0.0.M3.jar +0 -0
  14. data/lib/rjack-jetty/jetty-server-9.0.0.M3.jar +0 -0
  15. data/lib/rjack-jetty/jetty-servlet-9.0.0.M3.jar +0 -0
  16. data/lib/rjack-jetty/jetty-util-9.0.0.M3.jar +0 -0
  17. data/lib/rjack-jetty/jetty-webapp-9.0.0.M3.jar +0 -0
  18. data/lib/rjack-jetty/jetty-xml-9.0.0.M3.jar +0 -0
  19. data/lib/rjack-jetty/rjack-jetty-1.0.jar +0 -0
  20. data/pom.xml +9 -9
  21. data/webapps/test.war +0 -0
  22. metadata +56 -39
  23. checksums.yaml +0 -7
  24. data/lib/rjack-jetty/jetty-client-7.6.16.v20140903.jar +0 -0
  25. data/lib/rjack-jetty/jetty-continuation-7.6.16.v20140903.jar +0 -0
  26. data/lib/rjack-jetty/jetty-http-7.6.16.v20140903.jar +0 -0
  27. data/lib/rjack-jetty/jetty-io-7.6.16.v20140903.jar +0 -0
  28. data/lib/rjack-jetty/jetty-rewrite-7.6.16.v20140903.jar +0 -0
  29. data/lib/rjack-jetty/jetty-security-7.6.16.v20140903.jar +0 -0
  30. data/lib/rjack-jetty/jetty-server-7.6.16.v20140903.jar +0 -0
  31. data/lib/rjack-jetty/jetty-servlet-7.6.16.v20140903.jar +0 -0
  32. data/lib/rjack-jetty/jetty-util-7.6.16.v20140903.jar +0 -0
  33. data/lib/rjack-jetty/jetty-webapp-7.6.16.v20140903.jar +0 -0
  34. data/lib/rjack-jetty/jetty-xml-7.6.16.v20140903.jar +0 -0
  35. data/lib/rjack-jetty/servlet-api-2.5.jar +0 -0
data/History.rdoc CHANGED
@@ -1,26 +1,14 @@
1
- === 7.6.16.0 (2015-1-23)
2
- * Update to Jetty 7.6.16.v20140903
3
-
4
- === 7.6.15.0 (2014-8-18)
5
- * Update to Jetty 7.6.15.v20140411
6
-
7
- === 7.6.14.0 (2013-11-7)
8
- * Update to Jetty 7.6.14.v20131031
9
-
10
- === 7.6.13.0 (2013-9-23)
11
- * Update to Jetty 7.6.13.v20130916
12
-
13
- === 7.6.12.0 (2013-8-6)
14
- * Update to Jetty 7.6.12.v20130726
15
-
16
- === 7.6.11.0 (2013-5-28)
17
- * Update to Jetty 7.6.11.v20130520
18
-
19
- === 7.6.10.0 (2013-3-14)
20
- * Update to Jetty 7.6.10.v20130312
21
-
22
- === 7.6.9.0 (2013-2-5)
23
- * Update to Jetty 7.6.9.v20130131
1
+ === 9.0.0.0 (2012-12-13)
2
+ * Update to Jetty 9.0.0.M3. Note this a major upgrade and currently
3
+ only a milestone release. The server itself appears to be quite
4
+ stable while jetty-client, which was rewritten, is still undergoing
5
+ changes. An upstream M4 is expected and will be provided here as
6
+ 9.0.0.1, and so on until a final release is provided.
7
+ * Includes javax.servlet 3.0.0
8
+ * There are a few potentially breaking interface changes to the
9
+ provided RJack::Jetty::ServerFactory, for example create_connectors
10
+ now takes a server parameter.
11
+ * The minimum thread count is raised to 7 (per testing).
24
12
 
25
13
  === 7.6.8.0 (2012-11-9)
26
14
  * Update to Jetty 7.6.8.v20121106
data/Manifest.txt CHANGED
@@ -15,16 +15,16 @@ test/test_jetty.rb
15
15
  webapps/test/index.html
16
16
  webapps/test/WEB-INF/web.xml
17
17
  webapps/test.war
18
- lib/rjack-jetty/jetty-client-7.6.16.v20140903.jar
19
- lib/rjack-jetty/jetty-continuation-7.6.16.v20140903.jar
20
- lib/rjack-jetty/jetty-http-7.6.16.v20140903.jar
21
- lib/rjack-jetty/jetty-io-7.6.16.v20140903.jar
22
- lib/rjack-jetty/jetty-rewrite-7.6.16.v20140903.jar
23
- lib/rjack-jetty/jetty-security-7.6.16.v20140903.jar
24
- lib/rjack-jetty/jetty-server-7.6.16.v20140903.jar
25
- lib/rjack-jetty/jetty-servlet-7.6.16.v20140903.jar
26
- lib/rjack-jetty/jetty-util-7.6.16.v20140903.jar
27
- lib/rjack-jetty/jetty-webapp-7.6.16.v20140903.jar
28
- lib/rjack-jetty/jetty-xml-7.6.16.v20140903.jar
18
+ lib/rjack-jetty/javax.servlet-3.0.0.v201112011016.jar
19
+ lib/rjack-jetty/jetty-client-9.0.0.M3.jar
20
+ lib/rjack-jetty/jetty-continuation-9.0.0.M3.jar
21
+ lib/rjack-jetty/jetty-http-9.0.0.M3.jar
22
+ lib/rjack-jetty/jetty-io-9.0.0.M3.jar
23
+ lib/rjack-jetty/jetty-rewrite-9.0.0.M3.jar
24
+ lib/rjack-jetty/jetty-security-9.0.0.M3.jar
25
+ lib/rjack-jetty/jetty-server-9.0.0.M3.jar
26
+ lib/rjack-jetty/jetty-servlet-9.0.0.M3.jar
27
+ lib/rjack-jetty/jetty-util-9.0.0.M3.jar
28
+ lib/rjack-jetty/jetty-webapp-9.0.0.M3.jar
29
+ lib/rjack-jetty/jetty-xml-9.0.0.M3.jar
29
30
  lib/rjack-jetty/rjack-jetty-1.0.jar
30
- lib/rjack-jetty/servlet-api-2.5.jar
data/README.rdoc CHANGED
@@ -6,15 +6,17 @@
6
6
 
7
7
  == Description
8
8
 
9
- A gem packaging of the {Jetty Web Server}[http://www.mortbay.org/jetty/]
9
+ A gem packaging of the {Jetty Web Server}[http://www.eclipse.org/jetty/]
10
10
  for JRuby:
11
11
 
12
- * Provides jetty, jetty-util, servlet-api, and jetty-rewrite-handler
13
- jars.
14
- * A Jetty::ServerFactory for simple programmatic server setup in ruby.
12
+ * Provides all common jetty server jars and some optional jars like,
13
+ -util, -rewrite, -continuation
14
+ * jetty-client (via <tt>require rjack-jetty/client</tt>)
15
+ * javax.servlet 3.0.0
16
+ * A Jetty::ServerFactory for simple programmatic server setup in ruby
15
17
  * A set of Jetty::TestServlets containing a SnoopServlet and
16
- PerfTestServlet (implemented in Java).
17
- * A jetty-service bin script for easy testing from the command line.
18
+ PerfTestServlet (implemented in Java)
19
+ * A jetty-service bin script for easy testing from the command line
18
20
 
19
21
  Note that JSP support is provided separately in the companion
20
22
  jetty-jsp[http://rjack.rubyforge.org/jetty-jsp/] gem.
@@ -76,7 +78,7 @@ permissions and limitations under the License.
76
78
 
77
79
  === Jetty Web Container (Java)
78
80
 
79
- Copyright (c) 1995-2009 Mort Bay Consulting Pty Ltd
81
+ Copyright (c) 1995-2012 Mort Bay Consulting Pty Ltd
80
82
 
81
83
  The Jetty Web Container is Copyright Mort Bay Consulting Pty Ltd
82
84
  unless otherwise noted. It is dual licensed under the apache 2.0
data/assembly.xml CHANGED
@@ -18,7 +18,7 @@
18
18
  <include>org.eclipse.jetty:jetty-util</include>
19
19
  <include>org.eclipse.jetty:jetty-rewrite</include>
20
20
  <include>org.eclipse.jetty:jetty-client</include>
21
- <include>javax.servlet:servlet-api</include>
21
+ <include>org.eclipse.jetty.orbit:javax.servlet</include>
22
22
  <include>rjack:rjack-jetty</include>
23
23
  </includes>
24
24
  </dependencySet>
data/lib/rjack-jetty.rb CHANGED
@@ -38,7 +38,8 @@ module RJack
38
38
  require_jar 'jetty-webapp'
39
39
  require_jar 'jetty-util'
40
40
 
41
- require File.join( JETTY_DIR, "servlet-api-#{ SERVLET_API_VERSION }.jar" )
41
+ require File.join( JETTY_DIR,
42
+ "javax.servlet-#{ SERVLET_API_VERSION }.#{ SERVLET_API_BUILD }.jar" )
42
43
 
43
44
  import 'org.eclipse.jetty.server.Connector'
44
45
  import 'org.eclipse.jetty.server.Handler'
@@ -51,7 +52,7 @@ module RJack
51
52
  import 'org.eclipse.jetty.server.handler.HandlerCollection'
52
53
  import 'org.eclipse.jetty.server.handler.RequestLogHandler'
53
54
  import 'org.eclipse.jetty.server.handler.ResourceHandler'
54
- import 'org.eclipse.jetty.server.nio.SelectChannelConnector'
55
+ import 'org.eclipse.jetty.server.ServerConnector'
55
56
  import 'org.eclipse.jetty.servlet.ServletContextHandler'
56
57
  import 'org.eclipse.jetty.servlet.ServletHolder'
57
58
  import 'org.eclipse.jetty.webapp.WebAppContext'
@@ -140,14 +141,12 @@ module RJack
140
141
  # Returns a new org.morbay.jetty.Server that is ready to
141
142
  # be started.
142
143
  def create
143
- server = Server.new
144
+ server = Server.new( create_pool )
144
145
 
145
- server.thread_pool = create_pool
146
-
147
- server.connectors = create_connectors.to_java( Connector )
146
+ server.connectors = create_connectors( server )
148
147
 
149
148
  hcol = HandlerCollection.new
150
- hcol.handlers = create_handlers.compact.to_java( Handler )
149
+ hcol.handlers = create_handlers.compact
151
150
  server.handler = hcol
152
151
 
153
152
  server.stop_at_shutdown = @stop_at_shutdown
@@ -163,19 +162,19 @@ module RJack
163
162
  def create_pool
164
163
  pool = QueuedThreadPool.new
165
164
  pool.min_threads = [ @min_threads || ( @max_threads / 4 ), 4 ].max
166
- pool.max_threads = [ @max_threads, 5 ].max
165
+ pool.max_threads = [ @max_threads, 7 ].max
167
166
  pool
168
167
  end
169
168
 
170
169
  # Return array of org.eclipse.jetty.Connector instances.
171
170
  #
172
- # This implementation returns a single SelectChannelConnector
171
+ # This implementation returns a single ServerConnector
173
172
  # listening to the given port or an auto-selected avaiable
174
173
  # port. Connections are retained for max_idle_time_ms.
175
- def create_connectors
176
- connector = SelectChannelConnector.new
174
+ def create_connectors( server )
175
+ connector = ServerConnector.new( server )
177
176
  connector.port = @port
178
- connector.max_idle_time = @max_idle_time_ms
177
+ connector.idle_timeout = @max_idle_time_ms
179
178
  [ connector ]
180
179
  end
181
180
 
@@ -229,8 +228,7 @@ module RJack
229
228
  ch = ContextHandler.new( context_handler_collection, ctx )
230
229
  ch.resource_base = rpath
231
230
  ch.handler = ResourceHandler.new
232
- ch.handler.welcome_files =
233
- @static_welcome_files.to_java( java.lang.String )
231
+ ch.handler.welcome_files = @static_welcome_files
234
232
  end
235
233
  end
236
234
 
@@ -16,10 +16,11 @@
16
16
 
17
17
  module RJack
18
18
  module Jetty
19
- JETTY_VERSION = '7.6.16'
19
+ JETTY_VERSION = '9.0.0'
20
20
  VERSION = JETTY_VERSION + '.0'
21
- JETTY_BUILD = 'v20140903'
22
- SERVLET_API_VERSION = '2.5'
21
+ JETTY_BUILD = 'M3'
22
+ SERVLET_API_VERSION = '3.0.0'
23
+ SERVLET_API_BUILD = 'v201112011016'
23
24
 
24
25
  JETTY_DIR = File.dirname( __FILE__ ) # :nodoc:
25
26
  end
Binary file
data/pom.xml CHANGED
@@ -16,43 +16,43 @@
16
16
  <dependency>
17
17
  <groupId>org.eclipse.jetty</groupId>
18
18
  <artifactId>jetty-servlet</artifactId>
19
- <version>7.6.16.v20140903</version>
19
+ <version>9.0.0.M3</version>
20
20
  </dependency>
21
21
 
22
22
  <dependency>
23
23
  <groupId>org.eclipse.jetty</groupId>
24
24
  <artifactId>jetty-server</artifactId>
25
- <version>7.6.16.v20140903</version>
25
+ <version>9.0.0.M3</version>
26
26
  </dependency>
27
27
 
28
28
  <dependency>
29
29
  <groupId>org.eclipse.jetty</groupId>
30
30
  <artifactId>jetty-webapp</artifactId>
31
- <version>7.6.16.v20140903</version>
31
+ <version>9.0.0.M3</version>
32
32
  </dependency>
33
33
 
34
34
  <dependency>
35
35
  <groupId>org.eclipse.jetty</groupId>
36
36
  <artifactId>jetty-util</artifactId>
37
- <version>7.6.16.v20140903</version>
37
+ <version>9.0.0.M3</version>
38
38
  </dependency>
39
39
 
40
40
  <dependency>
41
41
  <groupId>org.eclipse.jetty</groupId>
42
42
  <artifactId>jetty-rewrite</artifactId>
43
- <version>7.6.16.v20140903</version>
43
+ <version>9.0.0.M3</version>
44
44
  </dependency>
45
45
 
46
46
  <dependency>
47
47
  <groupId>org.eclipse.jetty</groupId>
48
48
  <artifactId>jetty-client</artifactId>
49
- <version>7.6.16.v20140903</version>
49
+ <version>9.0.0.M3</version>
50
50
  </dependency>
51
51
 
52
52
  <dependency>
53
- <groupId>javax.servlet</groupId>
54
- <artifactId>servlet-api</artifactId>
55
- <version>2.5</version>
53
+ <groupId>org.eclipse.jetty</groupId>
54
+ <artifactId>jetty-continuation</artifactId>
55
+ <version>9.0.0.M3</version>
56
56
  </dependency>
57
57
 
58
58
  </dependencies>
data/webapps/test.war CHANGED
Binary file
metadata CHANGED
@@ -1,77 +1,86 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rjack-jetty
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.6.16.0
4
+ prerelease:
5
+ version: 9.0.0.0
5
6
  platform: java
6
7
  authors:
7
8
  - David Kellum
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-01-23 00:00:00.000000000 Z
12
+ date: 2012-12-13 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
- requirement: !ruby/object:Gem::Requirement
15
+ name: rjack-slf4j
16
+ version_requirements: !ruby/object:Gem::Requirement
15
17
  requirements:
16
- - - '>='
18
+ - - ! '>='
17
19
  - !ruby/object:Gem::Version
18
20
  version: 1.6.5
19
21
  - - <
20
22
  - !ruby/object:Gem::Version
21
23
  version: '1.8'
22
- name: rjack-slf4j
23
- prerelease: false
24
- type: :development
25
- version_requirements: !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirement: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - '>='
27
+ - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: 1.6.5
30
30
  - - <
31
31
  - !ruby/object:Gem::Version
32
32
  version: '1.8'
33
+ none: false
34
+ prerelease: false
35
+ type: :development
33
36
  - !ruby/object:Gem::Dependency
37
+ name: rjack-logback
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ~>
41
+ - !ruby/object:Gem::Version
42
+ version: '1.2'
43
+ none: false
34
44
  requirement: !ruby/object:Gem::Requirement
35
45
  requirements:
36
46
  - - ~>
37
47
  - !ruby/object:Gem::Version
38
48
  version: '1.2'
39
- name: rjack-logback
49
+ none: false
40
50
  prerelease: false
41
51
  type: :development
52
+ - !ruby/object:Gem::Dependency
53
+ name: minitest
42
54
  version_requirements: !ruby/object:Gem::Requirement
43
55
  requirements:
44
56
  - - ~>
45
57
  - !ruby/object:Gem::Version
46
- version: '1.2'
47
- - !ruby/object:Gem::Dependency
58
+ version: '2.2'
59
+ none: false
48
60
  requirement: !ruby/object:Gem::Requirement
49
61
  requirements:
50
62
  - - ~>
51
63
  - !ruby/object:Gem::Version
52
64
  version: '2.2'
53
- name: minitest
65
+ none: false
54
66
  prerelease: false
55
67
  type: :development
68
+ - !ruby/object:Gem::Dependency
69
+ name: rjack-tarpit
56
70
  version_requirements: !ruby/object:Gem::Requirement
57
71
  requirements:
58
72
  - - ~>
59
73
  - !ruby/object:Gem::Version
60
- version: '2.2'
61
- - !ruby/object:Gem::Dependency
74
+ version: '2.0'
75
+ none: false
62
76
  requirement: !ruby/object:Gem::Requirement
63
77
  requirements:
64
78
  - - ~>
65
79
  - !ruby/object:Gem::Version
66
- version: '2.1'
67
- name: rjack-tarpit
80
+ version: '2.0'
81
+ none: false
68
82
  prerelease: false
69
83
  type: :development
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - ~>
73
- - !ruby/object:Gem::Version
74
- version: '2.1'
75
84
  description:
76
85
  email:
77
86
  - dek-oss@gravitext.com
@@ -99,22 +108,21 @@ files:
99
108
  - webapps/test/index.html
100
109
  - webapps/test/WEB-INF/web.xml
101
110
  - webapps/test.war
102
- - lib/rjack-jetty/jetty-client-7.6.16.v20140903.jar
103
- - lib/rjack-jetty/jetty-continuation-7.6.16.v20140903.jar
104
- - lib/rjack-jetty/jetty-http-7.6.16.v20140903.jar
105
- - lib/rjack-jetty/jetty-io-7.6.16.v20140903.jar
106
- - lib/rjack-jetty/jetty-rewrite-7.6.16.v20140903.jar
107
- - lib/rjack-jetty/jetty-security-7.6.16.v20140903.jar
108
- - lib/rjack-jetty/jetty-server-7.6.16.v20140903.jar
109
- - lib/rjack-jetty/jetty-servlet-7.6.16.v20140903.jar
110
- - lib/rjack-jetty/jetty-util-7.6.16.v20140903.jar
111
- - lib/rjack-jetty/jetty-webapp-7.6.16.v20140903.jar
112
- - lib/rjack-jetty/jetty-xml-7.6.16.v20140903.jar
111
+ - lib/rjack-jetty/javax.servlet-3.0.0.v201112011016.jar
112
+ - lib/rjack-jetty/jetty-client-9.0.0.M3.jar
113
+ - lib/rjack-jetty/jetty-continuation-9.0.0.M3.jar
114
+ - lib/rjack-jetty/jetty-http-9.0.0.M3.jar
115
+ - lib/rjack-jetty/jetty-io-9.0.0.M3.jar
116
+ - lib/rjack-jetty/jetty-rewrite-9.0.0.M3.jar
117
+ - lib/rjack-jetty/jetty-security-9.0.0.M3.jar
118
+ - lib/rjack-jetty/jetty-server-9.0.0.M3.jar
119
+ - lib/rjack-jetty/jetty-servlet-9.0.0.M3.jar
120
+ - lib/rjack-jetty/jetty-util-9.0.0.M3.jar
121
+ - lib/rjack-jetty/jetty-webapp-9.0.0.M3.jar
122
+ - lib/rjack-jetty/jetty-xml-9.0.0.M3.jar
113
123
  - lib/rjack-jetty/rjack-jetty-1.0.jar
114
- - lib/rjack-jetty/servlet-api-2.5.jar
115
124
  homepage: http://rjack.rubyforge.org/jetty
116
125
  licenses: []
117
- metadata: {}
118
126
  post_install_message:
119
127
  rdoc_options:
120
128
  - --main
@@ -123,18 +131,27 @@ require_paths:
123
131
  - lib
124
132
  required_ruby_version: !ruby/object:Gem::Requirement
125
133
  requirements:
126
- - - '>='
134
+ - - ! '>='
127
135
  - !ruby/object:Gem::Version
128
136
  version: '0'
137
+ segments:
138
+ - 0
139
+ hash: 2
140
+ none: false
129
141
  required_rubygems_version: !ruby/object:Gem::Requirement
130
142
  requirements:
131
- - - '>='
143
+ - - ! '>='
132
144
  - !ruby/object:Gem::Version
133
145
  version: '0'
146
+ segments:
147
+ - 0
148
+ hash: 2
149
+ none: false
134
150
  requirements: []
135
151
  rubyforge_project:
136
- rubygems_version: 2.1.9
152
+ rubygems_version: 1.8.24
137
153
  signing_key:
138
- specification_version: 4
154
+ specification_version: 3
139
155
  summary: A gem packaging of the Jetty Web Server for JRuby.
140
156
  test_files: []
157
+ ...
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: e91a79834babfba39321057640120fffafa6385f
4
- data.tar.gz: aedeb948d48775026a2e274de9161f0fca6a14ef
5
- SHA512:
6
- metadata.gz: f83c53683f201be568892de80d3385cef4d292db17deadfc2037324f56a1e37ab599e1b29b0f93cbb1a58086c0a0fd799d753350b461a8d7b9fd56e015308942
7
- data.tar.gz: 0dcaef095a11bc9cfc6177f4b1bd28cf4da310c3097ba9d150881cd7d389c2f9a4a240f610777665f8eef8e780126484a925cd0a08c338cc8a9332b299a88d2e
Binary file