From e556232aeb8234e851308b030e66414d09444897 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Thu, 11 Apr 2013 16:50:42 +0900 Subject: [PATCH] Rename HandshakeCompletionEvent to SslHandshakeCompletionEvent --- handler/src/main/java/io/netty/handler/ssl/SslHandler.java | 6 +++--- ...ompletionEvent.java => SslHandshakeCompletionEvent.java} | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) rename handler/src/main/java/io/netty/handler/ssl/{HandshakeCompletionEvent.java => SslHandshakeCompletionEvent.java} (92%) diff --git a/handler/src/main/java/io/netty/handler/ssl/SslHandler.java b/handler/src/main/java/io/netty/handler/ssl/SslHandler.java index 0594756bed..df3b0515e2 100644 --- a/handler/src/main/java/io/netty/handler/ssl/SslHandler.java +++ b/handler/src/main/java/io/netty/handler/ssl/SslHandler.java @@ -71,7 +71,7 @@ import java.util.regex.Pattern; * Beside using the handshake {@link ChannelFuture} to get notified about the completation of the handshake it's * also possible to detect it by implement the * {@link ChannelStateHandler#userEventTriggered(ChannelHandlerContext, Object)} - * method and check for a {@link HandshakeCompletionEvent}. + * method and check for a {@link SslHandshakeCompletionEvent}. * *

Handshake

*

@@ -179,7 +179,7 @@ public class SslHandler private volatile long handshakeTimeoutMillis = 10000; private volatile long closeNotifyTimeoutMillis = 3000; - private static final HandshakeCompletionEvent HANDSHAKE_SUCCESS_EVENT = new HandshakeCompletionEvent(null); + private static final SslHandshakeCompletionEvent HANDSHAKE_SUCCESS_EVENT = new SslHandshakeCompletionEvent(null); /** * Creates a new instance. @@ -1016,7 +1016,7 @@ public class SslHandler } } } finally { - ctx.fireUserEventTriggered(new HandshakeCompletionEvent(cause)); + ctx.fireUserEventTriggered(new SslHandshakeCompletionEvent(cause)); } flush0(ctx, 0, cause); } diff --git a/handler/src/main/java/io/netty/handler/ssl/HandshakeCompletionEvent.java b/handler/src/main/java/io/netty/handler/ssl/SslHandshakeCompletionEvent.java similarity index 92% rename from handler/src/main/java/io/netty/handler/ssl/HandshakeCompletionEvent.java rename to handler/src/main/java/io/netty/handler/ssl/SslHandshakeCompletionEvent.java index 1e0c37fba1..265e6c2342 100644 --- a/handler/src/main/java/io/netty/handler/ssl/HandshakeCompletionEvent.java +++ b/handler/src/main/java/io/netty/handler/ssl/SslHandshakeCompletionEvent.java @@ -20,10 +20,11 @@ package io.netty.handler.ssl; * Event that is fired once the SSL handshake is complete, which may be because it was successful or there * was an error. */ -public final class HandshakeCompletionEvent { +public final class SslHandshakeCompletionEvent { + private final Throwable cause; - HandshakeCompletionEvent(Throwable cause) { + SslHandshakeCompletionEvent(Throwable cause) { this.cause = cause; }