KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > remoting > transport > mock > MockServerInvoker


1 /***************************************
2  * *
3  * JBoss: The OpenSource J2EE WebOS *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  ***************************************/

9 package org.jboss.test.remoting.transport.mock;
10
11 import java.util.Map JavaDoc;
12 import org.jboss.remoting.InvokerLocator;
13 import org.jboss.remoting.ServerInvoker;
14
15 /**
16  * MockServerInvoker
17  *
18  * @author <a HREF="mailto:jhaynie@vocalocity.net">Jeff Haynie</a>
19  * @version $Revision: 1.1 $
20  */

21 public class MockServerInvoker extends ServerInvoker
22 {
23    boolean loaded = false;
24
25    public MockServerInvoker(InvokerLocator locator)
26    {
27       super(locator);
28    }
29
30    public MockServerInvoker(InvokerLocator locator, Map JavaDoc configuration)
31    {
32       super(locator, configuration);
33    }
34
35    protected String JavaDoc getDefaultDataType()
36    {
37       return null;
38    }
39
40    /**
41     * returns true if the transport is bi-directional in nature, for example,
42     * SOAP in unidirectional and SOCKETs are bi-directional (unless behind a firewall
43     * for example).
44     *
45     * @return
46     */

47    public boolean isTransportBiDirectional()
48    {
49       return false;
50    }
51
52 }
53
Popular Tags