public class ContextUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static AuthenticationService |
authenticationService |
static String |
DSPACE_CONTEXT
Where the context is stored on an HTTP Request object
|
| Constructor and Description |
|---|
ContextUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
abortContext(javax.servlet.http.HttpServletRequest request)
Abort the context of a request.
|
static void |
completeContext(javax.servlet.http.HttpServletRequest request)
Check if a context exists for this request, if so complete the context.
|
static boolean |
isContextAvailable(Map objectModel)
Inspection method to check if a DSpace context has been created for this request.
|
static Context |
obtainContext(javax.servlet.http.HttpServletRequest request)
Obtain a new context object.
|
static Context |
obtainContext(Map objectModel)
Obtain a new context object.
|
public static final String DSPACE_CONTEXT
protected static final AuthenticationService authenticationService
public static Context obtainContext(Map objectModel) throws SQLException
objectModel - the cocoon object model.SQLException - passed through.public static boolean isContextAvailable(Map objectModel)
objectModel - The cocoon ObjectModelpublic static Context obtainContext(javax.servlet.http.HttpServletRequest request) throws SQLException
request - the Cocoon or Servlet request objectSQLException - passed through.public static void completeContext(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
request - The request objectjavax.servlet.ServletException - on failure.public static void abortContext(javax.servlet.http.HttpServletRequest request)
request - the request to be aborted.Copyright © 2016 DuraSpace. All rights reserved.