KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > quikj > application > communicator > admin > controller > RemoteAccessParams


1 /*
2  * RemoteAccessParams.java
3  *
4  * Created on May 31, 2003, 10:22 AM
5  */

6
7 package com.quikj.application.communicator.admin.controller;
8
9 import java.net.*;
10
11 /**
12  *
13  * @author amit
14  */

15 public class RemoteAccessParams
16 {
17     
18     /** Holds value of property url. */
19     private String JavaDoc url = "rmi://localhost:1099";
20     
21     /** Holds value of property host. */
22     private String JavaDoc host;
23     
24     /** Holds value of property httpsServiceName. */
25     private String JavaDoc httpsServiceName = "AceHTTPSRemoteAccess";
26     
27     /** Creates a new instance of RemoteAccessParams */
28     public RemoteAccessParams()
29     {
30         try
31         {
32             host = InetAddress.getLocalHost().getHostName();
33         }
34         catch (UnknownHostException ex)
35         {
36             host = "localhost";
37         }
38     }
39     
40     /** Getter for property url.
41      * @return Value of property url.
42      *
43      */

44     public String JavaDoc getUrl()
45     {
46         return this.url;
47     }
48     
49     /** Setter for property url.
50      * @param url New value of property url.
51      *
52      */

53     public void setUrl(String JavaDoc url)
54     {
55         this.url = url;
56     }
57     
58     /** Getter for property host.
59      * @return Value of property host.
60      *
61      */

62     public String JavaDoc getHost()
63     {
64         return this.host;
65     }
66     
67     /** Setter for property host.
68      * @param host New value of property host.
69      *
70      */

71     public void setHost(String JavaDoc host)
72     {
73         this.host = host;
74     }
75     
76     /** Getter for property httpsServiceName.
77      * @return Value of property httpsServiceName.
78      *
79      */

80     public String JavaDoc getHttpsServiceName()
81     {
82         return this.httpsServiceName;
83     }
84     
85     /** Setter for property httpsServiceName.
86      * @param httpsServiceName New value of property httpsServiceName.
87      *
88      */

89     public void setHttpsServiceName(String JavaDoc httpsServiceName)
90     {
91         this.httpsServiceName = httpsServiceName;
92     }
93     
94 }
95
Popular Tags