类 GetPrivateUrlMethod
java.lang.Object
com.publiccms.common.base.BaseMethod
com.publiccms.views.method.tools.GetPrivateUrlMethod
- 所有已实现的接口:
freemarker.template.TemplateMethodModel
,freemarker.template.TemplateMethodModelEx
,freemarker.template.TemplateModel
getPrivateUrl 获取私有文件绝对路径
参数列表
parameter list
パラメータリスト
url
,文件urlexpiryMinutes
,过期分钟数,可以为空string
,文件名,可以为空
返回结果
return result
戻り値
url
:绝对路径的url
使用示例
usage example
使用例
${getPrivateUrl('index.html')}
<script> $.getJSON('${site.dynamicPath}api/method/getPrivateUrl?appToken=接口访问授权Token¶meters=index.html', function(data){ console.log(data); }); </script>
-
字段概要
字段从类继承的字段 com.publiccms.common.base.BaseMethod
log
从接口继承的字段 freemarker.template.TemplateModel
NOTHING
-
构造器概要
构造器 -
方法概要
从类继承的方法 com.publiccms.common.base.BaseMethod
exec, getBoolean, getDate, getDouble, getInteger, getIntegerArray, getLong, getLongArray, getMap, getModel, getName, getShort, getString, getStringArray, httpEnabled, setName
-
字段详细资料
-
fileUploadComponent
-
-
构造器详细资料
-
GetPrivateUrlMethod
public GetPrivateUrlMethod()
-
-
方法详细资料
-
execute
public Object execute(jakarta.servlet.http.HttpServletRequest request, List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 覆盖:
execute
在类中BaseMethod
- 抛出:
freemarker.template.TemplateModelException
-
execute
public Object execute(List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 指定者:
execute
在类中BaseMethod
- 抛出:
freemarker.template.TemplateModelException
-
execute
public Object execute(SysSite site, List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 抛出:
freemarker.template.TemplateModelException
-
needAppToken
public boolean needAppToken()- 指定者:
needAppToken
在类中BaseMethod
- 返回:
- whether to need app token
-
minParametersNumber
public int minParametersNumber()- 指定者:
minParametersNumber
在类中BaseMethod
- 返回:
- min parameters number
-