|
HDIV API 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hdiv.interceptor.EditableValidatorInterceptor
public class EditableValidatorInterceptor
Interceptor to visualize the errors produced in the editable fields detected by HDIV.
Interceptor,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
EDITABLE_PARAMETER_ERROR
The request attributes key under HDIV should store errors produced in the editable fields. |
| Constructor Summary | |
|---|---|
EditableValidatorInterceptor()
|
|
| Method Summary | |
|---|---|
java.lang.String |
createMessageError(java.lang.String[] values)
It creates the message error from the values values. |
void |
destroy()
Called to let an interceptor clean up any resources it has allocated. |
void |
getEditableParametersErrors(javax.servlet.http.HttpServletRequest request,
java.lang.Object action,
java.util.Locale locale)
Generate the errors detected by HDIV during the validation process of the editable parameters. |
void |
init()
Called after an interceptor is created, but before any requests are processed using intercept , giving the Interceptor a chance to initialize any needed resources. |
java.lang.String |
intercept(com.opensymphony.xwork2.ActionInvocation invocation)
Allows the Interceptor to do some processing on the request before and/or after the rest of the processing of the request by the ActionInvocation or to short-circuit the processing and just return a String return code. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EDITABLE_PARAMETER_ERROR
| Constructor Detail |
|---|
public EditableValidatorInterceptor()
| Method Detail |
|---|
public void init()
init in interface com.opensymphony.xwork2.interceptor.Interceptor
public java.lang.String intercept(com.opensymphony.xwork2.ActionInvocation invocation)
throws java.lang.Exception
intercept in interface com.opensymphony.xwork2.interceptor.Interceptorjava.lang.Exceptionpublic void destroy()
destroy in interface com.opensymphony.xwork2.interceptor.Interceptor
public void getEditableParametersErrors(javax.servlet.http.HttpServletRequest request,
java.lang.Object action,
java.util.Locale locale)
request - The servlet request we are processingaction - action objectlocale - public java.lang.String createMessageError(java.lang.String[] values)
values.
values - values with not allowed characters
|
HDIV 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||