Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 41 lines (22 sloc) 1.29 kb
68f7a64 @pepite Sample app
pepite authored
1 h1. Netty module
2
4f09fdb @pepite ihttp://github.com/pepite/Play--Netty/issues#issue/12
pepite authored
3 p(note). **Warning! This version contains JBoss Netty 3.2.1 Final. Be sure to remove the previous version of Netty in your module directory**
68f7a64 @pepite Sample app
pepite authored
4
5 The netty module allows you to use JBoss Netty:http://jboss.org/netty as a play! server.
6
4f09fdb @pepite ihttp://github.com/pepite/Play--Netty/issues#issue/12
pepite authored
7 Version 3.2.1 Final of Netty.
68f7a64 @pepite Sample app
pepite authored
8
9 h2. <a>Enable the Netty module for the application</a>
10
11 In the **/conf/application.conf** file, enable the Netty module by adding this line:
12
13 bc. # The netty module
14 module.netty=${play.path}/modules/netty
15
16 h2. <a>Starting the Play! with netty as application server</a>
17
18 bc. play netty:run myapplication
19
20 h2. <a>Configuration</a>
21
22 By default, there is no maximum upload size. But the max upload size can be configured. In your application.conf add the following line:
23
24 bc. play.module.netty.maxContentLength=1048576
25
26 This line set the maximum upload size to 1048576 bytes.
27
28 A value of -1 means that there is no maximum upload size (the default).
29
30 If the limit is exceeded, then an error message is set in the error scope. You can access it with the #{error} tag:
31
32 bc. #{errors}
33 <li>${error}</li>
34 #{/errors}
35
36 To change the default message, use the following message key:
37
38 play.module.netty.content.length.exceeded=My error
39
40 This property is currently set in the conf/messages directory of the netty module.
Something went wrong with that request. Please try again.