public class ModuleRoot extends DefaultObject implements ModuleResource
Modifier and Type | Field and Description |
---|---|
protected javax.ws.rs.core.HttpHeaders |
httpHeaders |
protected javax.servlet.http.HttpServletRequest |
request |
protected javax.ws.rs.core.UriInfo |
uriInfo |
Constructor and Description |
---|
ModuleRoot() |
Modifier and Type | Method and Description |
---|---|
String |
getLink(DocumentModel doc)
You should override this method to resolve objects to links.
|
javax.ws.rs.core.Response |
getSkinResource(String path) |
Object |
handleError(javax.ws.rs.WebApplicationException e) |
void |
setHttpHeaders(javax.ws.rs.core.HttpHeaders headers) |
void |
setHttpRequest(javax.servlet.http.HttpServletRequest request) |
void |
setUriInfo(javax.ws.rs.core.UriInfo info) |
disptachAdapter, isAdapter
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
checkGuard, dispose, getActiveAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isAdapter, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot
getAdapter
protected javax.servlet.http.HttpServletRequest request
protected javax.ws.rs.core.UriInfo uriInfo
protected javax.ws.rs.core.HttpHeaders httpHeaders
public ModuleRoot()
@Context public void setUriInfo(javax.ws.rs.core.UriInfo info)
@Context public void setHttpHeaders(javax.ws.rs.core.HttpHeaders headers)
@Context public void setHttpRequest(javax.servlet.http.HttpServletRequest request)
public javax.ws.rs.core.Response getSkinResource(String path)
public String getLink(DocumentModel doc)
getLink
in interface ModuleResource
doc
- the documentpublic Object handleError(javax.ws.rs.WebApplicationException e)
handleError
in interface ModuleResource
Copyright © 2015 Nuxeo SA. All rights reserved.