@Singleton public class ContentService extends RestService
Constructor and Description |
---|
ContentService() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getContent(int waitseconds)
Test method for artificially creating a response delay.
|
javax.ws.rs.core.Response |
getContent(String xhdoc,
int element,
String filename,
javax.servlet.http.HttpServletRequest request)
Retrieves the requested document element in its current revision and returns it as a
download
attachment.
|
javax.ws.rs.core.Response |
getStructure(String xhdoc,
javax.servlet.http.HttpServletRequest request)
Returns the structure of the document (in its current revision) with the given xhdoc.
|
javax.ws.rs.core.Response |
info()
Informational method to indicate the right usage of this JAX-RS resource.
|
checkConnection, getConnection
public javax.ws.rs.core.Response getContent(String xhdoc, int element, String filename, @Context javax.servlet.http.HttpServletRequest request)
request
- injected HttpServletRequestxhdoc
- The hdoc id of the document whose element to load.element
- The element number of the element to load.filename
- The filename used in the 'Content-Disposition' header.public javax.ws.rs.core.Response getStructure(String xhdoc, @Context javax.servlet.http.HttpServletRequest request)
xhdoc
- The XHDOC of the document to get the structure from.request
- The request object.public javax.ws.rs.core.Response info()
public javax.ws.rs.core.Response getContent(int waitseconds)
waitseconds
- the number of seconds this method should wait until it returnsCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.