Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Netty based network stack by the Tujiao for Play! framework.
tree: 58ef831c33

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
conf
documentation/manual
lib
samples-and-tests/test
src/play/modules/netty
.gitignore
README.textile
build.xml
commands.py

README.textile

Netty module

Warning! This version contains JBoss Netty 3.1.5 GA. Be sure to remove the previous version of Netty in your module directory

The netty module allows you to use JBoss Netty:http://jboss.org/netty as a play! server.

Version 3.1.5 GA of Netty.

Enable the Netty module for the application

In the /conf/application.conf file, enable the Netty module by adding this line:

# The netty module
module.netty=${play.path}/modules/netty

Starting the Play! with netty as application server

play netty:run myapplication

Configuration

By default, there is no maximum upload size. But the max upload size can be configured. In your application.conf add the following line:

play.module.netty.maxContentLength=1048576

This line set the maximum upload size to 1048576 bytes.

A value of -1 means that there is no maximum upload size (the default).

If the limit is exceeded, then an error message is set in the error scope. You can access it with the #{error} tag:

#{errors}
   <li>${error}</li>
#{/errors}

To change the default message, use the following message key:

play.module.netty.content.length.exceeded=My error

This property is currently set in the conf/messages directory of the netty module.

Something went wrong with that request. Please try again.