Através da LOCATIONS
Chave | Tipo | Obrigatório |
---|---|---|
Path | string | X |
RootPath | string | X |
DefaultPage | string | |
ThreadPool | string/array | X |
Chaves da sessão
Path
Path virtual da URL que identificará do serviço.
RootPath
Path físico onde estarão os arquivos manipulados pelo serviço.
DefaultPage
Informa qual será a página estática default do serviço.
Caso seja utilizado o arquivo appserver.ini o formato do valor desta chave deve ser string. Caso seja utilizado o JSON, seu valor deve ser do tipo array, porém com somente 1 (um) elemento.
ThreadPool
Define qual o thread pool irá executar as requisições desta location. O nome definido nesta chave deverá ser utilizado na sessão THREADPOOL
.
Caso seja utilizado o arquivo appserver.ini o formato do valor desta chave deve ser string. Caso seja utilizado o JSON, seu valor deve ser do tipo array.
Exemplos de configuração
Arquivo appserver.ini
[HTTP_ROOT_01]
Path=/rest
RootPath=C:\tlppCore\bin\root\web
DefaultPage={"index.html"}
ThreadPool=INIT_THREAD_POOL_01
[HTTPS_ROOT_01]
Path=/rest
RootPath=C:\tlppCore\bin\root\web
DefaultPage={"index.html"}
ThreadPool=INIT_THREAD_POOL_02
JSON
jConfig['HTTP_ROOT_01'] := JsonObject():new()
jConfig['HTTP_ROOT_01']['Path'] := "/rest"
jConfig['HTTP_ROOT_01']['RootPath'] := "C:\tlppCore\bin\root\web"
jConfig['HTTP_ROOT_01']['DefaultPage'] := {"index.html"}
jConfig['HTTP_ROOT_01']['ThreadPool'] := "INIT_THREAD_POOL_01"
jConfig['HTTPS_ROOT_01'] := JsonObject():new()
jConfig['HTTPS_ROOT_01']['Path'] := "/rest"
jConfig['HTTPS_ROOT_01']['RootPath'] := "C:\tlppCore\bin\root\web"
jConfig['HTTPS_ROOT_01']['DefaultPage'] := {"index.html"}
jConfig['HTTPS_ROOT_01']['ThreadPool'] := "INIT_THREAD_POOL_02"
Visão Geral
Import HTML Content
Conteúdo das Ferramentas