Package ee.jakarta.tck.pages.common.util
Class MethodValidatorBean
java.lang.Object
ee.jakarta.tck.pages.common.util.MethodValidatorBean
Simple bean to validate a set of values passed in via the PageContext against
a user configured set of values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.jsp.PageContext
Gets the PageContext for this bean.Gets the methods used to validated against the methods added to the PageContext.getName()
Obtains a page scoped List object from the PageContext that obtains a list of methods that have been called by a particular tag handler.void
setContext
(jakarta.servlet.jsp.PageContext context) Sets this bean's PageContext.void
setMethods
(String methods) Sets the methods used to validated against the methods added to the PageContext.void
-
Constructor Details
-
MethodValidatorBean
public MethodValidatorBean()Default constructor.
-
-
Method Details
-
getMethods
Gets the methods used to validated against the methods added to the PageContext.- Returns:
- - a comma separated list of methods
-
setMethods
Sets the methods used to validated against the methods added to the PageContext.- Parameters:
methods
- - the methods to validate
-
getContext
public jakarta.servlet.jsp.PageContext getContext()Gets the PageContext for this bean.- Returns:
- this bean's PageContext
-
setContext
public void setContext(jakarta.servlet.jsp.PageContext context) Sets this bean's PageContext.- Parameters:
context
- - the PageContext for this bean
-
getName
-
setName
-
getResult
Obtains a page scoped List object from the PageContext that obtains a list of methods that have been called by a particular tag handler. This List will be compared with the methods passed to this handler via the methods attribute.- Returns:
- a String representing the result of the check.
- Throws:
jakarta.servlet.jsp.JspException
-