Removed @Override to make it work with java 5.

This commit is contained in:
vibul 2012-04-27 09:57:54 +10:00
parent 979bca4b35
commit 45d58e9459
4 changed files with 0 additions and 7 deletions

View File

@ -33,7 +33,6 @@ public class HttpUploadClientHandler extends SimpleChannelUpstreamHandler {
private volatile boolean readingChunks;
@Override
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
if (!readingChunks) {
HttpResponse response = (HttpResponse) e.getMessage();
@ -71,7 +70,6 @@ public class HttpUploadClientHandler extends SimpleChannelUpstreamHandler {
}
}
@Override
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
throws Exception {
e.getCause().printStackTrace();

View File

@ -34,7 +34,6 @@ public class HttpUploadClientPipelineFactory implements ChannelPipelineFactory {
this.ssl = ssl;
}
@Override
public ChannelPipeline getPipeline() throws Exception {
// Create a default pipeline implementation.
ChannelPipeline pipeline = pipeline();

View File

@ -87,7 +87,6 @@ public class HttpUploadServerHandler extends SimpleChannelUpstreamHandler {
DiskAttribute.baseDirectory = null; // system temp directory
}
@Override
public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e)
throws Exception {
if (decoder != null) {
@ -95,7 +94,6 @@ public class HttpUploadServerHandler extends SimpleChannelUpstreamHandler {
}
}
@Override
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
if (!readingChunks) {
// clean previous FileUpload if Any
@ -482,7 +480,6 @@ public class HttpUploadServerHandler extends SimpleChannelUpstreamHandler {
e.getChannel().write(response);
}
@Override
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
throws Exception {
logger.error(responseContent.toString(), e.getCause());

View File

@ -24,7 +24,6 @@ import org.jboss.netty.handler.codec.http.HttpRequestDecoder;
import org.jboss.netty.handler.codec.http.HttpResponseEncoder;
public class HttpUploadServerPipelineFactory implements ChannelPipelineFactory {
@Override
public ChannelPipeline getPipeline() throws Exception {
// Create a default pipeline implementation.
ChannelPipeline pipeline = pipeline();