public class ContentService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ContentLink |
contentLink
The content link.
|
protected static org.exoplatform.services.log.Log |
LOG
The Constant LOG.
|
| Constructor and Description |
|---|
ContentService(ContentLink contentLink)
Instantiates a new content service.
|
| 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)
Gets the client host.
|
protected String |
getClientIpAddr(javax.servlet.http.HttpServletRequest request)
Gets the client ip addr.
|
protected boolean |
isValidName(String hostName)
Checks if is valid name.
|
protected static final org.exoplatform.services.log.Log LOG
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) methodResponseprotected String getClientIpAddr(javax.servlet.http.HttpServletRequest request)
request - the requestprotected String getClientHost(javax.servlet.http.HttpServletRequest request)
request - the requestprotected boolean isValidName(String hostName)
hostName - the host nameCopyright © 2003–2019 eXo Platform SAS. All rights reserved.