| 构造器和说明 |
|---|
FcAppLoader() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
forward(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Forward request to inited webapp
|
org.apache.catalina.Context |
getAppContext()
Get webapp loaded Context
|
boolean |
initApp(String userContextPath,
ClassLoader appLoader)
Init Webapp
|
void |
loadCode(String appFilePath)
Load webapp code from specified path
|
void |
loadCodeFromLocalProject(String appFilePath)
Load webapp code from path relative to user project
|
Boolean |
loadCodeFromOSS(String ossEndPoint,
String bucket,
String appName)
Load webapp code from oss
|
void |
setBaseDir(String baseDir)
Set base dir of webapp, the inited webapp will then write to this path.
|
void |
setDownloadPath(String downloadPath)
Set download path, for example if your webapp package from oss.
|
void |
setFCContext(com.aliyun.fc.runtime.Context context)
Set fc execute credential context
|
void |
SetFCContext(String accessKeyId,
String accessKeySecret)
Set fc execute ak sk
|
public void setFCContext(com.aliyun.fc.runtime.Context context)
AppLoadersetFCContext 在接口中 AppLoadercontext - Credential contextpublic void SetFCContext(String accessKeyId, String accessKeySecret)
AppLoaderSetFCContext 在接口中 AppLoaderaccessKeyId - The accessKeyIdaccessKeySecret - The accessKeySecretpublic org.apache.catalina.Context getAppContext()
AppLoadergetAppContext 在接口中 AppLoaderpublic void setDownloadPath(String downloadPath)
AppLoadersetDownloadPath 在接口中 AppLoaderdownloadPath - The path to download webapppublic void setBaseDir(String baseDir)
AppLoadersetBaseDir 在接口中 AppLoaderbaseDir - The path of webapp homepublic void loadCode(String appFilePath)
AppLoaderpublic void loadCodeFromLocalProject(String appFilePath)
AppLoaderloadCodeFromLocalProject 在接口中 AppLoaderappFilePath - The path of app packagepublic Boolean loadCodeFromOSS(String ossEndPoint, String bucket, String appName)
AppLoaderloadCodeFromOSS 在接口中 AppLoaderossEndPoint - oss endpointbucket - oss bucketappName - oss keypublic boolean initApp(String userContextPath, ClassLoader appLoader)
AppLoaderinitApp 在接口中 AppLoaderuserContextPath - Web context path:
1. For non custom domain http trigger, something like 2016-08-15/proxy/${serviceName}/${functionName}
2. For custom domain http trigger, according your path mapping settings.appLoader - Loader for WebApp contextCopyright © 2019. All Rights Reserved.