public class ReqestDispatcher extends Object
| Constructor and Description |
|---|
ReqestDispatcher(@NotNull CharSequence title,
@NotNull RContext context) |
ReqestDispatcher(@NotNull RContext context) |
ReqestDispatcher(@NotNull RContext context,
@NotNull HtmlConfig htmlConfig) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull HtmlConfig |
getAjaxConfig() |
void |
onDefault(@NotNull IORunnable defaultProcessor)
Process the request
|
void |
onDefaultToElement(@NotNull IOElement defaultProcessor)
The process writes to an element
|
ReqestDispatcher |
onParam(@NotNull HttpParameter key,
@NotNull IOConsumer<JsonBuilder> processor)
Registre new processor.
|
public ReqestDispatcher(@NotNull
@NotNull RContext context)
public ReqestDispatcher(@NotNull
@NotNull CharSequence title,
@NotNull
@NotNull RContext context)
public ReqestDispatcher(@NotNull
@NotNull RContext context,
@NotNull
@NotNull HtmlConfig htmlConfig)
@NotNull public @NotNull HtmlConfig getAjaxConfig()
public ReqestDispatcher onParam(@NotNull @NotNull HttpParameter key, @NotNull @NotNull IOConsumer<JsonBuilder> processor) throws IOException
key - A key type of HttpParameterprocessor - processorIOExceptionpublic void onDefaultToElement(@NotNull
@NotNull IOElement defaultProcessor)
throws IOException
IOExceptionpublic void onDefault(@NotNull
@NotNull IORunnable defaultProcessor)
throws IOException
IOExceptionCopyright 2015, Pavel Ponec