KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > ubik > net > nio > acceptor > CompleteStateHandler


1 package org.sapia.ubik.net.nio.acceptor;
2
3 import org.sapia.ubik.net.nio.Cycle;
4
5 /**
6  * @author Yanick Duchesne
7  *
8  * <dl>
9  * <dt><b>Copyright: </b>
10  * <dd>Copyright &#169; 2002-2005 <a HREF="http://www.sapia-oss.org">Sapia Open
11  * Source Software </a>. All Rights Reserved.</dd>
12  * </dt>
13  * <dt><b>License: </b>
14  * <dd>Read the license.txt file of the jar or visit the <a
15  * HREF="http://www.sapia-oss.org/license.html">license page </a> at the Sapia
16  * OSS web site</dd>
17  * </dt>
18  * </dl>
19  */

20 class CompleteStateHandler extends AbstractStateHandler {
21
22   CompleteStateHandler(AcceptorConfig config) {
23     super(config);
24   }
25
26   /**
27    * @see org.sapia.ubik.net.nio.acceptor.StateHandler#handle(org.sapia.ubik.net.nio.Cycle)
28    */

29   public void handle(Cycle cycle) throws HandlerException {
30     cycle.getHandler().completed(cycle);
31     cycle.destroy();
32   }
33
34 }
35
Popular Tags