Package org.ujorm.tools.web.ajax
Class ReqestDispatcher
java.lang.Object
org.ujorm.tools.web.ajax.ReqestDispatcher
A Reqest Dispatcher
- Author:
- Pavel Ponec
-
Constructor Summary
ConstructorsConstructorDescriptionReqestDispatcher(@NotNull CharSequence title, @NotNull HttpContext context) ReqestDispatcher(@NotNull HttpContext context) ReqestDispatcher(@NotNull HttpContext context, @NotNull HtmlConfig htmlConfig) -
Method Summary
Modifier and TypeMethodDescription@NotNull HtmlConfigvoidonDefault(@NotNull IORunnable defaultProcessor) Process the requestvoidonDefaultToElement(@NotNull IOElement defaultProcessor) The process writes to an elementonParam(@NotNull HttpParameter key, @NotNull IOConsumer<JsonBuilder> processor) Registre new processor.
-
Constructor Details
-
ReqestDispatcher
-
ReqestDispatcher
public ReqestDispatcher(@NotNull @NotNull CharSequence title, @NotNull @NotNull HttpContext context) -
ReqestDispatcher
public ReqestDispatcher(@NotNull @NotNull HttpContext context, @NotNull @NotNull HtmlConfig htmlConfig)
-
-
Method Details
-
getAjaxConfig
-
onParam
public ReqestDispatcher onParam(@NotNull @NotNull HttpParameter key, @NotNull @NotNull IOConsumer<JsonBuilder> processor) throws IOException Registre new processor.- Parameters:
key- A key type of HttpParameterprocessor- processor- Returns:
- Throws:
IOException
-
onDefaultToElement
The process writes to an element- Throws:
IOException
-
onDefault
Process the request- Throws:
IOException
-