public class ContextUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
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) |
static void |
completeContext(javax.servlet.http.HttpServletRequest request)
Check if a context exists for this request, if so complete the context.
|
static org.dspace.core.Context |
obtainContext(javax.servlet.http.HttpServletRequest request)
Obtain a new context object.
|
public static final String DSPACE_CONTEXT
public static org.dspace.core.Context obtainContext(javax.servlet.http.HttpServletRequest request)
throws SQLException
request - the cocoon or servlet request objectSQLExceptionpublic static void completeContext(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
request - The request objectjavax.servlet.ServletExceptionpublic static void abortContext(javax.servlet.http.HttpServletRequest request)
Copyright © 2016 DuraSpace. All rights reserved.