001: package org.objectweb.jonas.webapp.jonasadmin.jonasmqconnect;
002:
003: import org.apache.struts.action.ActionForm;
004:
005: public class JonasMqConnectForm 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: * operation : view,edit,apply
027: */
028: private String operation;
029:
030: /**
031: * Name of the connector
032: */
033: private String connector;
034:
035: /**
036: * Hostname of the connector
037: */
038: private String hostname;
039:
040: /**
041: * Channel of the connector
042: */
043: private String channel;
044:
045: /**
046: * Port of the connector
047: */
048: private String port;
049:
050: /**
051: * QueueManager of the connector
052: */
053: private String queueManager;
054:
055: /**
056: * TransportType of the connector
057: */
058: private String transportType;
059:
060: /**
061: * @return the version
062: */
063: public String getVersion() {
064: return version;
065: }
066:
067: /**
068: * @param version the version to set
069: */
070: public void setVersion(String version) {
071: this .version = version;
072: }
073:
074: /**
075: * add,modify,delete
076: * @return the operation
077: */
078: public String getOperation() {
079: return operation;
080: }
081:
082: /**
083: * add,modify,delete
084: * @param operation the operation to set
085: */
086: public void setOperation(String operation) {
087: this .operation = operation;
088: }
089:
090: /**
091: * get the name of the connector
092: * @return hostname
093: */
094: public String getConnector() {
095: debug("JonasMqConnectForm#getConnector");
096: return connector;
097: }
098:
099: /**
100: * set the name of the connector
101: * @param connector
102: */
103: public void setConnector(String connector) {
104: debug("JonasMqConnectForm#setConnector(" + connector + ")");
105: this .connector = connector;
106: }
107:
108: /**
109: * get the hostname of the connector
110: * @return hostname
111: */
112: public String getHostname() {
113: debug("JonasMqConnectForm#getHostname");
114: return hostname;
115: }
116:
117: /**
118: * set the hostname of the connector
119: * @param hostname
120: */
121: public void setHostname(String hostname) {
122: debug("JonasMqConnectForm#setHostname(" + hostname + ")");
123: this .hostname = hostname;
124: }
125:
126: /**
127: * get the channel of the connector
128: * @return channel
129: */
130: public String getChannel() {
131: debug("JonasMqConnectForm#getChannel");
132: return channel;
133: }
134:
135: /**
136: * set the channel of the connector
137: * @param channel
138: */
139: public void setChannel(String channel) {
140: debug("JonasMqConnectForm#setChannel(" + channel + ")");
141: this .channel = channel;
142: }
143:
144: /**
145: * get the port of the connector
146: * @return port
147: */
148: public String getPort() {
149: debug("JonasMqConnectForm#getPort");
150: return port;
151: }
152:
153: /**
154: * set the port of the connector
155: * @param port
156: */
157: public void setPort(String port) {
158: debug("JonasMqConnectForm#setPort(" + port + ")");
159: this .port = port;
160: }
161:
162: /**
163: * get the queueManager of the connector
164: * @return queueManager
165: */
166: public String getQueueManager() {
167: debug("JonasMqConnectForm#getQueueManager");
168: return queueManager;
169: }
170:
171: /**
172: * set the queueManager of the connector
173: * @param queueManager
174: */
175: public void setQueueManager(String queueManager) {
176: debug("JonasMqConnectForm#setQueueManager(" + queueManager
177: + ")");
178: this .queueManager = queueManager;
179: }
180:
181: /**
182: * get the transportType of the connector
183: * @return transportType
184: */
185: public String getTransportType() {
186: debug("JonasMqConnectForm#getTransportType");
187: return transportType;
188: }
189:
190: /**
191: * set the transportType of the connector
192: * @param transportType
193: */
194: public void setTransportType(String transportType) {
195: debug("JonasMqConnectForm#setTransportType(" + transportType
196: + ")");
197: this.transportType = transportType;
198: }
199: }
|