|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ideo.sweetdev.presentation.service.error.ErrorHelperWeb2
The class ErrorHelperWeb2 class allows to use the Error service of SweetDev framework.
![]() |
![]() |
![]() |
![]() |
| Field Summary | |
protected static java.lang.String |
CLASS_NAME
class name. |
| Method Summary | |
static IErrorService2 |
getErrorService2()
This method returns the IErrorService2 unique instance. |
static boolean |
isEmpty(javax.servlet.http.HttpServletRequest _request)
This method checks if an error is already stored. |
static boolean |
isEmpty(javax.servlet.http.HttpSession _session)
This method checks if an error is already stored. |
static void |
saveError(javax.servlet.http.HttpServletRequest _request,
java.lang.Throwable _throwable,
java.lang.String _className)
This method records the error messages and displays them. |
static void |
saveError(javax.servlet.http.HttpSession _session,
java.lang.Throwable _throwable,
java.lang.String _className)
This method records the error messages and displays them. |
static void |
saveErrors(javax.servlet.http.HttpServletRequest _request,
java.util.Collection _errors,
java.lang.String _className)
This method records the list of error messages and displays them. |
static void |
saveErrors(javax.servlet.http.HttpSession _session,
java.util.Collection _errors,
java.lang.String _className)
This method records the list of error messages and displays them. |
static void |
saveMessage(java.lang.String _key,
java.lang.Object[] _parameters,
java.lang.String _type,
java.lang.Integer _indent,
javax.servlet.http.HttpServletRequest _request)
This method records the error messages and displays them. |
static void |
saveMessage(java.lang.String _key,
java.lang.Object[] _parameters,
java.lang.String _type,
java.lang.Integer _indent,
javax.servlet.http.HttpSession _session)
This method records the error messages and displays them. |
static void |
saveMessage(java.lang.Throwable _throwable,
java.lang.String _className,
javax.servlet.http.HttpServletRequest _request,
java.lang.Integer _indent)
This method records the error messages and displays them. |
static void |
saveMessage(java.lang.Throwable _throwable,
java.lang.String _className,
javax.servlet.http.HttpSession _session,
java.lang.Integer _indent)
This method records the error messages and displays them. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String CLASS_NAME
| Method Detail |
public static boolean isEmpty(javax.servlet.http.HttpServletRequest _request)
_request - the current request.
public static boolean isEmpty(javax.servlet.http.HttpSession _session)
_session - the current session.
public static IErrorService2 getErrorService2()
public static void saveError(javax.servlet.http.HttpServletRequest _request,
java.lang.Throwable _throwable,
java.lang.String _className)
_request - the current request._throwable - the exception where the error comes from._className - name of the class that raised the error.
public static void saveError(javax.servlet.http.HttpSession _session,
java.lang.Throwable _throwable,
java.lang.String _className)
_session - the current session._throwable - the exception where the error comes from._className - name of the class that raised the error.
public static void saveErrors(javax.servlet.http.HttpServletRequest _request,
java.util.Collection _errors,
java.lang.String _className)
_request - the current request._errors - the collection of ActionMessage to save._className - name of the class that raised the list of errors.
public static void saveErrors(javax.servlet.http.HttpSession _session,
java.util.Collection _errors,
java.lang.String _className)
_session - the current session._errors - the collection of ActionMessage to save._className - name of the class that raised the list of errors.
public static void saveMessage(java.lang.Throwable _throwable,
java.lang.String _className,
javax.servlet.http.HttpServletRequest _request,
java.lang.Integer _indent)
_throwable - the exception where the error comes from._className - name of the class that raised the error._request - the request._indent - indentation level.
public static void saveMessage(java.lang.Throwable _throwable,
java.lang.String _className,
javax.servlet.http.HttpSession _session,
java.lang.Integer _indent)
_throwable - the exception where the error comes from._className - name of the class that raised the error._session - the session._indent - indentation level.
public static void saveMessage(java.lang.String _key,
java.lang.Object[] _parameters,
java.lang.String _type,
java.lang.Integer _indent,
javax.servlet.http.HttpServletRequest _request)
_key - key of the message to display._parameters - message parameters (maybe is null)._type - message type : ActionMessage.ERROR, ActionMessage.MESSAGE, ActionMessage.WARNING._indent - indentation level : ActionMessage.LEVEL_0, ActionMessage.LEVEL_1, ActionMessage.LEVEL_2._request - the current session.
public static void saveMessage(java.lang.String _key,
java.lang.Object[] _parameters,
java.lang.String _type,
java.lang.Integer _indent,
javax.servlet.http.HttpSession _session)
_key - key of the message to display._parameters - message parameters (maybe is null)._type - message type : ActionMessage.ERROR, ActionMessage.MESSAGE, ActionMessage.WARNING._indent - indentation level : ActionMessage.LEVEL_0, ActionMessage.LEVEL_1, ActionMessage.LEVEL_2._session - the current session.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||