Skip to content
Browse files

Changed play.netty to play.module.netty

  • Loading branch information...
1 parent 14329ec commit f285c5409326aeae7482dbf87c03393676b365b6 @wangyizhuo wangyizhuo committed with pepite Jul 1, 2010
View
2 src/play/modules/netty/HttpServerPipelineFactory.java
@@ -36,7 +36,7 @@
public ChannelPipeline getPipeline() throws Exception {
- Integer max = Integer.valueOf(Play.configuration.getProperty("play.netty.maxContentLength", "-1"));
+ Integer max = Integer.valueOf(Play.configuration.getProperty("play.module.netty.maxContentLength", "-1"));
ChannelPipeline pipeline = pipeline();
View
6 src/play/modules/netty/PlayHandler.java
@@ -188,9 +188,9 @@ void saveExceededSizeError(HttpRequest nettyRequest, Request request, Response r
try {
StringBuilder error = new StringBuilder();
error.append("\u0000");
- // Cannot put warning which is play.netty.content.length.exceeded
+ // Cannot put warning which is play.module.netty.content.length.exceeded
// as Key as it will result error when printing error
- error.append("play.netty.maxContentLength");
+ error.append("play.module.netty.maxContentLength");
error.append(":");
String size = null;
try {
@@ -372,7 +372,7 @@ public static Request parseRequest(ChannelHandlerContext ctx, HttpRequest nettyR
if (b instanceof FileChannelBuffer) {
FileChannelBuffer buffer = (FileChannelBuffer) b;
// An error occurred
- Integer max = Integer.valueOf(Play.configuration.getProperty("play.netty.maxContentLength", "-1"));
+ Integer max = Integer.valueOf(Play.configuration.getProperty("play.module.netty.maxContentLength", "-1"));
request.body = buffer.getInputStream();
if (!(max == -1 || request.body.available() < max)) {
View
2 src/play/modules/netty/StreamChunkAggregator.java
@@ -93,7 +93,7 @@ public void messageReceived(ChannelHandlerContext ctx, MessageEvent e)
final HttpChunk chunk = (HttpChunk) msg;
if (maxContentLength != -1 && (localFile.length() > (maxContentLength - chunk.getContent().readableBytes()))) {
currentMessage.setHeader(
- HttpHeaders.Names.WARNING, "play.netty.content.length.exceeded");
+ HttpHeaders.Names.WARNING, "play.module.netty.content.length.exceeded");
} else {
IOUtils.copyLarge(new ChannelBufferInputStream(chunk.getContent()), this.out);

0 comments on commit f285c54

Please sign in to comment.
Something went wrong with that request. Please try again.