|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.webui.util.JSPManager
public class JSPManager
Methods for displaying UI pages to the user.
| Constructor Summary | |
|---|---|
JSPManager()
|
|
| Method Summary | |
|---|---|
static void |
showAuthorizeError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
AuthorizeException exception)
Display an authorization failed error message. |
static void |
showIntegrityError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Display an integrity error message. |
static void |
showInternalError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Display an internal server error message - for example, a database error |
static void |
showInvalidIDError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String badID,
int type)
Display an "invalid ID" error message. |
static void |
showJSP(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String jsp)
Forwards control of the request to the display JSP passed in. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSPManager()
| Method Detail |
|---|
public static void showJSP(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String jsp)
throws javax.servlet.ServletException,
java.io.IOException
request - current servlet request objectresponse - current servlet response objectjsp - the JSP page to display, relative to the webapps directory
javax.servlet.ServletException
java.io.IOException
public static void showInternalError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
request - the HTTP requestresponse - the HTTP response
javax.servlet.ServletException
java.io.IOException
public static void showIntegrityError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
request - the HTTP requestresponse - the HTTP response
javax.servlet.ServletException
java.io.IOException
public static void showAuthorizeError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
AuthorizeException exception)
throws javax.servlet.ServletException,
java.io.IOException
request - the HTTP requestresponse - the HTTP responseexception - the AuthorizeException leading to this error, passing in
null will display default error message
javax.servlet.ServletException
java.io.IOException
public static void showInvalidIDError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String badID,
int type)
throws javax.servlet.ServletException,
java.io.IOException
request - the HTTP requestresponse - the HTTP responsebadID - the bad identifier, or nulltype - the type of object, from
org.dspace.core.Constants, or -1
for a default message
javax.servlet.ServletException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||