public class DocClient extends AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
DocClient()
Constructs a new Document client to invoke service methods on Document Transcoder.
|
DocClient(BceClientConfiguration clientConfiguration)
Constructs a new client using the client configuration to access Document Transcoder services.
|
getClient, getEndpoint, getServiceId, invokeHttpClient, setClient, shutdownpublic DocClient()
public DocClient(BceClientConfiguration clientConfiguration)
clientConfiguration - The client configuration options controlling how this client
connects to Document services (e.g. proxy settings, retry counts, etc).public boolean isRegionSupported()
AbstractBceClientThe result will impact the construction of default service endpoint.
isRegionSupported in class AbstractBceClientpublic CreateDocumentResponse createDocument(File file, String title, String format)
file - The document .title - The document title.format - The document format.public CreateDocumentResponse createDocument(File file, String title)
file - The document .title - The document title.public CreateDocumentResponse createDocument(File file, String title, String format, String notification)
file - The document .title - The document title.format - The document format.notification - The document notification name.public CreateDocumentResponse createDocument(CreateDocumentRequest request)
request - The request object containing all the parameters to upload a new doc.public CreateDocumentFromBosResponse createDocumentFromBos(String bucket, String object, String title, String format, String notification)
bucket - The document bucket.object - The document object.title - The document title.format - The document format.notification - The document notification name.public CreateDocumentFromBosResponse createDocumentFromBos(String bucket, String object, String title, String format)
bucket - The document bucket.object - The document object.title - The document title.format - The document format.public CreateDocumentFromBosResponse createDocumentFromBos(CreateDocumentFromBosRequest request)
request - The request object containing all the parameters to upload a new doc.public GetDocumentResponse getDocument(String documentId)
documentId - The document id.public GetDocumentResponse getDocument(GetDocumentRequest request)
request - The request object containing a docId.public ListDocumentsResponse listDocuments()
public ListDocumentsResponse listDocuments(String status)
public DeleteDocumentResponse deleteDocument(String documentId)
documentId - The document id.public DeleteDocumentResponse deleteDocument(DeleteDocumentRequest request)
request - The request object containing a docId.public GetDocumentDownloadResponse getDocumentDownload(String documentId)
documentId - the documentId need to download.public ReadDocumentResponse readDocument(String documentId)
documentId - The document id.public ReadDocumentResponse readDocument(ReadDocumentRequest request)
request - The request object containing a documentId.public ListNotificationsResponse listNotifications()
public DeleteNotificationResponse deleteNotification(String name)
name - doc notification name.public DeleteNotificationResponse deleteNotification(DeleteNotificationRequest request)
request - The request object containing all parameters for deleting dco notification.public GetNotificationResponse getNotification(String name)
name - doc notification name.public GetNotificationResponse getNotification(GetNotificationRequest request)
request - The request object containing all parameters for getting doc notification.public CreateNotificationResponse createNotification(String name, String endpoint)
name - The name of notification.endpoint - The address to receive notification message.public CreateNotificationResponse createNotification(CreateNotificationRequest request)
request - The request object containing all options for creating doc notification.Copyright © 2016. All rights reserved.