Skip to content

Commit

Permalink
Changed play.netty to play.module.netty
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyizhuo authored and pepite committed Jul 24, 2010
1 parent 14329ec commit f285c54
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/play/modules/netty/HttpServerPipelineFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class HttpServerPipelineFactory implements ChannelPipelineFactory {

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();

Expand Down
6 changes: 3 additions & 3 deletions src/play/modules/netty/PlayHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion src/play/modules/netty/StreamChunkAggregator.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f285c54

Please sign in to comment.