Source Code Cross Referenced for ConnectorForm.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » webapp » jonasadmin » catalina » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » JOnAS 4.8.6 » org.objectweb.jonas.webapp.jonasadmin.catalina 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


0001:        /**
0002:         * JOnAS: Java(TM) Open Application Server
0003:         * Copyright (C) 2003-2004 Bull S.A.
0004:         * Contact: jonas-team@objectweb.org
0005:         *
0006:         * This library is free software; you can redistribute it and/or
0007:         * modify it under the terms of the GNU Lesser General Public
0008:         * License as published by the Free Software Foundation; either
0009:         * version 2.1 of the License, or any later version.
0010:         *
0011:         * This library is distributed in the hope that it will be useful,
0012:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0014:         * Lesser General Public License for more details.
0015:         *
0016:         * You should have received a copy of the GNU Lesser General Public
0017:         * License along with this library; if not, write to the Free Software
0018:         * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
0019:         * USA
0020:         *
0021:         * --------------------------------------------------------------------------
0022:         * $Id: ConnectorForm.java 10100 2007-03-27 13:55:44Z danesa $
0023:         * --------------------------------------------------------------------------
0024:         */package org.objectweb.jonas.webapp.jonasadmin.catalina;
0025:
0026:        import java.net.InetAddress;
0027:        import java.util.List;
0028:
0029:        import javax.servlet.http.HttpServletRequest;
0030:
0031:        import org.apache.struts.action.ActionMessage;
0032:        import org.apache.struts.action.ActionErrors;
0033:        import org.apache.struts.action.ActionForm;
0034:        import org.apache.struts.action.ActionMapping;
0035:
0036:        /**
0037:         * Form bean for the connector page.
0038:         *
0039:         * @author Michel-Ange ANTON
0040:         * @author Adriana Danes
0041:         * 	- update to Tomact 5.0
0042:         *  - update to Tomact 5.5 (04/2005)
0043:         */
0044:
0045:        public final class ConnectorForm extends ActionForm {
0046:
0047:            // ----------------------------------------------------- Instance Variables
0048:
0049:            /**
0050:             * The administrative action represented by this form.
0051:             */
0052:            private String action = "edit";
0053:
0054:            /**
0055:             * The administrative sub-action state.
0056:             */
0057:            private boolean save = false;
0058:
0059:            /**
0060:             * The object name of the Connector this bean refers to.
0061:             */
0062:            private String objectName = null;
0063:
0064:            /**
0065:             * The name of the service this connector belongs to.
0066:             */
0067:            private String serviceName = null;
0068:            /**
0069:             * The text for choosing the connector type at creation
0070:             */
0071:            private String connectorType = null;
0072:            /**
0073:             * Generic max value used by the numberCheck method
0074:             */
0075:            private int MAX_VALUE = Integer.MAX_VALUE;
0076:
0077:            // Common Connector attributes
0078:            // ---------------------------
0079:            /**
0080:             * Used to enable/disable the TRACE HTTP method
0081:             */
0082:            private boolean allowTrace = false;
0083:            /**
0084:             * The 'empty session path' flag for this Connector
0085:             */
0086:            private boolean emptySessionPath = false;
0087:            /**
0088:             * The 'enable DNS lookups' flag for this Connector
0089:             */
0090:            private boolean enableLookups = true;
0091:            /**
0092:             * Maximum size in bytes of a POST which will be handled by the servlet API provided features
0093:             */
0094:            private String maxPostSizeText = "2097152";
0095:            /**
0096:             * Coyote protocol handler in use
0097:             */
0098:            private String protocol = "HTTP/1.1";
0099:            /**
0100:             * The text for the proxyName.
0101:             */
0102:            private String proxyName = null;
0103:            /**
0104:             * The text for the proxy Port Number.
0105:             */
0106:            private String proxyPortText = "0";
0107:            /**
0108:             * The text for the scheme.
0109:             */
0110:            private String scheme = "http";
0111:            /**
0112:             * Is this a secure (SSL) Connector?
0113:             */
0114:            private boolean secure = false;
0115:            /**
0116:             * Character encoding used to decode the URI
0117:             */
0118:            private String URIEncoding = null;
0119:            /**
0120:             * Should the body encoding be used for URI query parameters
0121:             */
0122:            private boolean useBodyEncodingForURI = false;
0123:            /**
0124:             * Is generation of X-Powered-By response header enabled/disabled?
0125:             */
0126:            private boolean xpoweredBy = false;
0127:
0128:            // Additional attributes specific to org.apache.coyote.tomcat5.CoyoteConnector
0129:            // ---------------------------------------------------------------------------
0130:            /**
0131:             * The text for the accept Count.
0132:             */
0133:            private String acceptCountText = "10";
0134:            /**
0135:             * The IP address on which to bind.
0136:             */
0137:            private String address = null;
0138:            /**
0139:             * The text for the TCP port the created socked awaits for incomming requests
0140:             */
0141:            private String portText = null;
0142:            /**
0143:             * The text for the redirect port for non-SSL to SSL redirects
0144:             */
0145:            private String redirectPortText = "-1";
0146:            /**
0147:             * Should we use TCP no delay?
0148:             */
0149:            private boolean tcpNoDelay = true;
0150:
0151:            // Thread pool management
0152:            /**
0153:             * The text for the number of request processing threads that will be created
0154:             * when the connector is first started
0155:             */
0156:            private String minSpareThreadsText = "4";
0157:            /**
0158:             * The text for the maximum number of unused request processing threads
0159:             */
0160:            private String maxSpareThreadsText = "50";
0161:            /**
0162:             * The text for the max Threads.
0163:             */
0164:            private String maxThreadsText = "200";
0165:
0166:            // The followings are not usefull for AJP / JK connectors
0167:            /**
0168:             * The text for the buffer size to be provided fo input streams.
0169:             */
0170:            private String bufferSizeText = "2048";
0171:            /**
0172:             * Compression value
0173:             */
0174:            private String compression = "off";
0175:            /**
0176:             * Linger value on the incoming connection
0177:             * Default value is -1 (socket linger is disabled).
0178:             */
0179:            private String connectionLingerText = "-1";
0180:            /**
0181:             * The text for the Timeout value on the incoming connection
0182:             */
0183:            private String connTimeOutText = "60000";
0184:            /**
0185:             * The text for the Timeout value on the incoming connection
0186:             * during request processing
0187:             */
0188:            private String connectionUploadTimeoutText = null;
0189:            /**
0190:             * Should Tomcat ignore setting a timeout for uploads?
0191:             */
0192:            private boolean disableUploadTimeout = false;
0193:            /**
0194:             * Text for Maximum size in bytes of the HTTP header
0195:             */
0196:            private String maxHttpHeaderSizeText = "4096";
0197:            /**
0198:             * Text for Maximum number of Keep-Alive requests to honor per connection
0199:             */
0200:            private String maxKeepAliveRequestsText = "100";
0201:            /**
0202:             * Thread pool strategy
0203:             */
0204:            private String strategy = "If";
0205:            /**
0206:             * Text for the priority of request processing threads
0207:             */
0208:            private String threadPriorityText = "5";
0209:
0210:            // The following is specific to AJP connectors only
0211:            /**
0212:             * The text for the output buffer size. If -1 buffering is disabled.
0213:             */
0214:            private String outputBufferSizeText = "-1";
0215:            /**
0216:             * Should Tomcat perform all authentications?
0217:             */
0218:            private boolean tomcatAuthentication = true;
0219:
0220:            // The followings are dedicated to SSL support
0221:            /**
0222:             *  The certificate encoding algorithm to be used
0223:             */
0224:            private String algorithm = "SunX509";
0225:            /**
0226:             * Whether client authentication is supported.
0227:             */
0228:            private boolean clientAuth = false;
0229:            /**
0230:             * Pathname of the keystore file
0231:             */
0232:            private String keystoreFile = ".keystore";
0233:            /**
0234:             * The keyStore Password.
0235:             */
0236:            private String keystorePass = "changeit";
0237:            /**
0238:             * The keyStore type
0239:             */
0240:            private String keystoreType = "JKS";
0241:            /**
0242:             * SSL protocol
0243:             */
0244:            private String sslProtocol = "TLS";
0245:            /**
0246:             * list of encription ciphers
0247:             */
0248:            private String ciphers = null;
0249:
0250:            // -------------------------
0251:            /**
0252:             * The text for the connectorName.
0253:             */
0254:            private String connectorName = null;
0255:
0256:            /**
0257:             * Represent boolean (true, false) values for enableLookups etc.
0258:             */
0259:            private List booleanVals = null;
0260:
0261:            /**
0262:             * Represent supported connector types.
0263:             */
0264:            private List connectorTypeVals = null;
0265:
0266:            // --------------------------------------------------------- Public Methods
0267:            /**
0268:             * Validate the properties that have been set from this HTTP request,
0269:             * and return an <code>ActionErrors</code> object that encapsulates any
0270:             * validation errors that have been found.  If no errors are found, return
0271:             * <code>null</code> or an <code>ActionErrors</code> object with no
0272:             * recorded error messages.
0273:             *
0274:             * @param mapping The mapping used to select this instance
0275:             * @param request The servlet request we are processing
0276:             * @return the ActionErrors
0277:             */
0278:            public ActionErrors validate(ActionMapping mapping,
0279:                    HttpServletRequest request) {
0280:
0281:                ActionErrors oErrors = new ActionErrors();
0282:
0283:                // general
0284:                numberCheck(oErrors, "acceptCountText", acceptCountText, true,
0285:                        0, MAX_VALUE);
0286:                numberCheck(oErrors, "connTimeOutText", connTimeOutText, true,
0287:                        0, MAX_VALUE);
0288:                numberCheck(oErrors, "bufferSizeText", bufferSizeText, true, 0,
0289:                        MAX_VALUE);
0290:                numberCheck(oErrors, "outputBufferSizeText",
0291:                        outputBufferSizeText, true, -1, MAX_VALUE);
0292:
0293:                // The IP address can also be null --
0294:                // which means open the server socket on *all* IP addresses for this host
0295:                if (address.length() > 0) {
0296:                    try {
0297:                        InetAddress.getByName(address);
0298:                    } catch (Exception e) {
0299:                        oErrors.add("address", new ActionMessage(
0300:                                "error.catalina.connector.address.invalid"));
0301:                    }
0302:                } else {
0303:                    address = null;
0304:                }
0305:
0306:                // ports
0307:                numberCheck(oErrors, "portNumber", portText, true, 1, MAX_VALUE);
0308:                numberCheck(oErrors, "redirectPortText", redirectPortText,
0309:                        true, -1, MAX_VALUE);
0310:
0311:                numberCheck(oErrors, "maxThreadsText", maxThreadsText, true, 1,
0312:                        MAX_VALUE);
0313:                numberCheck(oErrors, "maxSpareThreadsText",
0314:                        maxSpareThreadsText, true, 1, MAX_VALUE);
0315:                numberCheck(oErrors, "minSpareThreadsText",
0316:                        minSpareThreadsText, true, 1, MAX_VALUE);
0317:                try {
0318:                    // if min is a valid integer, then check that max >= min
0319:                    int min = Integer.parseInt(minSpareThreadsText);
0320:                    numberCheck(oErrors, "maxThreadsText", maxThreadsText,
0321:                            true, min, MAX_VALUE);
0322:                } catch (Exception e) {
0323:                }
0324:
0325:                // proxy
0326:                if ((proxyName != null) && (proxyName.length() > 0)) {
0327:                    try {
0328:                        /*
0329:                         * The proxyName is the server name to be returned for calls to
0330:                         * request.getServerName()
0331:                         * This name is the value of the part before ":" in the Host  header value, if any,
0332:                         * or the resolved server name, or the server IP address.
0333:                        InetAddress.getByName(proxyName);
0334:                         */
0335:                    } catch (Exception e) {
0336:                        oErrors.add("proxyName", new ActionMessage(
0337:                                "error.catalina.connector.proxyName.invalid"));
0338:                    }
0339:                }
0340:
0341:                // supported only by Coyote HTTP and HTTPS connectors
0342:                if (!("AJP".equalsIgnoreCase(connectorType))) {
0343:                    numberCheck(oErrors, "proxyPortText", proxyPortText, true,
0344:                            0, MAX_VALUE);
0345:                }
0346:
0347:                return oErrors;
0348:            }
0349:
0350:            /**
0351:             * Helper method to check that it is a required number and
0352:             * is a valid integer within the given range. (min, max).
0353:             *
0354:             * @param  field  The field name in the form for which this error occured.
0355:             * @param  numText  The string representation of the number.
0356:             * @param rangeCheck  Boolean value set to true of reange check should be performed.
0357:             *
0358:             * @param  min  The lower limit of the range
0359:             * @param  max  The upper limit of the range
0360:             * @param  pErrors the ActionErrors
0361:             */
0362:            public void numberCheck(ActionErrors pErrors, String field,
0363:                    String numText, boolean rangeCheck, int min, int max) {
0364:                // Check for 'is required'
0365:                if ((numText == null) || (numText.length() < 1)) {
0366:                    pErrors.add(field, new ActionMessage(
0367:                            "error.catalina.connector." + field + ".required"));
0368:                } else {
0369:
0370:                    // check for 'must be a number' in the 'valid range'
0371:                    try {
0372:                        int num = Integer.parseInt(numText);
0373:                        // perform range check only if required
0374:                        if (rangeCheck) {
0375:                            if ((num < min) || (num > max)) {
0376:                                pErrors.add(field, new ActionMessage(
0377:                                        "error.catalina.connector." + field
0378:                                                + ".range"));
0379:                            }
0380:                        }
0381:                    } catch (NumberFormatException e) {
0382:                        pErrors.add(field,
0383:                                new ActionMessage("error.catalina.connector."
0384:                                        + field + ".format"));
0385:                    }
0386:                }
0387:            }
0388:
0389:            // ------------------------------------------------------------- Properties methods
0390:
0391:            /**
0392:             * Return the administrative action represented by this form.
0393:             * @return the administrative action
0394:             */
0395:            public String getAction() {
0396:                return this .action;
0397:            }
0398:
0399:            /**
0400:             * Set the administrative action represented by this form.
0401:             * @param action the action to set
0402:             */
0403:            public void setAction(String action) {
0404:                this .action = action;
0405:            }
0406:
0407:            /**
0408:             * Return the object name of the Connector this bean refers to.
0409:             * @return the object name of the Connector MBean
0410:             */
0411:            public String getObjectName() {
0412:                return this .objectName;
0413:            }
0414:
0415:            /**
0416:             * Set the object name of the Connector this bean refers to.
0417:             * @param objectName object name of the Connector MBean
0418:             */
0419:            public void setObjectName(String objectName) {
0420:                this .objectName = objectName;
0421:            }
0422:
0423:            /**
0424:             * Return the object name of the service this connector belongs to.
0425:             * @return the object name of the service this connector belongs to
0426:             */
0427:            public String getServiceName() {
0428:                return this .serviceName;
0429:            }
0430:
0431:            /**
0432:             * Set the object name of the Service this connector belongs to.
0433:             * @param serviceName the object name of the service this connector belongs to
0434:             */
0435:            public void setServiceName(String serviceName) {
0436:                this .serviceName = serviceName;
0437:            }
0438:
0439:            /**
0440:             * Return the Scheme.
0441:             * @return the scheme
0442:             */
0443:            public String getScheme() {
0444:                return this .scheme;
0445:            }
0446:
0447:            /**
0448:             * Set the Scheme.
0449:             * @param scheme the scheme to set
0450:             */
0451:            public void setScheme(String scheme) {
0452:                this .scheme = scheme;
0453:            }
0454:
0455:            /**
0456:             * Return the Connector type.
0457:             * @return the Connector type
0458:             */
0459:            public String getConnectorType() {
0460:                return this .connectorType;
0461:            }
0462:
0463:            /**
0464:             * Set the Connector type.
0465:             * @param connectorType the Connector type to set
0466:             */
0467:            public void setConnectorType(String connectorType) {
0468:                this .connectorType = connectorType;
0469:            }
0470:
0471:            /**
0472:             * Return the acceptCountText.
0473:             * @return the acceptCount
0474:             */
0475:            public String getAcceptCountText() {
0476:                return this .acceptCountText;
0477:            }
0478:
0479:            /**
0480:             * Set the acceptCountText.
0481:             * @param acceptCountText the acceptCount text
0482:             */
0483:            public void setAcceptCountText(String acceptCountText) {
0484:                this .acceptCountText = acceptCountText;
0485:            }
0486:
0487:            /**
0488:             * Return the connTimeOutText.
0489:             * @return the connTimeOut
0490:             */
0491:            public String getConnTimeOutText() {
0492:                return this .connTimeOutText;
0493:            }
0494:
0495:            /**
0496:             * Set the connTimeOutText.
0497:             * @param connTimeOutText the connTimeOut text
0498:             */
0499:            public void setConnTimeOutText(String connTimeOutText) {
0500:                this .connTimeOutText = connTimeOutText;
0501:            }
0502:
0503:            /**
0504:             * Return the bufferSizeText.
0505:             * @return the bufferSize
0506:             */
0507:            public String getBufferSizeText() {
0508:                return this .bufferSizeText;
0509:            }
0510:
0511:            /**
0512:             * Set the bufferSizeText.
0513:             * @param bufferSizeText the bufferSize to set
0514:             */
0515:            public void setBufferSizeText(String bufferSizeText) {
0516:                this .bufferSizeText = bufferSizeText;
0517:            }
0518:
0519:            /**
0520:             * Return the address.
0521:             * @return the address
0522:             */
0523:            public String getAddress() {
0524:                return this .address;
0525:            }
0526:
0527:            /**
0528:             * Set the address.
0529:             * @param address the address to set
0530:             */
0531:            public void setAddress(String address) {
0532:                if (address != null && address.startsWith("/")) {
0533:                    address = address.substring(1);
0534:                }
0535:                this .address = address;
0536:            }
0537:
0538:            /**
0539:             * Return the proxy Name.
0540:             * @return the proxy name
0541:             */
0542:            public String getProxyName() {
0543:                return this .proxyName;
0544:            }
0545:
0546:            /**
0547:             * Set the proxy Name.
0548:             * @param proxyName the proxy name to set
0549:             */
0550:            public void setProxyName(String proxyName) {
0551:                this .proxyName = proxyName;
0552:            }
0553:
0554:            /**
0555:             * Return the proxy Port NumberText.
0556:             * @return the proxy port number
0557:             */
0558:            public String getProxyPortText() {
0559:                return this .proxyPortText;
0560:            }
0561:
0562:            /**
0563:             * Set the proxy Port NumberText.
0564:             * @param proxyPortText the proxy port number to set
0565:             */
0566:            public void setProxyPortText(String proxyPortText) {
0567:                this .proxyPortText = proxyPortText;
0568:            }
0569:
0570:            /**
0571:             * Return the true/false value of client authentication.
0572:             * @return the value of client authentication
0573:             */
0574:            public boolean isClientAuth() {
0575:                return this .clientAuth;
0576:            }
0577:
0578:            /**
0579:             * Set whether client authentication is supported or not.
0580:             * @param clientAuthentication the client authentication to set or not
0581:             */
0582:            public void setClientAuth(boolean clientAuthentication) {
0583:                this .clientAuth = clientAuthentication;
0584:            }
0585:
0586:            /**
0587:             * @return the keyStore file name
0588:             */
0589:            public String getKeystoreFile() {
0590:                return this .keystoreFile;
0591:            }
0592:
0593:            /**
0594:             * @param keyStoreFileName the keyStore file name to set
0595:             */
0596:            public void setKeystoreFile(String keyStoreFileName) {
0597:                this .keystoreFile = keyStoreFileName;
0598:            }
0599:
0600:            /**
0601:             * @return the keyStore password
0602:             */
0603:            public String getKeystorePass() {
0604:                return this .keystorePass;
0605:            }
0606:
0607:            /**
0608:             * @param keyStorePassword the keyStore password to set
0609:             */
0610:            public void setKeystorePass(String keyStorePassword) {
0611:                this .keystorePass = keyStorePassword;
0612:            }
0613:
0614:            /**
0615:             * Return the Enable lookup Text.
0616:             * @return true if loookups enabled
0617:             */
0618:            public boolean isEnableLookups() {
0619:                return this .enableLookups;
0620:            }
0621:
0622:            /**
0623:             * Set the Enable Lookup Text.
0624:             * @param enableLookups Enable Lookup Text
0625:             */
0626:            public void setEnableLookups(boolean enableLookups) {
0627:                this .enableLookups = enableLookups;
0628:            }
0629:
0630:            /**
0631:             * Return the booleanVals.
0632:             */
0633:            public List getBooleanVals() {
0634:                return this .booleanVals;
0635:            }
0636:
0637:            /**
0638:             * Set the debugVals.
0639:             */
0640:            public void setBooleanVals(List booleanVals) {
0641:                this .booleanVals = booleanVals;
0642:            }
0643:
0644:            /**
0645:             * Return the min SpareThreads Text.
0646:             * @return minSpareThreads value
0647:             */
0648:            public String getMinSpareThreadsText() {
0649:                return this .minSpareThreadsText;
0650:            }
0651:
0652:            /**
0653:             * Set the minSpareThreads Text.
0654:             * @param minSpareThreadsText minSpareThreads value to set
0655:             */
0656:            public void setMinSpareThreadsText(String minSpareThreadsText) {
0657:                this .minSpareThreadsText = minSpareThreadsText;
0658:            }
0659:
0660:            /**
0661:             * Return the max SpareThreads Text.
0662:             * @return maxSpareThreads value
0663:             */
0664:            public String getMaxSpareThreadsText() {
0665:                return this .maxSpareThreadsText;
0666:            }
0667:
0668:            /**
0669:             * Set the Max SpareThreads Text.
0670:             * @param maxSpareThreadsText maxSpareThreads value to set
0671:             */
0672:            public void setMaxSpareThreadsText(String maxSpareThreadsText) {
0673:                this .maxSpareThreadsText = maxSpareThreadsText;
0674:            }
0675:
0676:            /**
0677:             * Return the max SpareThreads Text.
0678:             * @return maxThreads value
0679:             */
0680:            public String getMaxThreadsText() {
0681:                return this .maxThreadsText;
0682:            }
0683:
0684:            /**
0685:             * Set the Max SpareThreads Text.
0686:             * @param maxThreadsText maxSpareThreads value to set
0687:             */
0688:            public void setMaxThreadsText(String maxThreadsText) {
0689:                this .maxThreadsText = maxThreadsText;
0690:            }
0691:
0692:            /**
0693:             * Return the port text.
0694:             * @return the port number
0695:             */
0696:            public String getPortText() {
0697:                return this .portText;
0698:            }
0699:
0700:            /**
0701:             * Set the port Text.
0702:             * @param portText port to set
0703:             */
0704:            public void setPortText(String portText) {
0705:                this .portText = portText;
0706:            }
0707:
0708:            /**
0709:             * Return the port.
0710:             * @return the redirect port number
0711:             */
0712:            public String getRedirectPortText() {
0713:                return this .redirectPortText;
0714:            }
0715:
0716:            /**
0717:             * Set the Redirect Port Text.
0718:             * @param redirectPortText the redirect port to set
0719:             */
0720:            public void setRedirectPortText(String redirectPortText) {
0721:                this .redirectPortText = redirectPortText;
0722:            }
0723:
0724:            /**
0725:             * @return the connector name
0726:             */
0727:            public String getConnectorName() {
0728:                return this .connectorName;
0729:            }
0730:
0731:            /**
0732:             * @param connectorName connector name to set
0733:             */
0734:            public void setConnectorName(String connectorName) {
0735:                this .connectorName = connectorName;
0736:            }
0737:
0738:            /**
0739:             * Return the connectorTypeVals.
0740:             * @return the connector types
0741:             */
0742:            public List getConnectorTypeVals() {
0743:                return this .connectorTypeVals;
0744:            }
0745:
0746:            /**
0747:             * Set the connectorTypeVals.
0748:             * @param connectorTypeVals the connector types
0749:             */
0750:            public void setConnectorTypeVals(List connectorTypeVals) {
0751:                this .connectorTypeVals = connectorTypeVals;
0752:            }
0753:
0754:            /**
0755:             * @return the labels
0756:             */
0757:            public String getLabel() {
0758:                StringBuffer sb = new StringBuffer(getPortText());
0759:                if (getAddress() != null) {
0760:                    sb.append(" (");
0761:                    sb.append(getAddress());
0762:                    sb.append(")");
0763:                }
0764:                return sb.toString();
0765:            }
0766:
0767:            /**
0768:             *
0769:             * @return true if save action
0770:             */
0771:            public boolean isSave() {
0772:                return save;
0773:            }
0774:
0775:            /**
0776:             *
0777:             * @param save set the save action
0778:             */
0779:            public void setSave(boolean save) {
0780:                this .save = save;
0781:            }
0782:
0783:            /**
0784:             * @return Returns the allowTrace.
0785:             */
0786:            public boolean isAllowTrace() {
0787:                return allowTrace;
0788:            }
0789:
0790:            /**
0791:             * @param allowTrace The allowTrace to set.
0792:             */
0793:            public void setAllowTrace(boolean allowTrace) {
0794:                this .allowTrace = allowTrace;
0795:            }
0796:
0797:            /**
0798:             * @return Returns the emptySessionPath.
0799:             */
0800:            public boolean isEmptySessionPath() {
0801:                return emptySessionPath;
0802:            }
0803:
0804:            /**
0805:             * @param emptySessionPath The emptySessionPath to set.
0806:             */
0807:            public void setEmptySessionPath(boolean emptySessionPath) {
0808:                this .emptySessionPath = emptySessionPath;
0809:            }
0810:
0811:            /**
0812:             * @return Returns the maxPostSize.
0813:             */
0814:            public String getMaxPostSizeText() {
0815:                return maxPostSizeText;
0816:            }
0817:
0818:            /**
0819:             * @param maxPostSize The maxPostSize to set.
0820:             */
0821:            public void setMaxPostSizeText(String maxPostSizeText) {
0822:                this .maxPostSizeText = maxPostSizeText;
0823:            }
0824:
0825:            /**
0826:             * @return Returns the protocol.
0827:             */
0828:            public String getProtocol() {
0829:                return protocol;
0830:            }
0831:
0832:            /**
0833:             * @return Returns the secure.
0834:             */
0835:            public boolean isSecure() {
0836:                return secure;
0837:            }
0838:
0839:            /**
0840:             * @param secure The secure to set.
0841:             */
0842:            public void setSecure(boolean secure) {
0843:                this .secure = secure;
0844:            }
0845:
0846:            /**
0847:             * @return Returns the uRIEncoding.
0848:             */
0849:            public String getURIEncoding() {
0850:                return URIEncoding;
0851:            }
0852:
0853:            /**
0854:             * @param encoding The uRIEncoding to set.
0855:             */
0856:            public void setURIEncoding(String encoding) {
0857:                URIEncoding = encoding;
0858:            }
0859:
0860:            /**
0861:             * @return Returns the useBodyEncodingForURI.
0862:             */
0863:            public boolean isUseBodyEncodingForURI() {
0864:                return useBodyEncodingForURI;
0865:            }
0866:
0867:            /**
0868:             * @param useBodyEncodingForURI The useBodyEncodingForURI to set.
0869:             */
0870:            public void setUseBodyEncodingForURI(boolean useBodyEncodingForURI) {
0871:                this .useBodyEncodingForURI = useBodyEncodingForURI;
0872:            }
0873:
0874:            /**
0875:             * @return Returns the xpoweredBy.
0876:             */
0877:            public boolean isXpoweredBy() {
0878:                return xpoweredBy;
0879:            }
0880:
0881:            /**
0882:             * @param xpoweredBy The xpoweredBy to set.
0883:             */
0884:            public void setXpoweredBy(boolean xpoweredBy) {
0885:                this .xpoweredBy = xpoweredBy;
0886:            }
0887:
0888:            /**
0889:             * @return Returns the compression.
0890:             */
0891:            public String getCompression() {
0892:                return compression;
0893:            }
0894:
0895:            /**
0896:             * @param compression The compression to set.
0897:             */
0898:            public void setCompression(String compression) {
0899:                this .compression = compression;
0900:            }
0901:
0902:            /**
0903:             * @return Returns the connectionLingerText.
0904:             */
0905:            public String getConnectionLingerText() {
0906:                return connectionLingerText;
0907:            }
0908:
0909:            /**
0910:             * @param connectionLingerText The connectionLingerText to set.
0911:             */
0912:            public void setConnectionLingerText(String connectionLingerText) {
0913:                this .connectionLingerText = connectionLingerText;
0914:            }
0915:
0916:            /**
0917:             * @return Returns the connectionUploadTimeoutText.
0918:             */
0919:            public String getConnectionUploadTimeoutText() {
0920:                return connectionUploadTimeoutText;
0921:            }
0922:
0923:            /**
0924:             * @param connectionUploadTimeoutText The connectionUploadTimeoutText to set.
0925:             */
0926:            public void setConnectionUploadTimeoutText(
0927:                    String connectionUploadTimeoutText) {
0928:                this .connectionUploadTimeoutText = connectionUploadTimeoutText;
0929:            }
0930:
0931:            /**
0932:             * @return Returns the disableUploadTimeout.
0933:             */
0934:            public boolean isDisableUploadTimeout() {
0935:                return disableUploadTimeout;
0936:            }
0937:
0938:            /**
0939:             * @param disableUploadTimeout The disableUploadTimeout to set.
0940:             */
0941:            public void setDisableUploadTimeout(boolean disableUploadTimeout) {
0942:                this .disableUploadTimeout = disableUploadTimeout;
0943:            }
0944:
0945:            /**
0946:             * @return Returns the maxHttpHeaderSize.
0947:             */
0948:            public String getMaxHttpHeaderSizeText() {
0949:                return maxHttpHeaderSizeText;
0950:            }
0951:
0952:            /**
0953:             * @param maxHttpHeaderSize The maxHttpHeaderSize to set.
0954:             */
0955:            public void setMaxHttpHeaderSizeText(String maxHttpHeaderSize) {
0956:                this .maxHttpHeaderSizeText = maxHttpHeaderSize;
0957:            }
0958:
0959:            /**
0960:             * @return Returns the maxKeepAliveRequests.
0961:             */
0962:            public String getMaxKeepAliveRequestsText() {
0963:                return maxKeepAliveRequestsText;
0964:            }
0965:
0966:            /**
0967:             * @param maxKeepAliveRequests The maxKeepAliveRequests to set.
0968:             */
0969:            public void setMaxKeepAliveRequestsText(String maxKeepAliveRequests) {
0970:                this .maxKeepAliveRequestsText = maxKeepAliveRequests;
0971:            }
0972:
0973:            /**
0974:             * @return Returns the strategy.
0975:             */
0976:            public String getStrategy() {
0977:                return strategy;
0978:            }
0979:
0980:            /**
0981:             * @param strategy The strategy to set.
0982:             */
0983:            public void setStrategy(String strategy) {
0984:                this .strategy = strategy;
0985:            }
0986:
0987:            /**
0988:             * @return Returns the threadPriority.
0989:             */
0990:            public String getThreadPriorityText() {
0991:                return threadPriorityText;
0992:            }
0993:
0994:            /**
0995:             * @param threadPriority The threadPriority to set.
0996:             */
0997:            public void setThreadPriorityText(String threadPriority) {
0998:                this .threadPriorityText = threadPriority;
0999:            }
1000:
1001:            /**
1002:             * @return Returns the tomcatAuthentication.
1003:             */
1004:            public boolean isTomcatAuthentication() {
1005:                return tomcatAuthentication;
1006:            }
1007:
1008:            /**
1009:             * @param tomcatAuthentication The tomcatAuthentication to set.
1010:             */
1011:            public void setTomcatAuthentication(boolean tomcatAuthentication) {
1012:                this .tomcatAuthentication = tomcatAuthentication;
1013:            }
1014:
1015:            /**
1016:             * @return Returns the algorithm.
1017:             */
1018:            public String getAlgorithm() {
1019:                return algorithm;
1020:            }
1021:
1022:            /**
1023:             * @param algorithm The algorithm to set.
1024:             */
1025:            public void setAlgorithm(String algorithm) {
1026:                this .algorithm = algorithm;
1027:            }
1028:
1029:            /**
1030:             * @return Returns the keystoreType.
1031:             */
1032:            public String getKeystoreType() {
1033:                return keystoreType;
1034:            }
1035:
1036:            /**
1037:             * @param keystoreType The keystoreType to set.
1038:             */
1039:            public void setKeystoreType(String keystoreType) {
1040:                this .keystoreType = keystoreType;
1041:            }
1042:
1043:            /**
1044:             * @return Returns the sslProtocol.
1045:             */
1046:            public String getSslProtocol() {
1047:                return sslProtocol;
1048:            }
1049:
1050:            /**
1051:             * @param sslProtocol The sslProtocol to set.
1052:             */
1053:            public void setSslProtocol(String sslProtocol) {
1054:                this .sslProtocol = sslProtocol;
1055:            }
1056:
1057:            /**
1058:             * @return Returns the ciphers.
1059:             */
1060:            public String getCiphers() {
1061:                return ciphers;
1062:            }
1063:
1064:            /**
1065:             * @param ciphers The ciphers to set.
1066:             */
1067:            public void setCiphers(String ciphers) {
1068:                this .ciphers = ciphers;
1069:            }
1070:
1071:            /**
1072:             * @param protocol The protocol to set.
1073:             */
1074:            public void setProtocol(String protocol) {
1075:                this .protocol = protocol;
1076:            }
1077:
1078:            /**
1079:             * @return Returns the tcpNoDelay.
1080:             */
1081:            public boolean isTcpNoDelay() {
1082:                return tcpNoDelay;
1083:            }
1084:
1085:            /**
1086:             * @param tcpNoDelay The tcpNoDelay to set.
1087:             */
1088:            public void setTcpNoDelay(boolean tcpNoDelay) {
1089:                this .tcpNoDelay = tcpNoDelay;
1090:            }
1091:
1092:            /**
1093:             * @return Returns the outputBufferSizeText.
1094:             */
1095:            public String getOutputBufferSizeText() {
1096:                return outputBufferSizeText;
1097:            }
1098:
1099:            /**
1100:             * @param outputBufferSizeText The outputBufferSizeText to set.
1101:             */
1102:            public void setOutputBufferSizeText(String outputBufferSizeText) {
1103:                this.outputBufferSizeText = outputBufferSizeText;
1104:            }
1105:
1106:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.