| Package | Description |
|---|---|
| org.b3log.latke.http |
Latke HTTP server.
|
| org.b3log.latke.http.advice | |
| org.b3log.latke.http.function | |
| org.b3log.latke.http.handler | |
| org.b3log.latke.http.renderer | |
| org.b3log.latke.plugin |
Plugin framework.
|
| org.b3log.latke.util |
Utilities of web container side.
|
| Modifier and Type | Method and Description |
|---|---|
static RequestContext |
Dispatcher.handle(Request request,
Response response)
Handle flow.
|
RequestContext |
RequestContext.renderCode(int code)
Renders with {"code": int}.
|
RequestContext |
RequestContext.renderData(Object data)
Renders with {"data": obj}.
|
RequestContext |
RequestContext.renderFalseResult()
Renders with {"sc": false}.
|
RequestContext |
RequestContext.renderJSON()
Renders using
JsonRenderer with {"sc": false}. |
RequestContext |
RequestContext.renderJSON(boolean sc)
Renders using
JsonRenderer with {"sc": sc}. |
RequestContext |
RequestContext.renderJSON(int code)
Renders using
JsonRenderer with {"code": int}. |
RequestContext |
RequestContext.renderJSON(JSONObject json)
Renders with the specified json object.
|
RequestContext |
RequestContext.renderJSONPretty(JSONObject json)
Pretty rends with the specified json object.
|
RequestContext |
RequestContext.renderJSONValue(String name,
Object obj)
Renders with {"name", obj}.
|
RequestContext |
RequestContext.renderMsg(String msg)
Renders with {"msg": msg}.
|
RequestContext |
RequestContext.renderPretty()
Pretty renders.
|
RequestContext |
RequestContext.renderTrueResult()
Renders with {"sc": true}.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Dispatcher.renderResponse(RequestContext context)
Renders HTTP response.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ProcessAdvice.doAdvice(RequestContext context)
Do advice.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ContextHandler.handle(RequestContext context)
Performs request handling with the specified context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BeforeHandleHandler.handle(RequestContext context) |
void |
ContextHandleHandler.handle(RequestContext context) |
void |
RouteHandler.handle(RequestContext context) |
void |
AfterHandleHandler.handle(RequestContext context) |
void |
StaticResourceHandler.handle(RequestContext context) |
void |
Handler.handle(RequestContext context)
Handle.
|
void |
StopwatchStartHandler.handle(RequestContext context) |
void |
StopwatchEndHandler.handle(RequestContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
AbstractFreeMarkerRenderer.afterRender(RequestContext context)
Invoked after render.
|
protected abstract void |
AbstractFreeMarkerRenderer.beforeRender(RequestContext context)
Invoked before render.
|
void |
AbstractResponseRenderer.postRender(RequestContext context) |
void |
ResponseRenderer.postRender(RequestContext context)
Post-render after the real method be invoked.
|
void |
AbstractResponseRenderer.preRender(RequestContext context) |
void |
ResponseRenderer.preRender(RequestContext context)
Pre-render before the real method be invoked.
|
abstract void |
AbstractResponseRenderer.render(RequestContext context) |
void |
Http404Renderer.render(RequestContext context) |
void |
AbstractFreeMarkerRenderer.render(RequestContext context) |
void |
JsonRenderer.render(RequestContext context) |
void |
Http500Renderer.render(RequestContext context) |
void |
ResponseRenderer.render(RequestContext context)
Renders with the specified HTTP request context.
|
void |
TextResponseRenderer.render(RequestContext context) |
void |
BinaryRenderer.render(RequestContext context) |
void |
StaticFileRenderer.render(RequestContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractPlugin.plug(Map<String,Object> dataModel,
RequestContext context)
Plugs with the specified data model and the args from request.
|
abstract void |
AbstractPlugin.postPlug(Map<String,Object> dataModel,
RequestContext context)
postPlug after the dataModel of the simplest-view be generated.
|
void |
NotInteractivePlugin.postPlug(Map<String,Object> dataModel,
RequestContext context) |
abstract void |
AbstractPlugin.prePlug(RequestContext context)
prePlug after the real method be invoked.
|
void |
NotInteractivePlugin.prePlug(RequestContext context) |
| Modifier and Type | Method and Description |
|---|---|
static int |
Paginator.getPage(RequestContext context)
Gets the current page number from the query string "p" of the specified context.
|
Copyright © 2009–2019 B3log. All rights reserved.