KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.sapia.ubik.rmi.server.transport.http.servlet;
2
3 import org.sapia.ubik.net.Uri;
4 import org.sapia.ubik.net.UriSyntaxException;
5 import org.sapia.ubik.rmi.server.transport.http.HttpAddress;
6
7
8 /**
9  * Models the network address of a servlet.
10  *
11  * @author Yanick Duchesne
12  *
13  * <dl>
14  * <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>
15  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
16  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
17  * </dl>
18  */

19 public class ServletAddress extends HttpAddress {
20   /**
21    * Do not call; used for externalization only.
22    */

23   public ServletAddress() {
24   }
25
26   /**
27    * Creates an instance of this class with the given parameter.
28    *
29    * @param servletUrl the URL of the servlet to connect to.
30    * @throws UriSyntaxException if the URL could not be internally parsed.
31    */

32   public ServletAddress(String JavaDoc servletUrl) throws UriSyntaxException {
33     super(ServletConsts.DEFAULT_SERVLET_TRANSPORT_TYPE, Uri.parse(servletUrl));
34   }
35
36   /**
37    * Intended to be overridden by eventual subclasses.
38    */

39   protected ServletAddress(String JavaDoc transportType, String JavaDoc servletUrl)
40     throws UriSyntaxException {
41     super(transportType, Uri.parse(servletUrl));
42   }
43 }
44
Popular Tags