org.objectweb.jonas.webapp.jonasadmin.service.jtm
Class JtmServiceForm
java.lang.Object
org.apache.struts.action.ActionForm
org.objectweb.jonas.webapp.jonasadmin.service.jtm.JtmServiceForm
- All Implemented Interfaces:
- java.io.Serializable
public final class JtmServiceForm
- extends org.apache.struts.action.ActionForm
Form used to present the Transaction Manager properties
- Author:
- Adriana Danes
- See Also:
- Serialized Form
Fields inherited from class org.apache.struts.action.ActionForm |
multipartRequestHandler, servlet |
Method Summary |
java.lang.String |
getAction()
|
java.lang.String |
getJtmHost()
|
java.lang.String |
getJtmLocation()
|
java.lang.String |
getJtmPort()
|
java.lang.String |
getTimeOutText()
|
void |
numberCheck(org.apache.struts.action.ActionErrors p_Errors,
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 |
reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Reset all properties to their default values. |
void |
setAction(java.lang.String action)
|
void |
setJtmHost(java.lang.String jtmHost)
|
void |
setJtmLocation(java.lang.String jtmLocation)
|
void |
setJtmPort(java.lang.String jtmPort)
|
void |
setTimeOutText(java.lang.String timeOutText)
|
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, setMultipartRequestHandler, setServlet, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JtmServiceForm
public JtmServiceForm()
getTimeOutText
public java.lang.String getTimeOutText()
setTimeOutText
public void setTimeOutText(java.lang.String timeOutText)
getJtmHost
public java.lang.String getJtmHost()
setJtmHost
public void setJtmHost(java.lang.String jtmHost)
getJtmLocation
public java.lang.String getJtmLocation()
setJtmLocation
public void setJtmLocation(java.lang.String jtmLocation)
getJtmPort
public java.lang.String getJtmPort()
setJtmPort
public void setJtmPort(java.lang.String jtmPort)
getAction
public java.lang.String getAction()
setAction
public void setAction(java.lang.String action)
reset
public void reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
- Reset all properties to their default values.
- Overrides:
reset
in class org.apache.struts.action.ActionForm
- Parameters:
mapping
- The mapping used to select this instancerequest
- The servlet request we are processing
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.
- Overrides:
validate
in class org.apache.struts.action.ActionForm
- Parameters:
mapping
- The mapping used to select this instancerequest
- The servlet request we are processing
numberCheck
public void numberCheck(org.apache.struts.action.ActionErrors p_Errors,
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 rangemax
- The upper limit of the range