001: package org.objectweb.jonas.webapp.jonasadmin.jonasmqconnect;
002:
003: import org.apache.struts.action.ActionForm;
004:
005: public class JonasMqConnectPlatformForm extends ActionForm {
006: /**
007: * debug or not
008: */
009: private boolean debug = false;
010:
011: /**
012: * printe debug msg
013: * @param s msg
014: */
015: private void debug(String s) {
016: if (debug)
017: System.out.println(s);
018: }
019:
020: /**
021: * Version of the connector
022: */
023: private String version = "1.0.0";
024:
025: /**
026: * Name of the connector
027: */
028: private String connector;
029:
030: /**
031: * Hostname of the connector
032: */
033: private String hostname;
034:
035: /**
036: * Channel of the connector
037: */
038: private String channel;
039:
040: /**
041: * Port of the connector
042: */
043: private String port;
044:
045: /**
046: * QueueManager of the connector
047: */
048: private String queueManager;
049:
050: /**
051: * TransportType of the connector
052: */
053: private String transportType;
054:
055: /**
056: * @return the version
057: */
058: public String getVersion() {
059: return version;
060: }
061:
062: /**
063: * @param version the version to set
064: */
065: public void setVersion(String version) {
066: this .version = version;
067: }
068:
069: /**
070: * get the name of the connector
071: * @return hostname
072: */
073: public String getConnector() {
074: debug("JonasMqConnectForm#getConnector");
075: return connector;
076: }
077:
078: /**
079: * set the name of the connector
080: * @param connector
081: */
082: public void setConnector(String connector) {
083: debug("JonasMqConnectForm#setConnector(" + connector + ")");
084: this .connector = connector;
085: }
086:
087: /**
088: * get the hostname of the connector
089: * @return hostname
090: */
091: public String getHostname() {
092: debug("JonasMqConnectForm#getHostname");
093: return hostname;
094: }
095:
096: /**
097: * set the hostname of the connector
098: * @param hostname
099: */
100: public void setHostname(String hostname) {
101: debug("JonasMqConnectForm#setHostname(" + hostname + ")");
102: this .hostname = hostname;
103: }
104:
105: /**
106: * get the channel of the connector
107: * @return channel
108: */
109: public String getChannel() {
110: debug("JonasMqConnectForm#getChannel");
111: return channel;
112: }
113:
114: /**
115: * set the channel of the connector
116: * @param channel
117: */
118: public void setChannel(String channel) {
119: debug("JonasMqConnectForm#setChannel(" + channel + ")");
120: this .channel = channel;
121: }
122:
123: /**
124: * get the port of the connector
125: * @return port
126: */
127: public String getPort() {
128: debug("JonasMqConnectForm#getPort");
129: return port;
130: }
131:
132: /**
133: * set the port of the connector
134: * @param port
135: */
136: public void setPort(String port) {
137: debug("JonasMqConnectForm#setPort(" + port + ")");
138: this .port = port;
139: }
140:
141: /**
142: * get the queueManager of the connector
143: * @return queueManager
144: */
145: public String getQueueManager() {
146: debug("JonasMqConnectForm#getQueueManager");
147: return queueManager;
148: }
149:
150: /**
151: * set the queueManager of the connector
152: * @param queueManager
153: */
154: public void setQueueManager(String queueManager) {
155: debug("JonasMqConnectForm#setQueueManager(" + queueManager
156: + ")");
157: this .queueManager = queueManager;
158: }
159:
160: /**
161: * get the transportType of the connector
162: * @return transportType
163: */
164: public String getTransportType() {
165: debug("JonasMqConnectForm#getTransportType");
166: return transportType;
167: }
168:
169: /**
170: * set the transportType of the connector
171: * @param transportType
172: */
173: public void setTransportType(String transportType) {
174: debug("JonasMqConnectForm#setTransportType(" + transportType
175: + ")");
176: this.transportType = transportType;
177: }
178: }
|