@Path(value="/hierarchy")
@Produces(value={"application/json","application/xml"})
public class HierarchyResource
extends Resource
| Modifier and Type | Field and Description |
|---|---|
protected AuthorizeService |
authorizeService |
protected CommunityService |
communityService |
protected ConfigurationService |
configurationService |
protected SiteService |
siteService |
servletContext| Constructor and Description |
|---|
HierarchyResource() |
| Modifier and Type | Method and Description |
|---|---|
HierarchySite |
getHierarchy(String user_agent,
String xforwarderfor,
javax.ws.rs.core.HttpHeaders headers,
javax.servlet.http.HttpServletRequest request) |
createContext, getActionString, mySplit, processException, processFinally, writeStatsprotected SiteService siteService
protected CommunityService communityService
protected AuthorizeService authorizeService
protected ConfigurationService configurationService
@GET
@Produces(value={"application/json","application/xml"})
public HierarchySite getHierarchy(@QueryParam(value="userAgent")
String user_agent,
@QueryParam(value="xforwarderfor")
String xforwarderfor,
@Context
javax.ws.rs.core.HttpHeaders headers,
@Context
javax.servlet.http.HttpServletRequest request)
throws UnsupportedEncodingException,
javax.ws.rs.WebApplicationException
headers - If you want to access to collection under logged user into
context. In headers must be set header "rest-dspace-token"
with passed token from login method.UnsupportedEncodingExceptionjavax.ws.rs.WebApplicationException - It is thrown when was problem with database reading
(SQLException) or problem with creating
context(ContextException). It is thrown by NOT_FOUND and
UNATHORIZED status codes, too.Copyright © 2016 DuraSpace. All rights reserved.