| Package | Description |
|---|---|
| org.b3log.latke.http |
Latke HTTP server.
|
| org.b3log.latke.http.renderer | |
| org.b3log.latke.util |
Utilities of web container side.
|
| Modifier and Type | Method and Description |
|---|---|
Request |
RequestContext.getRequest()
Gets the request.
|
| Modifier and Type | Method and Description |
|---|---|
static RequestContext |
Dispatcher.handle(Request request,
Response response)
Handle flow.
|
void |
RequestContext.setRequest(Request request)
Sets the request with the specified request.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractFreeMarkerRenderer.doRender(String html,
Request request,
Response response)
Processes the specified FreeMarker template with the specified request, data model and response.
|
protected String |
AbstractFreeMarkerRenderer.genHTML(Request request,
Map<String,Object> dataModel,
freemarker.template.Template template)
Processes the specified FreeMarker template with the specified request, data model.
|
| Modifier and Type | Method and Description |
|---|---|
static Locale |
Locales.getLocale(Request request)
Gets locale with the specified request.
|
static String |
Requests.getLog(Request request)
Gets log of the specified request.
|
static int |
Paginator.getPage(Request request)
Gets the current page number from the query string "p" of the specified request.
|
static String |
Requests.getRemoteAddr(Request request)
Gets the Internet Protocol (IP) address of the end-client that sent the specified request.
|
static String |
Requests.getServerName(Request request)
Gets the server name of the end-client that sent the specified request.
|
static String |
Requests.getServerScheme(Request request)
Gets the scheme of the end-client that sent the specified request.
|
static boolean |
StaticResources.isStatic(Request request)
Determines whether the client requests a static resource with the specified request.
|
static void |
Requests.log(Request request,
Level level,
Logger logger)
Logs the specified request with the specified level and logger.
|
static void |
Locales.setLocale(Request request,
Locale locale)
Sets the specified locale into session of the specified request.
|
Copyright © 2009–2019 B3log. All rights reserved.