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.handlers;
09:
10: import java.net.Socket;
11: import org.codehaus.spice.netserve.connection.RequestHandler;
12:
13: /**
14: *
15: * @author Peter Donald
16: * @version $Revision: 1.2 $ $Date: 2004/03/21 23:42:59 $
17: */
18: class MockManagedRequestHandler extends ManagedRequestHandler {
19: private final RequestManager m_requestManager;
20:
21: public MockManagedRequestHandler(RequestManager requestManager) {
22: m_requestManager = requestManager;
23: }
24:
25: protected RequestHandler aquireHandler(Socket socket) {
26: return m_requestManager.aquireHandler(socket);
27: }
28:
29: protected void releaseHandler(RequestHandler handler) {
30: m_requestManager.releaseHandler(handler);
31: }
32: }
|