public class ContentService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Modifier and Type | Field and Description |
|---|---|
protected ContentLink |
contentLink |
static String |
DEFAILT_DISPLAY_NAME |
protected static org.exoplatform.services.log.Log |
LOG |
| Constructor and Description |
|---|
ContentService(ContentLink contentLink) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
content(javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletRequest request,
String userId,
String key)
Document content download link.
|
protected String |
getClientHost(javax.servlet.http.HttpServletRequest request) |
protected String |
getClientIpAddr(javax.servlet.http.HttpServletRequest request) |
protected boolean |
isValidName(String hostName) |
javax.ws.rs.core.Response |
manifest(javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletRequest request,
String guid,
String hostName,
String displayName)
Document content download link.
|
protected static final org.exoplatform.services.log.Log LOG
public static final String DEFAILT_DISPLAY_NAME
protected final ContentLink contentLink
public ContentService(ContentLink contentLink)
contentLink - ContentLinkpublic javax.ws.rs.core.Response content(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.servlet.http.HttpServletRequest request,
String userId,
String key)
uriInfo - - request inforequest - HttpServletRequestuserId - Stringkey - String file key generated by ContentLink.create(String, javax.jcr.Node) methodResponsepublic javax.ws.rs.core.Response manifest(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.servlet.http.HttpServletRequest request,
String guid,
String hostName,
String displayName)
protected String getClientIpAddr(javax.servlet.http.HttpServletRequest request)
protected String getClientHost(javax.servlet.http.HttpServletRequest request)
protected boolean isValidName(String hostName)
Copyright © 2003–2016 eXo Platform SAS. All rights reserved.