KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > spice > netserve > connection > impl > MockSocketConnectionHandler


1 /*
2  * Copyright (C) The Spice Group. All rights reserved.
3  *
4  * This software is published under the terms of the Spice
5  * Software License version 1.1, a copy of which has been included
6  * with this distribution in the LICENSE.txt file.
7  */

8 package org.codehaus.spice.netserve.connection.impl;
9
10 import java.net.Socket JavaDoc;
11
12 import org.codehaus.spice.netserve.connection.handlers.AbstractRequestHandler;
13
14 /**
15  *
16  * @author Peter Donald
17  * @version $Revision: 1.2 $ $Date: 2004/03/21 23:42:59 $
18  */

19 class MockSocketConnectionHandler
20    extends AbstractRequestHandler
21 {
22    private Socket JavaDoc m_socket;
23
24    protected void doPerformRequest( Socket JavaDoc socket )
25       throws Exception JavaDoc
26    {
27       m_socket = socket;
28    }
29
30    Socket JavaDoc getSocket()
31    {
32       return m_socket;
33    }
34 }
35
Popular Tags