KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > ubik > rmi > server > transport > http > servlet > ServletServer


1 package org.sapia.ubik.rmi.server.transport.http.servlet;
2
3 import org.sapia.ubik.net.ServerAddress;
4 import org.sapia.ubik.net.UriSyntaxException;
5 import org.sapia.ubik.rmi.server.Server;
6
7 import java.rmi.RemoteException JavaDoc;
8
9
10 /**
11  * Implementation of the <code>Server</code> interface. Instances of this
12  * class are created by a <code>ServletTransportProvider</code>.
13  *
14  * @see org.sapia.ubik.rmi.server.transport.http.servlet.ServletTransportProvider#newServer(Properties)
15  *
16  * @author Yanick Duchesne
17  *
18  * <dl>
19  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2004 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
20  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
21  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
22  * </dl>
23  */

24 public class ServletServer implements Server {
25   private ServletAddress _addr;
26
27   ServletServer(ServletAddress addr) {
28     _addr = addr;
29   }
30
31   ServletServer(String JavaDoc servletUrl) throws UriSyntaxException {
32     _addr = new ServletAddress(servletUrl);
33   }
34
35   /**
36    * @see org.sapia.ubik.rmi.server.Server#close()
37    */

38   public void close() {
39   }
40
41   /**
42    * @see org.sapia.ubik.rmi.server.Server#start()
43    */

44   public void start() throws RemoteException JavaDoc {
45   }
46
47   /**
48    * @see org.sapia.ubik.rmi.server.Server#getServerAddress()
49    */

50   public ServerAddress getServerAddress() {
51     return _addr;
52   }
53 }
54
Popular Tags