com.tinkerpop.rexster
Class BaseResource
java.lang.Object
com.tinkerpop.rexster.BaseResource
- Direct Known Subclasses:
- AbstractSubResource, RexsterResource, RootResource
public abstract class BaseResource
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
producesVariantList
protected final List<javax.ws.rs.core.Variant> producesVariantList
sh
protected final StatisticsHelper sh
resultObject
protected org.codehaus.jettison.json.JSONObject resultObject
httpServletRequest
@Context
protected javax.servlet.http.HttpServletRequest httpServletRequest
uriInfo
@Context
protected javax.ws.rs.core.UriInfo uriInfo
servletContext
@Context
protected javax.servlet.ServletContext servletContext
securityContext
@Context
protected javax.ws.rs.core.SecurityContext securityContext
BaseResource
public BaseResource(RexsterApplication rexsterApplication)
generateErrorObject
public org.codehaus.jettison.json.JSONObject generateErrorObject(String message)
generateErrorObjectJsonFail
public org.codehaus.jettison.json.JSONObject generateErrorObjectJsonFail(Throwable source)
generateErrorObject
public org.codehaus.jettison.json.JSONObject generateErrorObject(String message,
Throwable source)
getRexsterApplication
protected RexsterApplication getRexsterApplication()
getUriPath
protected String getUriPath()
setRequestObject
protected void setRequestObject(org.codehaus.jettison.json.JSONObject jsonObject)
- Sets the request object.
If this is set then the any previous call to getRequestObject which instantiated
the request object from the URI parameters will be overriden.
- Parameters:
jsonObject
- The JSON Object.
getRequestObject
public org.codehaus.jettison.json.JSONObject getRequestObject()
getRequestObjectFlat
public org.codehaus.jettison.json.JSONObject getRequestObjectFlat()
getRequestObject
public org.codehaus.jettison.json.JSONObject getRequestObject(boolean parseToJson)
- Gets the request object.
If it does not exist then an attempt is made to parse the parameter list on
the URI into a JSON object.
- Returns:
- The request object.
getNonRexsterRequest
protected org.codehaus.jettison.json.JSONObject getNonRexsterRequest()
throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
getNonRexsterRequestKeys
protected List<String> getNonRexsterRequestKeys()
throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
getTimeAlive
protected String getTimeAlive()
buildOptionsResponse
protected javax.ws.rs.core.Response buildOptionsResponse()
- Includes all HTTP Methods in allowable options.
buildOptionsResponse
protected javax.ws.rs.core.Response buildOptionsResponse(String... methods)
Copyright © 2009-2012. All Rights Reserved.