org.objectweb.jonas.webapp.jonasadmin.catalina
Class ConnectorForm

java.lang.Object
  extended byorg.apache.struts.action.ActionForm
      extended byorg.objectweb.jonas.webapp.jonasadmin.catalina.ConnectorForm
All Implemented Interfaces:
java.io.Serializable

public final class ConnectorForm
extends org.apache.struts.action.ActionForm

Form bean for the connector page.

Author:
Michel-Ange ANTON, Adriana Danes - update to Tomact 5.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
ConnectorForm()
           
 
Method Summary
 java.lang.String getAcceptCountText()
          Return the acceptCountText.
 java.lang.String getAction()
          Return the administrative action represented by this form.
 java.lang.String getAddress()
          Return the address.
 java.util.List getBooleanVals()
          Return the booleanVals.
 java.lang.String getBufferSizeText()
          Return the bufferSizeText.
 java.lang.String getConnectorName()
           
 java.lang.String getConnectorType()
          Return the Connector type.
 java.util.List getConnectorTypeVals()
          Return the connectorTypeVals.
 java.lang.String getConnTimeOutText()
          Return the connTimeOutText.
 java.lang.String getDebugLvl()
          Return the Debug Level Text.
 java.util.List getDebugLvlVals()
          Return the debugVals.
 java.lang.String getKeyStoreFileName()
           
 java.lang.String getKeyStorePassword()
           
 java.lang.String getLabel()
           
 java.lang.String getMaxProcessorsText()
           
 java.lang.String getMaxSpareThreadsText()
          Return the max SpareThreads Text.
 java.lang.String getMaxThreadsText()
          Return the max SpareThreads Text.
 java.lang.String getMinProcessorsText()
           
 java.lang.String getMinSpareThreadsText()
          Return the min SpareThreads Text.
 java.lang.String getObjectName()
          Return the object name of the Connector this bean refers to.
 java.lang.String getPortText()
          Return the port text.
 java.lang.String getProxyName()
          Return the proxy Name.
 java.lang.String getProxyPortText()
          Return the proxy Port NumberText.
 java.lang.String getRedirectPortText()
          Return the port.
 java.lang.String getScheme()
          Return the Scheme.
 java.lang.String getServiceName()
          Return the object name of the service this connector belongs to.
 boolean isClientAuthentication()
          Return the true/false value of client authentication.
 boolean isEnableLookups()
          Return the Enable lookup Text.
 boolean isSave()
           
 void numberCheck(org.apache.struts.action.ActionErrors pErrors, java.lang.String field, java.lang.String numText, boolean rangeCheck, int min, int max)
          Helper method to check that it is a required number and is a valid integer within the given range.
 void setAcceptCountText(java.lang.String acceptCountText)
          Set the acceptCountText.
 void setAction(java.lang.String action)
          Set the administrative action represented by this form.
 void setAddress(java.lang.String address)
          Set the address.
 void setBooleanVals(java.util.List booleanVals)
          Set the debugVals.
 void setBufferSizeText(java.lang.String bufferSizeText)
          Set the bufferSizeText.
 void setClientAuthentication(boolean clientAuthentication)
          Set whether client authentication is supported or not.
 void setConnectorName(java.lang.String connectorName)
           
 void setConnectorType(java.lang.String connectorType)
          Set the Connector type.
 void setConnectorTypeVals(java.util.List connectorTypeVals)
          Set the connectorTypeVals.
 void setConnTimeOutText(java.lang.String connTimeOutText)
          Set the connTimeOutText.
 void setDebugLvl(java.lang.String debugLvl)
          Set the Debug Level Text.
 void setDebugLvlVals(java.util.List debugLvlVals)
          Set the debugVals.
 void setEnableLookups(boolean enableLookups)
          Set the Enable Lookup Text.
 void setKeyStoreFileName(java.lang.String keyStoreFileName)
           
 void setKeyStorePassword(java.lang.String keyStorePassword)
           
 void setMaxProcessorsText(java.lang.String maxProcessorsText)
           
 void setMaxSpareThreadsText(java.lang.String maxSpareThreadsText)
          Set the Max SpareThreads Text.
 void setMaxThreadsText(java.lang.String maxThreadsText)
          Set the Max SpareThreads Text.
 void setMinProcessorsText(java.lang.String minProcessorsText)
           
 void setMinSpareThreadsText(java.lang.String minSpareThreadsText)
          Set the minSpareThreads Text.
 void setObjectName(java.lang.String objectName)
          Set the object name of the Connector this bean refers to.
 void setPortText(java.lang.String portText)
          Set the port Text.
 void setProxyName(java.lang.String proxyName)
          Set the proxy Name.
 void setProxyPortText(java.lang.String proxyPortText)
          Set the proxy Port NumberText.
 void setRedirectPortText(java.lang.String redirectPortText)
          Set the Redirect Port Text.
 void setSave(boolean save)
           
 void setScheme(java.lang.String scheme)
          Set the Scheme.
 void setServiceName(java.lang.String serviceName)
          Set the object name of the Service this connector belongs to.
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Validate the properties that have been set from this HTTP request, and return an ActionErrors object that encapsulates any validation errors that have been found.
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorForm

public ConnectorForm()
Method Detail

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest request)
Validate the properties that have been set from this HTTP request, and return an ActionErrors object that encapsulates any validation errors that have been found. If no errors are found, return null or an ActionErrors object with no recorded error messages.

Parameters:
mapping - The mapping used to select this instance
request - The servlet request we are processing
Returns:
the ActionErrors

numberCheck

public void numberCheck(org.apache.struts.action.ActionErrors pErrors,
                        java.lang.String field,
                        java.lang.String numText,
                        boolean rangeCheck,
                        int min,
                        int max)
Helper method to check that it is a required number and is a valid integer within the given range. (min, max).

Parameters:
field - The field name in the form for which this error occured.
numText - The string representation of the number.
rangeCheck - Boolean value set to true of reange check should be performed.
min - The lower limit of the range
max - The upper limit of the range
pErrors - the ActionErrors

getAction

public java.lang.String getAction()
Return the administrative action represented by this form.

Returns:
the administrative action

setAction

public void setAction(java.lang.String action)
Set the administrative action represented by this form.

Parameters:
action - the action to set

getObjectName

public java.lang.String getObjectName()
Return the object name of the Connector this bean refers to.

Returns:
the object name of the Connector MBean

setObjectName

public void setObjectName(java.lang.String objectName)
Set the object name of the Connector this bean refers to.

Parameters:
objectName - object name of the Connector MBean

getServiceName

public java.lang.String getServiceName()
Return the object name of the service this connector belongs to.

Returns:
the object name of the service this connector belongs to

setServiceName

public void setServiceName(java.lang.String serviceName)
Set the object name of the Service this connector belongs to.

Parameters:
serviceName - the object name of the service this connector belongs to

getScheme

public java.lang.String getScheme()
Return the Scheme.

Returns:
the scheme

setScheme

public void setScheme(java.lang.String scheme)
Set the Scheme.

Parameters:
scheme - the scheme to set

getConnectorType

public java.lang.String getConnectorType()
Return the Connector type.

Returns:
the Connector type

setConnectorType

public void setConnectorType(java.lang.String connectorType)
Set the Connector type.

Parameters:
connectorType - the Connector type to set

getAcceptCountText

public java.lang.String getAcceptCountText()
Return the acceptCountText.

Returns:
the acceptCount

setAcceptCountText

public void setAcceptCountText(java.lang.String acceptCountText)
Set the acceptCountText.

Parameters:
acceptCountText - the acceptCount text

getConnTimeOutText

public java.lang.String getConnTimeOutText()
Return the connTimeOutText.

Returns:
the connTimeOut

setConnTimeOutText

public void setConnTimeOutText(java.lang.String connTimeOutText)
Set the connTimeOutText.

Parameters:
connTimeOutText - the connTimeOut text

getBufferSizeText

public java.lang.String getBufferSizeText()
Return the bufferSizeText.

Returns:
the bufferSize

setBufferSizeText

public void setBufferSizeText(java.lang.String bufferSizeText)
Set the bufferSizeText.

Parameters:
bufferSizeText - the bufferSize to set

getAddress

public java.lang.String getAddress()
Return the address.

Returns:
the address

setAddress

public void setAddress(java.lang.String address)
Set the address.

Parameters:
address - the address to set

getProxyName

public java.lang.String getProxyName()
Return the proxy Name.

Returns:
the proxy name

setProxyName

public void setProxyName(java.lang.String proxyName)
Set the proxy Name.

Parameters:
proxyName - the proxy name to set

getProxyPortText

public java.lang.String getProxyPortText()
Return the proxy Port NumberText.

Returns:
the proxy port number

setProxyPortText

public void setProxyPortText(java.lang.String proxyPortText)
Set the proxy Port NumberText.

Parameters:
proxyPortText - the proxy port number to set

isClientAuthentication

public boolean isClientAuthentication()
Return the true/false value of client authentication.

Returns:
the value of client authentication

setClientAuthentication

public void setClientAuthentication(boolean clientAuthentication)
Set whether client authentication is supported or not.

Parameters:
clientAuthentication - the client authentication to set or not

getKeyStoreFileName

public java.lang.String getKeyStoreFileName()
Returns:
the keyStore file name

setKeyStoreFileName

public void setKeyStoreFileName(java.lang.String keyStoreFileName)
Parameters:
keyStoreFileName - the keyStore file name to set

getKeyStorePassword

public java.lang.String getKeyStorePassword()
Returns:
the keyStore password

setKeyStorePassword

public void setKeyStorePassword(java.lang.String keyStorePassword)
Parameters:
keyStorePassword - the keyStore password to set

getDebugLvlVals

public java.util.List getDebugLvlVals()
Return the debugVals.

Returns:
the debug level values

setDebugLvlVals

public void setDebugLvlVals(java.util.List debugLvlVals)
Set the debugVals.

Parameters:
debugLvlVals - the debug level values

getDebugLvl

public java.lang.String getDebugLvl()
Return the Debug Level Text.

Returns:
the debug level text

setDebugLvl

public void setDebugLvl(java.lang.String debugLvl)
Set the Debug Level Text.

Parameters:
debugLvl - the debug level text to set

isEnableLookups

public boolean isEnableLookups()
Return the Enable lookup Text.

Returns:
true if loookups enabled

setEnableLookups

public void setEnableLookups(boolean enableLookups)
Set the Enable Lookup Text.

Parameters:
enableLookups - Enable Lookup Text

getBooleanVals

public java.util.List getBooleanVals()
Return the booleanVals.


setBooleanVals

public void setBooleanVals(java.util.List booleanVals)
Set the debugVals.


getMinSpareThreadsText

public java.lang.String getMinSpareThreadsText()
Return the min SpareThreads Text.

Returns:
minSpareThreads value

setMinSpareThreadsText

public void setMinSpareThreadsText(java.lang.String minSpareThreadsText)
Set the minSpareThreads Text.

Parameters:
minSpareThreadsText - minSpareThreads value to set

getMaxSpareThreadsText

public java.lang.String getMaxSpareThreadsText()
Return the max SpareThreads Text.

Returns:
maxSpareThreads value

setMaxSpareThreadsText

public void setMaxSpareThreadsText(java.lang.String maxSpareThreadsText)
Set the Max SpareThreads Text.

Parameters:
maxSpareThreadsText - maxSpareThreads value to set

getMaxThreadsText

public java.lang.String getMaxThreadsText()
Return the max SpareThreads Text.

Returns:
maxThreads value

setMaxThreadsText

public void setMaxThreadsText(java.lang.String maxThreadsText)
Set the Max SpareThreads Text.

Parameters:
maxThreadsText - maxSpareThreads value to set

getPortText

public java.lang.String getPortText()
Return the port text.

Returns:
the port number

setPortText

public void setPortText(java.lang.String portText)
Set the port Text.

Parameters:
portText - port to set

getRedirectPortText

public java.lang.String getRedirectPortText()
Return the port.

Returns:
the redirect port number

setRedirectPortText

public void setRedirectPortText(java.lang.String redirectPortText)
Set the Redirect Port Text.

Parameters:
redirectPortText - the redirect port to set

getConnectorName

public java.lang.String getConnectorName()
Returns:
the connector name

setConnectorName

public void setConnectorName(java.lang.String connectorName)
Parameters:
connectorName - connector name to set

getConnectorTypeVals

public java.util.List getConnectorTypeVals()
Return the connectorTypeVals.

Returns:
the connector types

setConnectorTypeVals

public void setConnectorTypeVals(java.util.List connectorTypeVals)
Set the connectorTypeVals.

Parameters:
connectorTypeVals - the connector types

getLabel

public java.lang.String getLabel()
Returns:
the labels

isSave

public boolean isSave()
Returns:
true if save action

setSave

public void setSave(boolean save)
Parameters:
save - set the save action

getMinProcessorsText

public java.lang.String getMinProcessorsText()
Returns:
the minProcessorsText.

setMinProcessorsText

public void setMinProcessorsText(java.lang.String minProcessorsText)
Parameters:
minProcessorsText - the minProcessorsText to set.

getMaxProcessorsText

public java.lang.String getMaxProcessorsText()
Returns:
the maxProcessorsText.

setMaxProcessorsText

public void setMaxProcessorsText(java.lang.String maxProcessorsText)
Parameters:
maxProcessorsText - the maxProcessorsText to set.