KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > webapp > jonasadmin > catalina > ConnectorForm


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 2003-2004 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: ConnectorForm.java,v 1.12 2005/04/22 14:14:25 danesa Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas.webapp.jonasadmin.catalina;
27
28 import java.net.InetAddress JavaDoc;
29 import java.util.List JavaDoc;
30
31 import javax.servlet.http.HttpServletRequest JavaDoc;
32
33 import org.apache.struts.action.ActionMessage;
34 import org.apache.struts.action.ActionErrors;
35 import org.apache.struts.action.ActionForm;
36 import org.apache.struts.action.ActionMapping;
37
38 /**
39  * Form bean for the connector page.
40  *
41  * @author Michel-Ange ANTON
42  * @author Adriana Danes
43  * - update to Tomact 5.0
44  * - update to Tomact 5.5 (04/2005)
45  */

46
47 public final class ConnectorForm extends ActionForm {
48
49     // ----------------------------------------------------- Instance Variables
50

51     /**
52      * The administrative action represented by this form.
53      */

54     private String JavaDoc action = "edit";
55
56     /**
57      * The administrative sub-action state.
58      */

59     private boolean save = false;
60
61     /**
62      * The object name of the Connector this bean refers to.
63      */

64     private String JavaDoc objectName = null;
65
66     /**
67      * The name of the service this connector belongs to.
68      */

69     private String JavaDoc serviceName = null;
70     /**
71      * The text for choosing the connector type at creation
72      */

73     private String JavaDoc connectorType = null;
74
75     // Common Connector attributes
76
// ---------------------------
77
/**
78      * Used to enable/disable the TRACE HTTP method
79      */

80     private boolean allowTrace = false;
81     /**
82      * The 'empty session path' flag for this Connector
83      */

84     private boolean emptySessionPath = false;
85     /**
86      * The 'enable DNS lookups' flag for this Connector
87      */

88     private boolean enableLookups = true;
89     /**
90      * Maximum size in bytes of a POST which will be handled by the servlet API provided features
91      */

92     private String JavaDoc maxPostSizeText = "2097152";
93     /**
94      * Coyote protocol handler in use
95      */

96     private String JavaDoc protocol = "HTTP/1.1";
97     /**
98      * The text for the proxyName.
99      */

100     private String JavaDoc proxyName = null;
101     /**
102      * The text for the proxy Port Number.
103      */

104     private String JavaDoc proxyPortText = "0";
105     /**
106      * The text for the scheme.
107      */

108     private String JavaDoc scheme = "http";
109     /**
110      * Is this a secure (SSL) Connector?
111      */

112     private boolean secure = false;
113     /**
114      * Character encoding used to decode the URI
115      */

116     private String JavaDoc URIEncoding = null;
117     /**
118      * Should the body encoding be used for URI query parameters
119      */

120     private boolean useBodyEncodingForURI = false;
121     /**
122      * Is generation of X-Powered-By response header enabled/disabled?
123      */

124     private boolean xpoweredBy = false;
125
126     // Additional attributes specific to org.apache.coyote.tomcat5.CoyoteConnector
127
// ---------------------------------------------------------------------------
128
/**
129      * The text for the accept Count.
130      */

131     private String JavaDoc acceptCountText = "10";
132     /**
133      * The IP address on which to bind.
134      */

135     private String JavaDoc address = null;
136     /**
137      * The text for the TCP port the created socked awaits for incomming requests
138      */

139     private String JavaDoc portText = null;
140     /**
141      * The text for the redirect port for non-SSL to SSL redirects
142      */

143     private String JavaDoc redirectPortText = "-1";
144     /**
145      * Should we use TCP no delay?
146      */

147     private boolean tcpNoDelay = true;
148
149     // Thread pool management
150
/**
151      * The text for the number of request processing threads that will be created
152      * when the connector is first started
153      */

154     private String JavaDoc minSpareThreadsText = "4";
155     /**
156      * The text for the maximum number of unused request processing threads
157      */

158     private String JavaDoc maxSpareThreadsText = "50";
159     /**
160      * The text for the max Threads.
161      */

162     private String JavaDoc maxThreadsText = "200";
163
164     // The followings are not usefull for AJP / JK connectors
165
/**
166      * The text for the buffer size we should create on input streams.
167      */

168     private String JavaDoc bufferSizeText = "2048";
169     /**
170      * Compression value
171      */

172     private String JavaDoc compression = "off";
173     /**
174      * Linger value on the incoming connection
175      * Default value is -1 (socket linger is disabled).
176      */

177     private String JavaDoc connectionLingerText = "-1";
178     /**
179      * The text for the Timeout value on the incoming connection
180      */

181     private String JavaDoc connTimeOutText = "60000";
182     /**
183      * The text for the Timeout value on the incoming connection
184      * during request processing
185      */

186     private String JavaDoc connectionUploadTimeoutText = null;
187     /**
188      * Should Tomcat ignore setting a timeout for uploads?
189      */

190     private boolean disableUploadTimeout = false;
191     /**
192      * Text for Maximum size in bytes of the HTTP header
193      */

194     private String JavaDoc maxHttpHeaderSizeText = "4096";
195     /**
196      * Text for Maximum number of Keep-Alive requests to honor per connection
197      */

198     private String JavaDoc maxKeepAliveRequestsText = "100";
199     /**
200      * Thread pool strategy
201      */

202     private String JavaDoc strategy = "If";
203     /**
204      * Text for the priority of request processing threads
205      */

206     private String JavaDoc threadPriorityText = "5";
207
208     // The following is specific to AJP connectors only
209
/**
210      * Should Tomcat perform all authentications?
211      */

212     private boolean tomcatAuthentication = true;
213
214     // The followings are dedicated to SSL support
215
/**
216      * The certificate encoding algorithm to be used
217      */

218     private String JavaDoc algorithm = "SunX509";
219     /**
220      * Whether client authentication is supported.
221      */

222     private boolean clientAuth = false;
223     /**
224      * Pathname of the keystore file
225      */

226     private String JavaDoc keystoreFile = ".keystore";
227     /**
228      * The keyStore Password.
229      */

230     private String JavaDoc keystorePass = "changeit";
231     /**
232      * The keyStore type
233      */

234     private String JavaDoc keystoreType = "JKS";
235     /**
236      * SSL protocol
237      */

238     private String JavaDoc sslProtocol = "TLS";
239     /**
240      * list of encription ciphers
241      */

242     private String JavaDoc ciphers = null;
243
244     // ------------------------- ???
245
/**
246      * The text for the debug level.
247      */

248     private String JavaDoc debugLvl = "0";
249
250     /**
251      * The text for the connectorName.
252      */

253     private String JavaDoc connectorName = null;
254
255     /**
256      * Set of valid values for debug level.
257      */

258     private List JavaDoc debugLvlVals = null;
259
260     /**
261      * Represent boolean (true, false) values for enableLookups etc.
262      */

263     private List JavaDoc booleanVals = null;
264
265     /**
266      * Represent supported connector types.
267      */

268     private List JavaDoc connectorTypeVals = null;
269
270     /**
271      * The text for the minProcessors.
272      */

273     private String JavaDoc minProcessorsText = "5";
274
275     /**
276      * The text for the maxProcessors.
277      */

278     private String JavaDoc maxProcessorsText = "20";
279
280     // --------------------------------------------------------- Public Methods
281
/**
282      * Validate the properties that have been set from this HTTP request,
283      * and return an <code>ActionErrors</code> object that encapsulates any
284      * validation errors that have been found. If no errors are found, return
285      * <code>null</code> or an <code>ActionErrors</code> object with no
286      * recorded error messages.
287      *
288      * @param mapping The mapping used to select this instance
289      * @param request The servlet request we are processing
290      * @return the ActionErrors
291      */

292     public ActionErrors validate(ActionMapping mapping, HttpServletRequest JavaDoc request) {
293
294         ActionErrors oErrors = new ActionErrors();
295
296         // general
297
numberCheck(oErrors, "acceptCountText", acceptCountText, true, 0, 128);
298         numberCheck(oErrors, "connTimeOutText", connTimeOutText, true, -1, 60000);
299         numberCheck(oErrors, "bufferSizeText", bufferSizeText, true, 1, 8192);
300
301         // The IP address can also be null --
302
// which means open the server socket on *all* IP addresses for this host
303
if (address.length() > 0) {
304             try {
305                 InetAddress.getByName(address);
306             } catch (Exception JavaDoc e) {
307                 oErrors.add("address", new ActionMessage("error.catalina.connector.address.invalid"));
308             }
309         } else {
310             address = null;
311         }
312
313         // ports
314
numberCheck(oErrors, "portNumber", portText, true, 1, 65535);
315         numberCheck(oErrors, "redirectPortText", redirectPortText, true, -1, 65535);
316
317         numberCheck(oErrors, "maxThreadsText", maxThreadsText, true, 1, 65535);
318         numberCheck(oErrors, "maxSpareThreadsText", maxSpareThreadsText, true, 1, 65535);
319         numberCheck(oErrors, "minSpareThreadsText", minSpareThreadsText, true, 1, 65535);
320         try {
321             // if min is a valid integer, then check that max >= min
322
int min = Integer.parseInt(minSpareThreadsText);
323             numberCheck(oErrors, "maxThreadsText", maxThreadsText, true, min, 65535);
324         } catch (Exception JavaDoc e) {
325         }
326
327         // proxy
328
if ((proxyName != null) && (proxyName.length() > 0)) {
329             try {
330                 InetAddress.getByName(proxyName);
331             } catch (Exception JavaDoc e) {
332                 oErrors.add("proxyName"
333                     , new ActionMessage("error.catalina.connector.proxyName.invalid"));
334             }
335         }
336
337         // supported only by Coyote HTTP and HTTPS connectors
338
if (!("AJP".equalsIgnoreCase(connectorType))) {
339             numberCheck(oErrors, "proxyPortText", proxyPortText, true, 0, 65535);
340         }
341
342         return oErrors;
343     }
344
345     /**
346      * Helper method to check that it is a required number and
347      * is a valid integer within the given range. (min, max).
348      *
349      * @param field The field name in the form for which this error occured.
350      * @param numText The string representation of the number.
351      * @param rangeCheck Boolean value set to true of reange check should be performed.
352      *
353      * @param min The lower limit of the range
354      * @param max The upper limit of the range
355      * @param pErrors the ActionErrors
356      */

357     public void numberCheck(ActionErrors pErrors, String JavaDoc field, String JavaDoc numText, boolean rangeCheck
358         , int min, int max) {
359         // Check for 'is required'
360
if ((numText == null) || (numText.length() < 1)) {
361             pErrors.add(field, new ActionMessage("error.catalina.connector." + field + ".required"));
362         } else {
363
364             // check for 'must be a number' in the 'valid range'
365
try {
366                 int num = Integer.parseInt(numText);
367                 // perform range check only if required
368
if (rangeCheck) {
369                     if ((num < min) || (num > max)) {
370                         pErrors.add(field
371                             , new ActionMessage("error.catalina.connector." + field + ".range"));
372                     }
373                 }
374             } catch (NumberFormatException JavaDoc e) {
375                 pErrors.add(field, new ActionMessage("error.catalina.connector." + field + ".format"));
376             }
377         }
378     }
379
380 // ------------------------------------------------------------- Properties methods
381

382     /**
383      * Return the administrative action represented by this form.
384      * @return the administrative action
385      */

386     public String JavaDoc getAction() {
387         return this.action;
388     }
389
390     /**
391      * Set the administrative action represented by this form.
392      * @param action the action to set
393      */

394     public void setAction(String JavaDoc action) {
395         this.action = action;
396     }
397
398     /**
399      * Return the object name of the Connector this bean refers to.
400      * @return the object name of the Connector MBean
401      */

402     public String JavaDoc getObjectName() {
403         return this.objectName;
404     }
405
406     /**
407      * Set the object name of the Connector this bean refers to.
408      * @param objectName object name of the Connector MBean
409      */

410     public void setObjectName(String JavaDoc objectName) {
411         this.objectName = objectName;
412     }
413
414     /**
415      * Return the object name of the service this connector belongs to.
416      * @return the object name of the service this connector belongs to
417      */

418     public String JavaDoc getServiceName() {
419         return this.serviceName;
420     }
421
422     /**
423      * Set the object name of the Service this connector belongs to.
424      * @param serviceName the object name of the service this connector belongs to
425      */

426     public void setServiceName(String JavaDoc serviceName) {
427         this.serviceName = serviceName;
428     }
429
430     /**
431      * Return the Scheme.
432      * @return the scheme
433      */

434     public String JavaDoc getScheme() {
435         return this.scheme;
436     }
437     /**
438      * Set the Scheme.
439      * @param scheme the scheme to set
440      */

441     public void setScheme(String JavaDoc scheme) {
442         this.scheme = scheme;
443     }
444
445     /**
446      * Return the Connector type.
447      * @return the Connector type
448      */

449     public String JavaDoc getConnectorType() {
450         return this.connectorType;
451     }
452
453     /**
454      * Set the Connector type.
455      * @param connectorType the Connector type to set
456      */

457     public void setConnectorType(String JavaDoc connectorType) {
458         this.connectorType = connectorType;
459     }
460
461     /**
462      * Return the acceptCountText.
463      * @return the acceptCount
464      */

465     public String JavaDoc getAcceptCountText() {
466         return this.acceptCountText;
467     }
468
469     /**
470      * Set the acceptCountText.
471      * @param acceptCountText the acceptCount text
472      */

473     public void setAcceptCountText(String JavaDoc acceptCountText) {
474         this.acceptCountText = acceptCountText;
475     }
476
477     /**
478      * Return the connTimeOutText.
479      * @return the connTimeOut
480      */

481     public String JavaDoc getConnTimeOutText() {
482         return this.connTimeOutText;
483     }
484
485     /**
486      * Set the connTimeOutText.
487      * @param connTimeOutText the connTimeOut text
488      */

489     public void setConnTimeOutText(String JavaDoc connTimeOutText) {
490         this.connTimeOutText = connTimeOutText;
491     }
492
493     /**
494      * Return the bufferSizeText.
495      * @return the bufferSize
496      */

497     public String JavaDoc getBufferSizeText() {
498         return this.bufferSizeText;
499     }
500
501     /**
502      * Set the bufferSizeText.
503      * @param bufferSizeText the bufferSize to set
504      */

505     public void setBufferSizeText(String JavaDoc bufferSizeText) {
506         this.bufferSizeText = bufferSizeText;
507     }
508
509     /**
510      * Return the address.
511      * @return the address
512      */

513     public String JavaDoc getAddress() {
514         return this.address;
515     }
516
517     /**
518      * Set the address.
519      * @param address the address to set
520      */

521     public void setAddress(String JavaDoc address) {
522         this.address = address;
523     }
524
525     /**
526      * Return the proxy Name.
527      * @return the proxy name
528      */

529     public String JavaDoc getProxyName() {
530         return this.proxyName;
531     }
532
533     /**
534      * Set the proxy Name.
535      * @param proxyName the proxy name to set
536      */

537     public void setProxyName(String JavaDoc proxyName) {
538         this.proxyName = proxyName;
539     }
540
541     /**
542      * Return the proxy Port NumberText.
543      * @return the proxy port number
544      */

545     public String JavaDoc getProxyPortText() {
546         return this.proxyPortText;
547     }
548
549     /**
550      * Set the proxy Port NumberText.
551      * @param proxyPortText the proxy port number to set
552      */

553     public void setProxyPortText(String JavaDoc proxyPortText) {
554         this.proxyPortText = proxyPortText;
555     }
556
557     /**
558      * Return the true/false value of client authentication.
559      * @return the value of client authentication
560      */

561     public boolean isClientAuth() {
562         return this.clientAuth;
563     }
564
565     /**
566      * Set whether client authentication is supported or not.
567      * @param clientAuthentication the client authentication to set or not
568      */

569     public void setClientAuth(boolean clientAuthentication) {
570         this.clientAuth = clientAuthentication;
571     }
572
573     /**
574      * @return the keyStore file name
575      */

576     public String JavaDoc getKeystoreFile() {
577         return this.keystoreFile;
578     }
579
580     /**
581      * @param keyStoreFileName the keyStore file name to set
582      */

583     public void setKeystoreFile(String JavaDoc keyStoreFileName) {
584         this.keystoreFile = keyStoreFileName;
585     }
586
587     /**
588      * @return the keyStore password
589      */

590     public String JavaDoc getKeystorePass() {
591         return this.keystorePass;
592     }
593
594     /**
595      * @param keyStorePassword the keyStore password to set
596      */

597     public void setKeystorePass(String JavaDoc keyStorePassword) {
598         this.keystorePass = keyStorePassword;
599     }
600
601     /**
602      * Return the debugVals.
603      * @return the debug level values
604      */

605     public List JavaDoc getDebugLvlVals() {
606         return this.debugLvlVals;
607     }
608
609     /**
610      * Set the debugVals.
611      * @param debugLvlVals the debug level values
612      */

613     public void setDebugLvlVals(List JavaDoc debugLvlVals) {
614         this.debugLvlVals = debugLvlVals;
615     }
616
617     /**
618      * Return the Debug Level Text.
619      * @return the debug level text
620      */

621     public String JavaDoc getDebugLvl() {
622         return this.debugLvl;
623     }
624
625     /**
626      * Set the Debug Level Text.
627      * @param debugLvl the debug level text to set
628      */

629     public void setDebugLvl(String JavaDoc debugLvl) {
630         this.debugLvl = debugLvl;
631     }
632
633     /**
634      * Return the Enable lookup Text.
635      * @return true if loookups enabled
636      */

637     public boolean isEnableLookups() {
638         return this.enableLookups;
639     }
640
641     /**
642      * Set the Enable Lookup Text.
643      * @param enableLookups Enable Lookup Text
644      */

645     public void setEnableLookups(boolean enableLookups) {
646         this.enableLookups = enableLookups;
647     }
648
649     /**
650      * Return the booleanVals.
651      */

652     public List JavaDoc getBooleanVals() {
653         return this.booleanVals;
654     }
655
656     /**
657      * Set the debugVals.
658      */

659     public void setBooleanVals(List JavaDoc booleanVals) {
660         this.booleanVals = booleanVals;
661     }
662
663     /**
664      * Return the min SpareThreads Text.
665      * @return minSpareThreads value
666      */

667     public String JavaDoc getMinSpareThreadsText() {
668         return this.minSpareThreadsText;
669     }
670
671     /**
672      * Set the minSpareThreads Text.
673      * @param minSpareThreadsText minSpareThreads value to set
674      */

675     public void setMinSpareThreadsText(String JavaDoc minSpareThreadsText) {
676         this.minSpareThreadsText = minSpareThreadsText;
677     }
678
679     /**
680      * Return the max SpareThreads Text.
681      * @return maxSpareThreads value
682      */

683     public String JavaDoc getMaxSpareThreadsText() {
684         return this.maxSpareThreadsText;
685     }
686
687     /**
688      * Set the Max SpareThreads Text.
689      * @param maxSpareThreadsText maxSpareThreads value to set
690      */

691     public void setMaxSpareThreadsText(String JavaDoc maxSpareThreadsText) {
692         this.maxSpareThreadsText = maxSpareThreadsText;
693     }
694
695     /**
696      * Return the max SpareThreads Text.
697      * @return maxThreads value
698      */

699     public String JavaDoc getMaxThreadsText() {
700         return this.maxThreadsText;
701     }
702
703     /**
704      * Set the Max SpareThreads Text.
705      * @param maxThreadsText maxSpareThreads value to set
706      */

707     public void setMaxThreadsText(String JavaDoc maxThreadsText) {
708         this.maxThreadsText = maxThreadsText;
709     }
710
711     /**
712      * Return the port text.
713      * @return the port number
714      */

715     public String JavaDoc getPortText() {
716         return this.portText;
717     }
718
719     /**
720      * Set the port Text.
721      * @param portText port to set
722      */

723     public void setPortText(String JavaDoc portText) {
724         this.portText = portText;
725     }
726
727     /**
728      * Return the port.
729      * @return the redirect port number
730      */

731     public String JavaDoc getRedirectPortText() {
732         return this.redirectPortText;
733     }
734
735     /**
736      * Set the Redirect Port Text.
737      * @param redirectPortText the redirect port to set
738      */

739     public void setRedirectPortText(String JavaDoc redirectPortText) {
740         this.redirectPortText = redirectPortText;
741     }
742
743     /**
744      * @return the connector name
745      */

746     public String JavaDoc getConnectorName() {
747         return this.connectorName;
748     }
749
750     /**
751      * @param connectorName connector name to set
752      */

753     public void setConnectorName(String JavaDoc connectorName) {
754         this.connectorName = connectorName;
755     }
756
757     /**
758      * Return the connectorTypeVals.
759      * @return the connector types
760      */

761     public List JavaDoc getConnectorTypeVals() {
762         return this.connectorTypeVals;
763     }
764
765     /**
766      * Set the connectorTypeVals.
767      * @param connectorTypeVals the connector types
768      */

769     public void setConnectorTypeVals(List JavaDoc connectorTypeVals) {
770         this.connectorTypeVals = connectorTypeVals;
771     }
772     /**
773      * @return the labels
774      */

775     public String JavaDoc getLabel() {
776         StringBuffer JavaDoc sb = new StringBuffer JavaDoc(getPortText());
777         if (getAddress() != null) {
778             sb.append(" (");
779             sb.append(getAddress());
780             sb.append(")");
781         }
782         return sb.toString();
783     }
784
785     /**
786      *
787      * @return true if save action
788      */

789     public boolean isSave() {
790         return save;
791     }
792
793     /**
794      *
795      * @param save set the save action
796      */

797     public void setSave(boolean save) {
798         this.save = save;
799     }
800     /**
801      * @return the minProcessorsText.
802      */

803     public String JavaDoc getMinProcessorsText() {
804         return minProcessorsText;
805     }
806     /**
807      * @param minProcessorsText the minProcessorsText to set.
808      */

809     public void setMinProcessorsText(String JavaDoc minProcessorsText) {
810         this.minProcessorsText = minProcessorsText;
811     }
812     /**
813      * @return the maxProcessorsText.
814      */

815     public String JavaDoc getMaxProcessorsText() {
816         return maxProcessorsText;
817     }
818     /**
819      * @param maxProcessorsText the maxProcessorsText to set.
820      */

821     public void setMaxProcessorsText(String JavaDoc maxProcessorsText) {
822         this.maxProcessorsText = maxProcessorsText;
823     }
824
825     /**
826      * @return Returns the allowTrace.
827      */

828     public boolean isAllowTrace() {
829         return allowTrace;
830     }
831     /**
832      * @param allowTrace The allowTrace to set.
833      */

834     public void setAllowTrace(boolean allowTrace) {
835         this.allowTrace = allowTrace;
836     }
837
838     /**
839      * @return Returns the emptySessionPath.
840      */

841     public boolean isEmptySessionPath() {
842         return emptySessionPath;
843     }
844     /**
845      * @param emptySessionPath The emptySessionPath to set.
846      */

847     public void setEmptySessionPath(boolean emptySessionPath) {
848         this.emptySessionPath = emptySessionPath;
849     }
850
851     /**
852      * @return Returns the maxPostSize.
853      */

854     public String JavaDoc getMaxPostSizeText() {
855         return maxPostSizeText;
856     }
857
858
859     /**
860      * @param maxPostSize The maxPostSize to set.
861      */

862     public void setMaxPostSizeText(String JavaDoc maxPostSizeText) {
863         this.maxPostSizeText = maxPostSizeText;
864     }
865
866     /**
867      * @return Returns the protocol.
868      */

869     public String JavaDoc getProtocol() {
870         return protocol;
871     }
872
873     /**
874      * @return Returns the secure.
875      */

876     public boolean isSecure() {
877         return secure;
878     }
879
880
881     /**
882      * @param secure The secure to set.
883      */

884     public void setSecure(boolean secure) {
885         this.secure = secure;
886     }
887
888     /**
889      * @return Returns the uRIEncoding.
890      */

891     public String JavaDoc getURIEncoding() {
892         return URIEncoding;
893     }
894
895
896     /**
897      * @param encoding The uRIEncoding to set.
898      */

899     public void setURIEncoding(String JavaDoc encoding) {
900         URIEncoding = encoding;
901     }
902
903     /**
904      * @return Returns the useBodyEncodingForURI.
905      */

906     public boolean isUseBodyEncodingForURI() {
907         return useBodyEncodingForURI;
908     }
909
910
911     /**
912      * @param useBodyEncodingForURI The useBodyEncodingForURI to set.
913      */

914     public void setUseBodyEncodingForURI(boolean useBodyEncodingForURI) {
915         this.useBodyEncodingForURI = useBodyEncodingForURI;
916     }
917
918     /**
919      * @return Returns the xpoweredBy.
920      */

921     public boolean isXpoweredBy() {
922         return xpoweredBy;
923     }
924
925
926     /**
927      * @param xpoweredBy The xpoweredBy to set.
928      */

929     public void setXpoweredBy(boolean xpoweredBy) {
930         this.xpoweredBy = xpoweredBy;
931     }
932
933     /**
934      * @return Returns the compression.
935      */

936     public String JavaDoc getCompression() {
937         return compression;
938     }
939
940
941     /**
942      * @param compression The compression to set.
943      */

944     public void setCompression(String JavaDoc compression) {
945         this.compression = compression;
946     }
947
948     /**
949      * @return Returns the connectionLingerText.
950      */

951     public String JavaDoc getConnectionLingerText() {
952         return connectionLingerText;
953     }
954
955
956     /**
957      * @param connectionLingerText The connectionLingerText to set.
958      */

959     public void setConnectionLingerText(String JavaDoc connectionLingerText) {
960         this.connectionLingerText = connectionLingerText;
961     }
962
963     /**
964      * @return Returns the connectionUploadTimeoutText.
965      */

966     public String JavaDoc getConnectionUploadTimeoutText() {
967         return connectionUploadTimeoutText;
968     }
969
970
971     /**
972      * @param connectionUploadTimeoutText The connectionUploadTimeoutText to set.
973      */

974     public void setConnectionUploadTimeoutText(String JavaDoc connectionUploadTimeoutText) {
975         this.connectionUploadTimeoutText = connectionUploadTimeoutText;
976     }
977
978     /**
979      * @return Returns the disableUploadTimeout.
980      */

981     public boolean isDisableUploadTimeout() {
982         return disableUploadTimeout;
983     }
984
985
986     /**
987      * @param disableUploadTimeout The disableUploadTimeout to set.
988      */

989     public void setDisableUploadTimeout(boolean disableUploadTimeout) {
990         this.disableUploadTimeout = disableUploadTimeout;
991     }
992
993     /**
994      * @return Returns the maxHttpHeaderSize.
995      */

996     public String JavaDoc getMaxHttpHeaderSizeText() {
997         return maxHttpHeaderSizeText;
998     }
999
1000
1001    /**
1002     * @param maxHttpHeaderSize The maxHttpHeaderSize to set.
1003     */

1004    public void setMaxHttpHeaderSizeText(String JavaDoc maxHttpHeaderSize) {
1005        this.maxHttpHeaderSizeText = maxHttpHeaderSize;
1006    }
1007
1008    /**
1009     * @return Returns the maxKeepAliveRequests.
1010     */

1011    public String JavaDoc getMaxKeepAliveRequestsText() {
1012        return maxKeepAliveRequestsText;
1013    }
1014
1015
1016    /**
1017     * @param maxKeepAliveRequests The maxKeepAliveRequests to set.
1018     */

1019    public void setMaxKeepAliveRequestsText(String JavaDoc maxKeepAliveRequests) {
1020        this.maxKeepAliveRequestsText = maxKeepAliveRequests;
1021    }
1022
1023    /**
1024     * @return Returns the strategy.
1025     */

1026    public String JavaDoc getStrategy() {
1027        return strategy;
1028    }
1029
1030
1031    /**
1032     * @param strategy The strategy to set.
1033     */

1034    public void setStrategy(String JavaDoc strategy) {
1035        this.strategy = strategy;
1036    }
1037
1038    /**
1039     * @return Returns the threadPriority.
1040     */

1041    public String JavaDoc getThreadPriorityText() {
1042        return threadPriorityText;
1043    }
1044
1045
1046    /**
1047     * @param threadPriority The threadPriority to set.
1048     */

1049    public void setThreadPriorityText(String JavaDoc threadPriority) {
1050        this.threadPriorityText = threadPriority;
1051    }
1052
1053    /**
1054     * @return Returns the tomcatAuthentication.
1055     */

1056    public boolean isTomcatAuthentication() {
1057        return tomcatAuthentication;
1058    }
1059
1060
1061    /**
1062     * @param tomcatAuthentication The tomcatAuthentication to set.
1063     */

1064    public void setTomcatAuthentication(boolean tomcatAuthentication) {
1065        this.tomcatAuthentication = tomcatAuthentication;
1066    }
1067
1068    /**
1069     * @return Returns the algorithm.
1070     */

1071    public String JavaDoc getAlgorithm() {
1072        return algorithm;
1073    }
1074
1075
1076    /**
1077     * @param algorithm The algorithm to set.
1078     */

1079    public void setAlgorithm(String JavaDoc algorithm) {
1080        this.algorithm = algorithm;
1081    }
1082
1083    /**
1084     * @return Returns the keystoreType.
1085     */

1086    public String JavaDoc getKeystoreType() {
1087        return keystoreType;
1088    }
1089
1090
1091    /**
1092     * @param keystoreType The keystoreType to set.
1093     */

1094    public void setKeystoreType(String JavaDoc keystoreType) {
1095        this.keystoreType = keystoreType;
1096    }
1097
1098    /**
1099     * @return Returns the sslProtocol.
1100     */

1101    public String JavaDoc getSslProtocol() {
1102        return sslProtocol;
1103    }
1104
1105
1106    /**
1107     * @param sslProtocol The sslProtocol to set.
1108     */

1109    public void setSslProtocol(String JavaDoc sslProtocol) {
1110        this.sslProtocol = sslProtocol;
1111    }
1112
1113    /**
1114     * @return Returns the ciphers.
1115     */

1116    public String JavaDoc getCiphers() {
1117        return ciphers;
1118    }
1119
1120
1121    /**
1122     * @param ciphers The ciphers to set.
1123     */

1124    public void setCiphers(String JavaDoc ciphers) {
1125        this.ciphers = ciphers;
1126    }
1127
1128    /**
1129     * @param protocol The protocol to set.
1130     */

1131    public void setProtocol(String JavaDoc protocol) {
1132        this.protocol = protocol;
1133    }
1134
1135    /**
1136     * @return Returns the tcpNoDelay.
1137     */

1138    public boolean isTcpNoDelay() {
1139        return tcpNoDelay;
1140    }
1141
1142
1143    /**
1144     * @param tcpNoDelay The tcpNoDelay to set.
1145     */

1146    public void setTcpNoDelay(boolean tcpNoDelay) {
1147        this.tcpNoDelay = tcpNoDelay;
1148    }
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170}
1171
Popular Tags