net.jot.web.views
Class JOTErrorView
java.lang.Object
net.jot.web.ctrl.JOTController
net.jot.web.view.JOTView
net.jot.web.views.JOTErrorView
public class JOTErrorView
- extends JOTView
Standard error page View, leave as-is to use the bultin template, or cuse with yor own template.
- Author:
- thibautc
|
Method Summary |
java.lang.String |
htmlEncode(java.lang.Exception e)
|
java.lang.String |
htmlEncode(java.lang.StackTraceElement e)
|
java.lang.String |
htmlEncode(java.lang.String s)
|
java.lang.String |
htmlEncode(java.lang.Throwable t)
|
void |
prepareViewData()
To be implemented by subclass
Loads the View data by calling add* etc ... |
boolean |
validatePermissions()
Implements this to check wether the user is allowed to use your controller. |
| Methods inherited from class net.jot.web.view.JOTView |
addBlock, addForm, addTag, addVariable, getBlocks, getBuiltinTemplate, getForms, getTags, getVariables, isProvideRequestParameters, process, setBuiltinTemplate, setProvideRequestParameters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXCEPTION_ATTRIB
public static final java.lang.String EXCEPTION_ATTRIB
- See Also:
- Constant Field Values
JOTErrorView
public JOTErrorView()
prepareViewData
public void prepareViewData()
throws java.lang.Exception
- Description copied from class:
JOTView
- To be implemented by subclass
Loads the View data by calling add* etc ...
- Specified by:
prepareViewData in class JOTView
- Throws:
java.lang.Exception
htmlEncode
public java.lang.String htmlEncode(java.lang.String s)
htmlEncode
public java.lang.String htmlEncode(java.lang.Throwable t)
htmlEncode
public java.lang.String htmlEncode(java.lang.Exception e)
htmlEncode
public java.lang.String htmlEncode(java.lang.StackTraceElement e)
validatePermissions
public boolean validatePermissions()
- Description copied from class:
JOTController
- Implements this to check wether the user is allowed to use your controller.
This is the simplest way to secure the application.
If this returns false, the controller won't be ran and a "RESULT_FORBIDDEN" will be sent.
The user can then be sent to a 'forbidden' page.
- Specified by:
validatePermissions in class JOTController
- Returns: