01: /*
02: * Copyright (C) The Spice Group. All rights reserved.
03: *
04: * This software is published under the terms of the Spice
05: * Software License version 1.1, a copy of which has been included
06: * with this distribution in the LICENSE.txt file.
07: */
08: package org.codehaus.spice.netserve.connection.impl;
09:
10: import java.net.Socket;
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 extends AbstractRequestHandler {
20: private Socket m_socket;
21:
22: protected void doPerformRequest(Socket socket) throws Exception {
23: m_socket = socket;
24: }
25:
26: Socket getSocket() {
27: return m_socket;
28: }
29: }
|