public class ContentService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Modifier and Type | Field and Description |
|---|---|
protected ContentLink |
contentLink
The content link.
|
static String |
DEFAULT_DISPLAY_NAME
The Constant DEFAULT_DISPLAY_NAME.
|
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.
|
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 DEFAULT_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)
request - the requestprotected String getClientHost(javax.servlet.http.HttpServletRequest request)
request - the requestprotected boolean isValidName(String hostName)
hostName - the host nameCopyright © 2003–2016 eXo Platform SAS. All rights reserved.