This commit is contained in:
Trustin Lee 2009-06-17 05:12:18 +00:00
parent 1826b88622
commit 73853f1b04

View File

@ -181,6 +181,13 @@ public class ServerBootstrap extends Bootstrap {
super(channelFactory); super(channelFactory);
} }
/**
* {@inheritDoc}
*
* @throws IllegalArgumentException
* if the specified {@code factory} is not a
* {@link ServerChannelFactory}
*/
@Override @Override
public void setFactory(ChannelFactory factory) { public void setFactory(ChannelFactory factory) {
if (factory == null) { if (factory == null) {
@ -197,7 +204,7 @@ public class ServerBootstrap extends Bootstrap {
/** /**
* Returns an optional {@link ChannelHandler} which intercepts an event * Returns an optional {@link ChannelHandler} which intercepts an event
* of a new bound server-side channel which accepts incoming connections. * of a newly bound server-side channel which accepts incoming connections.
* *
* @return the parent channel handler. * @return the parent channel handler.
* {@code null} if no parent channel handler is set. * {@code null} if no parent channel handler is set.
@ -208,7 +215,7 @@ public class ServerBootstrap extends Bootstrap {
/** /**
* Sets an optional {@link ChannelHandler} which intercepts an event of * Sets an optional {@link ChannelHandler} which intercepts an event of
* a new bound server-side channel which accepts incoming connections. * a newly bound server-side channel which accepts incoming connections.
* *
* @param parentHandler * @param parentHandler
* the parent channel handler. * the parent channel handler.