public class PreviewDocumentInHtmlRequest extends GetObjectRequest
CosXmlRequest.OnRequestWeightListener
cosPath
bucket, noSignHeaders, noSignParams, priority, qCloudTaskStateListener, queryParameters, region, requestHeaders, requestURL, signSourceProvider
构造器和说明 |
---|
PreviewDocumentInHtmlRequest(java.lang.String bucket,
java.lang.String cosPath,
java.lang.String savePath)
预览请求构造器
|
PreviewDocumentInHtmlRequest(java.lang.String bucket,
java.lang.String cosPath,
java.lang.String savePath,
java.lang.String fileName)
预览请求构造器
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getMethod()
获取HTTP请求方法
RequestMethod |
PreviewDocumentInHtmlRequest |
setCopyable(boolean copyable)
是否可复制(默认为可复制)
非必选字段
|
PreviewDocumentInHtmlRequest |
setHtmlParams(java.lang.String htmlParams)
|
PreviewDocumentInHtmlRequest |
setSrcType(java.lang.String srcType)
指定目标文件类型,支持的文件类型请见下方
目前支持的输入文件类型包含如下格式:
演示文件:pptx、ppt、pot、potx、pps、ppsx、dps、dpt、pptm、potm、ppsm。
|
PreviewDocumentInHtmlRequest |
setWatermark(java.lang.String watermark)
水印文字,需要经过 URL 安全 的 Base64 编码,默认为空
非必选字段
|
PreviewDocumentInHtmlRequest |
setWatermarkColor(java.lang.String htmlfillstyle)
水印 RGBA(颜色和透明度),默认为:rgba(192,192,192,0.6)
非必选字段
|
PreviewDocumentInHtmlRequest |
setWatermarkFont(java.lang.String font)
水印文字样式,默认为:bold 20px Serif
非必选字段
|
PreviewDocumentInHtmlRequest |
setWatermarkHorizontal(int horizontal)
水印文字水平间距,单位 px,默认为50
非必选字段
|
PreviewDocumentInHtmlRequest |
setWatermarkRotate(int rotate)
旋转角度,0~360,默认315度
非必选字段
|
PreviewDocumentInHtmlRequest |
setWatermarkVertical(int vertical)
水印文字垂直间距,单位 px,默认为100
非必选字段
|
getDownloadPath, getFileContentUri, getFileOffset, getProgressListener, getQueryString, getRange, getRspCacheControl, getRspContentDispositon, getRspContentEncoding, getRspContentLanguage, getRspContentType, getRspExpires, getSaveFileName, getSavePath, setFileOffset, setIfMatch, setIfModifiedSince, setIfNONEMatch, setIfUnmodifiedSince, setProgressListener, setRange, setRange, setRspCacheControl, setRspContentDispositon, setRspContentEncoding, setRspContentLanguage, setRspContentType, setRspExpires, setSaveFileName, setSavePath, setTrafficLimit, setVersionId, xmlBuilder
checkParameters, getContentType, getCosPath, getPath, setCosPath, setCOSServerSideEncryption, setCOSServerSideEncryptionWithCustomerKey, setCOSServerSideEncryptionWithKMS
addHeader, addNoSignHeader, addNoSignParams, addQuery, attachMetrics, getBucket, getHttpTask, getKeyTime, getMetrics, getNoSignHeaders, getNoSignParams, getPriority, getQueryEncodedString, getRegion, getRequestBody, getRequestHeaders, getRequestHost, getRequestURL, getSignSourceProvider, getSTSCredentialScope, getWeight, headersHasUnsafeNonAscii, isNeedMD5, isSignInUrl, isSupportAccelerate, isSupportAccelerate, setNeedMD5, setOnRequestWeightListener, setQueryEncodedString, setQueryParameters, setRegion, setRequestHeaders, setRequestHeaders, setRequestHeaders, setRequestURL, setSign, setSign, setSign, setSign, setSign, setSignInUrl, setSignKeyTime, setSignParamsAndHeaders, setSignSourceProvider, setTask, setTaskStateListener
public PreviewDocumentInHtmlRequest(java.lang.String bucket, java.lang.String cosPath, java.lang.String savePath)
bucket
- 文档所在存储桶cosPath
- 文档的对象键savePath
- 文档本地保存路径public PreviewDocumentInHtmlRequest(java.lang.String bucket, java.lang.String cosPath, java.lang.String savePath, java.lang.String fileName)
bucket
- 文档所在存储桶cosPath
- 文档的对象键savePath
- 文档本地保存路径fileName
- 本地文件名称public PreviewDocumentInHtmlRequest setSrcType(java.lang.String srcType)
srcType
- 指定目标文件类型public PreviewDocumentInHtmlRequest setCopyable(boolean copyable)
copyable
- 是否可复制public PreviewDocumentInHtmlRequest setHtmlParams(java.lang.String htmlParams)
htmlParams
- 自定义配置参数public PreviewDocumentInHtmlRequest setWatermark(java.lang.String watermark)
watermark
- 水印文字public PreviewDocumentInHtmlRequest setWatermarkColor(java.lang.String htmlfillstyle)
htmlfillstyle
- 水印 RGBA(颜色和透明度)public PreviewDocumentInHtmlRequest setWatermarkFont(java.lang.String font)
font
- 水印文字样式public PreviewDocumentInHtmlRequest setWatermarkRotate(int rotate)
rotate
- 旋转角度public PreviewDocumentInHtmlRequest setWatermarkHorizontal(int horizontal)
horizontal
- 水印文字水平间距public PreviewDocumentInHtmlRequest setWatermarkVertical(int vertical)
vertical
- 水印文字垂直间距public java.lang.String getMethod()
CosXmlRequest
RequestMethod
getMethod
在类中 GetObjectRequest