public class ResourceContext extends Object implements org.apache.isis.viewer.restfulobjects.rendering.RendererContext
| Constructor and Description |
|---|
ResourceContext(org.apache.isis.viewer.restfulobjects.applib.RepresentationType representationType,
javax.ws.rs.core.HttpHeaders httpHeaders,
javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
org.apache.isis.applib.annotation.Where where,
String queryStringIfAny,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse,
javax.ws.rs.core.SecurityContext securityContext,
org.apache.isis.applib.profiles.Localization localization,
org.apache.isis.core.commons.authentication.AuthenticationSession authenticationSession,
org.apache.isis.core.runtime.system.persistence.PersistenceSession persistenceSession,
org.apache.isis.core.metamodel.adapter.mgr.AdapterManager objectAdapterLookup,
org.apache.isis.core.metamodel.spec.SpecificationLoader specificationLookup,
org.apache.isis.core.commons.config.IsisConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.isis.core.metamodel.adapter.mgr.AdapterManager |
getAdapterManager() |
<Q> Q |
getArg(org.apache.isis.viewer.restfulobjects.applib.client.RestfulRequest.RequestParameter<Q> requestParameter) |
org.apache.isis.core.commons.authentication.AuthenticationSession |
getAuthenticationSession() |
List<List<String>> |
getFollowLinks() |
javax.ws.rs.core.HttpHeaders |
getHttpHeaders() |
HttpServletRequest |
getHttpServletRequest() |
org.apache.isis.applib.profiles.Localization |
getLocalization() |
org.apache.isis.core.runtime.system.persistence.PersistenceSession |
getPersistenceSession() |
String |
getQueryString()
The
query string, cached
after first call. |
org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation |
getQueryStringAsJsonRepr() |
javax.ws.rs.core.Request |
getRequest() |
javax.ws.rs.core.SecurityContext |
getSecurityContext() |
List<org.apache.isis.core.metamodel.adapter.ObjectAdapter> |
getServiceAdapters() |
HttpServletResponse |
getServletResponse() |
org.apache.isis.core.metamodel.spec.SpecificationLoader |
getSpecificationLookup() |
javax.ws.rs.core.UriInfo |
getUriInfo() |
org.apache.isis.applib.annotation.Where |
getWhere() |
protected org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation |
requestArgsAsMap() |
String |
urlFor(String url) |
public ResourceContext(org.apache.isis.viewer.restfulobjects.applib.RepresentationType representationType, javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, org.apache.isis.applib.annotation.Where where, String queryStringIfAny, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, javax.ws.rs.core.SecurityContext securityContext, org.apache.isis.applib.profiles.Localization localization, org.apache.isis.core.commons.authentication.AuthenticationSession authenticationSession, org.apache.isis.core.runtime.system.persistence.PersistenceSession persistenceSession, org.apache.isis.core.metamodel.adapter.mgr.AdapterManager objectAdapterLookup, org.apache.isis.core.metamodel.spec.SpecificationLoader specificationLookup, org.apache.isis.core.commons.config.IsisConfiguration configuration)
public javax.ws.rs.core.HttpHeaders getHttpHeaders()
public String getQueryString()
query string, cached
after first call.
Note that this can return non-null for PUTs as well as GETs. It will only have been URL encoded for the latter; the caller should handle both cases.
public org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation getQueryStringAsJsonRepr()
protected org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation requestArgsAsMap()
public <Q> Q getArg(org.apache.isis.viewer.restfulobjects.applib.client.RestfulRequest.RequestParameter<Q> requestParameter)
public javax.ws.rs.core.UriInfo getUriInfo()
public javax.ws.rs.core.Request getRequest()
public HttpServletRequest getHttpServletRequest()
public HttpServletResponse getServletResponse()
public javax.ws.rs.core.SecurityContext getSecurityContext()
public List<List<String>> getFollowLinks()
getFollowLinks in interface org.apache.isis.viewer.restfulobjects.rendering.RendererContextpublic org.apache.isis.applib.profiles.Localization getLocalization()
getLocalization in interface org.apache.isis.viewer.restfulobjects.rendering.RendererContextpublic org.apache.isis.core.commons.authentication.AuthenticationSession getAuthenticationSession()
getAuthenticationSession in interface org.apache.isis.viewer.restfulobjects.rendering.RendererContextpublic org.apache.isis.core.metamodel.adapter.mgr.AdapterManager getAdapterManager()
getAdapterManager in interface org.apache.isis.viewer.restfulobjects.rendering.RendererContextpublic org.apache.isis.core.runtime.system.persistence.PersistenceSession getPersistenceSession()
getPersistenceSession in interface org.apache.isis.viewer.restfulobjects.rendering.RendererContextpublic List<org.apache.isis.core.metamodel.adapter.ObjectAdapter> getServiceAdapters()
public org.apache.isis.core.metamodel.spec.SpecificationLoader getSpecificationLookup()
public org.apache.isis.applib.annotation.Where getWhere()
getWhere in interface org.apache.isis.viewer.restfulobjects.rendering.RendererContextCopyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.