public class FtlResourceHandler extends AbstractHandler implements Handler
| 限定符和类型 | 字段和说明 |
|---|---|
static ConfigOption |
RULE_OPTION |
DEFAULT_RESOURCE_OPTION, handlerName, logger, RESOURCE_MOUNT_OPTION, server, URL_PREFIX_OPTION, urlPrefixCKEY, CUSSCLASSNAME, httpHeaderArr, pattArr, ProjectName, ProjectVersionName, RefererHeard, VVVERSION| 构造器和说明 |
|---|
FtlResourceHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
Map |
getContextMap() |
String |
getExtStr(String ftl) |
InputStream |
getInputStream(String content,
String charSet) |
protected boolean |
handleBody(HttpRequest request,
HttpResponse response) |
boolean |
initialize(String handlerName,
Server server) |
copyStreamToFile, copyStreamToFile, createQueryMap, formatPath, getAllParamMap, getContentType, getMimeType, getName, getOgnlContext, getPathParamsValue, getProjectName, getRequestMethodBean, getServer, getService, getUrlPrefix, handle, invokMethod, invokMethod, isNullParams, isRequestdForHandler, sendFtl, sendJSON, setOgnlContext, setServer, shutdown, uploadpublic static final ConfigOption RULE_OPTION
public boolean initialize(String handlerName, Server server)
initialize 在接口中 Handlerinitialize 在类中 AbstractHandlerprotected boolean handleBody(HttpRequest request, HttpResponse response) throws IOException
handleBody 在类中 AbstractHandlerIOExceptionpublic Map getContextMap()
getContextMap 在类中 AbstractHandlerpublic String getExtStr(String ftl) throws IOException, freemarker.template.TemplateException
getExtStr 在类中 AbstractHandlerIOExceptionfreemarker.template.TemplateExceptionpublic InputStream getInputStream(String content, String charSet)
getInputStream 在类中 AbstractHandlerCopyright © 2025 onecode. All rights reserved.