| Package | Description |
|---|---|
| org.ujorm.tools.web | |
| org.ujorm.tools.web.ajax | |
| org.ujorm.tools.web.ao | |
| org.ujorm.tools.web.json | |
| org.ujorm.tools.web.report | |
| org.ujorm.tools.web.request |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull HtmlElement |
HtmlElement.niceOf(@NotNull String title,
@NotNull RContext context,
CharSequence... cssLinks)
Create new instance with empty html headers
|
static @NotNull HtmlElement |
HtmlElement.of(@NotNull RContext context,
@NotNull HtmlConfig myConfig)
Create root element for a required element name.
|
| 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 |
|---|---|
default @NotNull String |
HttpParameter.of(@NotNull RContext context)
Default value is an empty String
|
default boolean |
HttpParameter.of(@NotNull RContext context,
@Nullable boolean defaultValue)
Returns a parameter of the request or the default value
|
default <V extends Enum<V>> |
HttpParameter.of(@NotNull RContext context,
@NotNull Class<V> clazz)
Returns a parameter of the request or the default value
|
default double |
HttpParameter.of(@NotNull RContext context,
@Nullable double defaultValue)
Returns a parameter of the request or the default value
|
default float |
HttpParameter.of(@NotNull RContext context,
@Nullable float defaultValue)
Returns a parameter of the request or the default value
|
default char |
HttpParameter.of(@NotNull RContext context,
@Nullable char defaultValue)
Returns a parameter of the request or the default value
|
default int |
HttpParameter.of(@NotNull RContext context,
@Nullable int defaultValue)
Returns a parameter of the request or the default value
|
default long |
HttpParameter.of(@NotNull RContext context,
@Nullable long defaultValue)
Returns a parameter of the request or the default value
|
default short |
HttpParameter.of(@NotNull RContext context,
@Nullable short defaultValue)
Returns a parameter of the request or the default value
|
default @NotNull String |
HttpParameter.of(@NotNull RContext context,
@NotNull String defaultValue)
Returns the last parameter value of the request or a default value
|
default <V extends Enum<V>> |
HttpParameter.of(@NotNull RContext context,
V defaultValue)
Returns a parameter of the request or the Enum class
|
default <V> V |
HttpParameter.of(@NotNull RContext context,
V defaultValue,
@NotNull Function<String,V> decoder)
Returns a parameter of the request or the default value
|
| Modifier and Type | Method and Description |
|---|---|
static @NotNull JsonBuilder |
JsonBuilder.of(@NotNull RContext context)
An object factory
|
static @NotNull JsonBuilder |
JsonBuilder.of(@NotNull RContext context,
@NotNull HtmlConfig config)
An object factory
|
| Modifier and Type | Method and Description |
|---|---|
void |
ReportBuilder.build(@NotNull RContext context,
@NotNull Function<GridBuilder<D>,Stream<D>> resource)
Build the HTML page including a table
|
void |
ReportBuilder.build(@NotNull RContext context,
@NotNull Stream<D> resource)
Build the HTML page including a table
|
protected void |
ReportBuilder.doAjax(@NotNull RContext context,
@NotNull JsonBuilder output,
@NotNull Function<GridBuilder<D>,Stream<D>> resource)
Return lighlited text in HTML format according a regular expression
|
protected void |
ReportBuilder.printHtmlBody(@NotNull RContext context,
@NotNull HtmlElement html,
@NotNull Function<GridBuilder<D>,Stream<D>> resource) |
protected void |
ReportBuilder.printSortedField(Element parent,
RContext context)
The hidden field contains an index of the last sorted column
|
protected void |
ReportBuilder.printTableBody(@NotNull Element table,
@NotNull RContext context,
@NotNull Function<GridBuilder<D>,Stream<D>> resource) |
| Modifier and Type | Method and Description |
|---|---|
static RContext |
RContext.of()
UContext from a map
|
static RContext |
RContext.of(ManyMap map)
UContext from a map
|
static RContext |
RContext.ofServlet(@Nullable Object httpServletRequest,
@NotNull Object httpServletResponse)
HTTP Servlet Factory
|
static RContext |
RContext.ofServletResponse(Object httpServletResponse)
HTTP Servlet Factory
|
Copyright 2015, Pavel Ponec