Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_INDEX_FILE_NAME |
Constructor and Description |
---|
RootAction(File rootDir)
构造
|
RootAction(File rootDir,
String... indexFileNames)
构造
|
RootAction(String rootDir)
构造
|
RootAction(String rootDir,
String... indexFileNames)
构造
|
Modifier and Type | Method and Description |
---|---|
void |
doAction(HttpServerRequest request,
HttpServerResponse response)
处理请求
|
public static final String DEFAULT_INDEX_FILE_NAME
public RootAction(String rootDir)
rootDir
- 网页根目录public RootAction(File rootDir)
rootDir
- 网页根目录public RootAction(String rootDir, String... indexFileNames)
rootDir
- 网页根目录indexFileNames
- 主页文件名列表public void doAction(HttpServerRequest request, HttpServerResponse response)
Action
Copyright © 2024. All rights reserved.