public class GOMWebUtil extends Object
Constructor and Description |
---|
GOMWebUtil() |
Modifier and Type | Method and Description |
---|---|
protected static BigdataRDFContext |
getBigdataRDFContext(javax.servlet.ServletContext servletContext) |
static ObjectManager |
getObjectManager(javax.servlet.http.HttpServletRequest request)
|
protected static <T> T |
getRequiredServletContextAttribute(javax.servlet.ServletContext servletContext,
String name) |
static ObjectManager |
newObjectManager(javax.servlet.http.HttpServletRequest request,
long timestamp)
Return an
ObjectManager instance that is scoped to the
request . |
public static ObjectManager getObjectManager(javax.servlet.http.HttpServletRequest request) throws Exception
ITx.UNISOLATED
ObjectManager
instance that is
scoped to the request
. The same ObjectManager
instance will be returned each time this method is invoked for the same
request
. A distinct ObjectManager
instance is
returned for each distinct request
.request
- The request.ObjectManager
.Exception
public static ObjectManager newObjectManager(javax.servlet.http.HttpServletRequest request, long timestamp) throws org.openrdf.repository.RepositoryException
ObjectManager
instance that is scoped to the
request
. The same ObjectManager
instance will be
returned each time this method is invoked for the same
request
. A distinct ObjectManager
instance is
returned for each distinct request
.request
- The request.timestamp
- The timestamp of the view.ObjectManager
.Exception
org.openrdf.repository.RepositoryException
protected static final BigdataRDFContext getBigdataRDFContext(javax.servlet.ServletContext servletContext)
protected static <T> T getRequiredServletContextAttribute(javax.servlet.ServletContext servletContext, String name)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.