@MTOM public class ContentService_JAXWS extends Object
The ContentService service provides methods to upload and download binary content using a streaming interface. The ContentService is used in conjunction with the *Context() methods of other services.
The pattern for using the ContentService is to first use a meta-data method call from one of the existing services to upload the meta-data about a new version and return a context ID. Once the context ID is obtained it is used to stream the binary contents.
To download binary content a service method is used to specify the version you want and get back a context ID. This context ID is then used to stream the binary contents to the client.
Constructor and Description |
---|
ContentService_JAXWS() |
Modifier and Type | Method and Description |
---|---|
StreamBody |
downloadContent(String contextID)
Downloads content by executing the method described in the method context.
|
String |
uploadContent(String contextID,
FileAtts fileAtts,
StreamBody contents)
Upload content and create the node.
|
public StreamBody downloadContent(String contextID)
contextID
- The ID of the method context stored on the server.public String uploadContent(String contextID, FileAtts fileAtts, StreamBody contents)
contextID
- The context ID of the original request, containing the meta-data for this content.fileAtts
- The description of the content uploaded.contents
- Contents to be uploaded.© Copyright 2017 OpenText Corp. All Rights Reserved.