Filled in JavaDoc for trivial methods
This commit is contained in:
parent
38b3f4fa98
commit
6b004f861b
|
@ -36,6 +36,9 @@ public class DefaultChannelEvent implements ChannelEvent {
|
||||||
private final Channel channel;
|
private final Channel channel;
|
||||||
private final ChannelFuture future;
|
private final ChannelFuture future;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new instance.
|
||||||
|
*/
|
||||||
public DefaultChannelEvent(Channel channel, ChannelFuture future) {
|
public DefaultChannelEvent(Channel channel, ChannelFuture future) {
|
||||||
if (channel == null) {
|
if (channel == null) {
|
||||||
throw new NullPointerException("channel");
|
throw new NullPointerException("channel");
|
||||||
|
@ -55,6 +58,9 @@ public class DefaultChannelEvent implements ChannelEvent {
|
||||||
return future;
|
return future;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the {@link String} representation of this event.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return channel.toString();
|
return channel.toString();
|
||||||
|
|
|
@ -37,6 +37,9 @@ public class DefaultChannelStateEvent extends DefaultChannelEvent implements
|
||||||
private final ChannelState state;
|
private final ChannelState state;
|
||||||
private final Object value;
|
private final Object value;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new instance.
|
||||||
|
*/
|
||||||
public DefaultChannelStateEvent(
|
public DefaultChannelStateEvent(
|
||||||
Channel channel, ChannelFuture future,
|
Channel channel, ChannelFuture future,
|
||||||
ChannelState state, Object value) {
|
ChannelState state, Object value) {
|
||||||
|
|
|
@ -36,6 +36,9 @@ public class DefaultChildChannelStateEvent extends DefaultChannelEvent implement
|
||||||
|
|
||||||
private final Channel childChannel;
|
private final Channel childChannel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new instance.
|
||||||
|
*/
|
||||||
public DefaultChildChannelStateEvent(
|
public DefaultChildChannelStateEvent(
|
||||||
Channel channel, ChannelFuture future, Channel childChannel) {
|
Channel channel, ChannelFuture future, Channel childChannel) {
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,9 @@ public class DefaultExceptionEvent extends DefaultChannelEvent implements
|
||||||
|
|
||||||
private final Throwable cause;
|
private final Throwable cause;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new instance.
|
||||||
|
*/
|
||||||
public DefaultExceptionEvent(Channel channel, ChannelFuture future, Throwable cause) {
|
public DefaultExceptionEvent(Channel channel, ChannelFuture future, Throwable cause) {
|
||||||
super(channel, future);
|
super(channel, future);
|
||||||
if (cause == null) {
|
if (cause == null) {
|
||||||
|
|
|
@ -43,6 +43,9 @@ public class DefaultMessageEvent extends DefaultChannelEvent implements
|
||||||
private final Object message;
|
private final Object message;
|
||||||
private final SocketAddress remoteAddress;
|
private final SocketAddress remoteAddress;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new instance.
|
||||||
|
*/
|
||||||
public DefaultMessageEvent(
|
public DefaultMessageEvent(
|
||||||
Channel channel, ChannelFuture future,
|
Channel channel, ChannelFuture future,
|
||||||
Object message, SocketAddress remoteAddress) {
|
Object message, SocketAddress remoteAddress) {
|
||||||
|
|
|
@ -65,6 +65,13 @@ public class SimpleChannelHandler implements ChannelUpstreamHandler {
|
||||||
private static final InternalLogger logger =
|
private static final InternalLogger logger =
|
||||||
InternalLoggerFactory.getInstance(SimpleChannelHandler.class.getName());
|
InternalLoggerFactory.getInstance(SimpleChannelHandler.class.getName());
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new instance.
|
||||||
|
*/
|
||||||
|
public SimpleChannelHandler() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc} Down-casts the received upstream event into more
|
* {@inheritDoc} Down-casts the received upstream event into more
|
||||||
* meaningful sub-type event and calls an appropriate handler method with
|
* meaningful sub-type event and calls an appropriate handler method with
|
||||||
|
|
Loading…
Reference in New Issue
Block a user