001: /*
002: * HostReachabilityInfo.java
003: *
004: * Created on May 26, 2003, 11:46 AM
005: */
006:
007: package com.sun.portal.util;
008:
009: /**
010: *
011: * @author Rajesh T
012: */
013: public class ServiceReachabilityInfo {
014:
015: private String serviceHost = null;
016:
017: private int servicePort = -1;
018:
019: private String proxyHost = null;
020:
021: private int proxyPort = -1;
022:
023: private String proxyUser = null;
024:
025: private String proxyPassword = null;
026:
027: /** Creates a new instance of HostReachabilityInfo */
028: public ServiceReachabilityInfo(String host, int port) {
029: this .serviceHost = host;
030: this .servicePort = port;
031: }
032:
033: public ServiceReachabilityInfo(String host, int port,
034: String proxyHost, int proxyPort) {
035: this .serviceHost = host;
036: this .servicePort = port;
037: this .proxyHost = proxyHost;
038: this .proxyPort = proxyPort;
039: }
040:
041: public ServiceReachabilityInfo(String host, int port,
042: String proxyHost, int proxyPort, String proxyUser,
043: String proxyPasswd) {
044: this .serviceHost = host;
045: this .servicePort = port;
046: this .proxyHost = proxyHost;
047: this .proxyPort = proxyPort;
048: this .proxyUser = proxyUser;
049: this .proxyPassword = proxyPasswd;
050: }
051:
052: public String getProxyHost() {
053: return proxyHost;
054: }
055:
056: public int getProxyPort() {
057: return proxyPort;
058: }
059:
060: public String getServiceHost() {
061: return serviceHost;
062: }
063:
064: public int getServicePort() {
065: return servicePort;
066: }
067:
068: public String getHost() {
069: return serviceHost;
070: }
071:
072: public int getPort() {
073: return servicePort;
074: }
075:
076: public String getProxyUser() {
077: return proxyUser;
078: }
079:
080: public String getProxyPassword() {
081: return proxyPassword;
082: }
083:
084: public void setProxyHost(String host) {
085: this .proxyHost = host;
086: }
087:
088: public void setProxyPort(int port) {
089: this .proxyPort = port;
090: }
091:
092: public void setServiceHost(String host) {
093: this .serviceHost = host;
094: }
095:
096: public void setServicePort(int port) {
097: this .servicePort = port;
098: }
099:
100: public void setHost(String host) {
101: this .serviceHost = host;
102: }
103:
104: public void setPort(int port) {
105: this .servicePort = port;
106: }
107:
108: public void setProxyUser(String user) {
109: this .proxyUser = user;
110: }
111:
112: public void setProxyPassword(String passwd) {
113: this.proxyPassword = passwd;
114: }
115: }
|