Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- a(String, String, SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <a>, or anchor element of a HTML document.
- a(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <a> element of a HTML document.
- accept(CompletableFuture<S>) - Method in interface rsp.stateview.CompletableFutureConsumer
-
Performs this write operation when the argument
CompletableFuturecompletes with its result - accept(Function<S, S>) - Method in interface rsp.stateview.FunctionConsumer
-
Writes the new state with the result of the function.
- acceptOptional(Function<S, Optional<S>>) - Method in interface rsp.stateview.FunctionConsumer
-
Writes the new state with the result of the function if the result is not empty.
- addChild(Component<?, ?>) - Method in class rsp.component.Component
- addEvent(Event.Target, Event) - Method in class rsp.component.Component
- addHeaders(Map<String, String>) - Method in class rsp.html.HtmlDocumentDefinition
-
Adds the HTTP headers to be rendered in the response.
- addRef(Ref, VirtualDomPath) - Method in class rsp.component.Component
- any(S) - Static method in class rsp.routing.RoutingDsl
-
Creates a route that matches to any request.
- App<S> - Class in rsp
-
An assembly point for everything needed to set off a UI application.
- App(Routing<HttpRequest, S>, ComponentView<S>) - Constructor for class rsp.App
-
Creates an instance of an application with the default configuration.
- App(Routing<HttpRequest, S>, View<S>) - Constructor for class rsp.App
- App(S, ComponentView<S>) - Constructor for class rsp.App
-
Creates an instance of an application with the default config and default routing which maps any request to the initial state.
- App(S, View<S>) - Constructor for class rsp.App
- AppConfig - Class in rsp
-
An application configuration.
- AppConfig(int, int) - Constructor for class rsp.AppConfig
-
Creates an instance of an application object.
- append(T[], T) - Static method in class rsp.util.ArrayUtils
-
Appends an item to an array resulting in a new array.
- apply(Function<S, S>) - Method in class rsp.component.Component
- apply(Function<S, S>) - Method in interface rsp.stateview.NewState
- apply(Function<T, T>) - Method in class rsp.stateview.NewState.Default
- apply(HttpRequest) - Method in class rsp.routing.HttpRequestMatchFunction
- apply(Path) - Method in class rsp.routing.PathMatchFunction
- apply(T1, T2, T3) - Method in interface rsp.util.TriFunction
- applyIfPresent(Function<S, Optional<S>>) - Method in class rsp.component.Component
- applyIfPresent(Function<S, Optional<S>>) - Method in interface rsp.stateview.NewState
- applyIfPresent(Function<T, Optional<T>>) - Method in class rsp.stateview.NewState.Default
- applyWhenComplete(CompletableFuture<S>) - Method in class rsp.component.Component
- applyWhenComplete(CompletableFuture<S>) - Method in interface rsp.stateview.NewState
- applyWhenComplete(CompletableFuture<T>) - Method in class rsp.stateview.NewState.Default
- Array(JsonDataType...) - Constructor for class rsp.util.json.JsonDataType.Array
- ArrayUtils - Class in rsp.util
-
Provides utility methods for Java arrays.
- ArrayUtils() - Constructor for class rsp.util.ArrayUtils
- asDouble() - Method in class rsp.util.json.JsonDataType.Number
- asJsonArray() - Method in interface rsp.util.json.JsonDataType
- asJsonBoolean() - Method in interface rsp.util.json.JsonDataType
- asJsonNumber() - Method in interface rsp.util.json.JsonDataType
- asJsonObject() - Method in interface rsp.util.json.JsonDataType
- asJsonString() - Method in interface rsp.util.json.JsonDataType
- asLong() - Method in class rsp.util.json.JsonDataType.Number
- assembleJs(File, File, String) - Static method in class rsp.util.JsCompiler
- attr(String) - Static method in class rsp.html.HtmlDsl
-
A boolean attribute.
- attr(String, String) - Static method in class rsp.html.HtmlDsl
-
A HTML element's attribute.
- attr(String, String, boolean) - Static method in class rsp.html.HtmlDsl
-
A HTML element's attribute.
- AttributeDefinition - Class in rsp.html
-
A definition of a HTML element's attribute.
- AttributeDefinition(String, String, boolean) - Constructor for class rsp.html.AttributeDefinition
-
Creates a new instance of an attribute definition.
B
- BaseSegmentDefinition - Class in rsp.html
-
The base class for all DLS definitions classes.
- BaseSegmentDefinition() - Constructor for class rsp.html.BaseSegmentDefinition
- body(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <body> element of a HTML document.
- bodyStream - Variable in class rsp.server.http.HttpResponse
- Boolean(boolean) - Constructor for class rsp.util.json.JsonDataType.Boolean
- br() - Static method in class rsp.html.HtmlDsl
-
A HTML <br/> element of a HTML document.
- button(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <button> element of a HTML document.
C
- children - Variable in class rsp.html.TagDefinition
- CompletableFutureConsumer<S> - Interface in rsp.stateview
-
Represents a write state snapshot operation using a
CompletableFuture. - CompletableFutureUtils - Class in rsp.util
- CompletableFutureUtils() - Constructor for class rsp.util.CompletableFutureUtils
- component(Routing<Path, S>, BiFunction<S, Path, Path>, ComponentView<S>) - Static method in class rsp.component.ComponentDsl
- component(S, ComponentView<S>) - Static method in class rsp.component.ComponentDsl
-
A stateful component.
- Component<T,
S> - Class in rsp.component - Component(Lookup, Class<T>, Function<T, CompletableFuture<? extends S>>, BiFunction<S, Path, Path>, ComponentView<S>, RenderContext, AtomicReference<LivePage>) - Constructor for class rsp.component.Component
- ComponentDefinition<T,
S> - Class in rsp.component -
A definition of a stateful component.
- ComponentDefinition(Class<T>, Function<T, CompletableFuture<? extends S>>, BiFunction<S, Path, Path>, ComponentView<S>) - Constructor for class rsp.component.ComponentDefinition
- ComponentDsl - Class in rsp.component
-
Stateful components definitions domain-specific language functions.
- ComponentDsl() - Constructor for class rsp.component.ComponentDsl
- ComponentView<S> - Interface in rsp.stateview
-
A function to create a state's view representation.
- concat(Route<T, S>...) - Static method in class rsp.routing.RoutingDsl
-
Concatenates routes.
- concat(T[], T[]) - Static method in class rsp.util.ArrayUtils
-
Concatenates two arrays into a new one.
- config - Variable in class rsp.App
-
The application's configuration.
- config(AppConfig) - Method in class rsp.App
-
Sets the application's config.
- CONNECT - Enum constant in enum class rsp.server.http.HttpRequest.HttpMethod
- consume(Consumer<? super T>, Consumer<? super Throwable>) - Static method in class rsp.util.CompletableFutureUtils
- convertToJsonType(Object) - Static method in class rsp.util.json.JsonSimpleUtils
-
Recursively converts a json-simple parsed JSON object to a
JsonDataType. - cookie(String) - Method in class rsp.server.http.HttpRequest
-
Gets a request's HTTP cookie by name.
- createElementRef() - Static method in class rsp.html.HtmlDsl
-
Creates reference to a HTML element which can be used as a key for obtaining its element's properties values.
- createTimerRef() - Static method in interface rsp.ref.TimerRef
-
Creates a reference to a schedule's timer.
D
- debounce(int) - Method in class rsp.html.EventDefinition
-
Creates a new modified instance with the debounce events filter.
- debounce(int, boolean) - Method in class rsp.html.EventDefinition
-
Creates a new modified instance with the debounce events filter.
- decode(String) - Method in class rsp.server.protocol.RemotePageMessageDecoder
- Default() - Constructor for class rsp.stateview.NewState.Default
- DEFAULT - Static variable in class rsp.AppConfig
-
The default configuration.
- DEFAULT_HEARTBEAT_INTERVAL_MS - Static variable in class rsp.AppConfig
-
The default rate of heartbeat messages from a browser to server.
- DEFAULT_PROPERTIES_NAMES - Static variable in class rsp.html.HtmlDsl
-
Attributes names which are interpreted by default as properties.
- DEFAULT_SCHEDULER_THREAD_POOL_SIZE - Static variable in class rsp.AppConfig
-
The application's scheduler thread pool default size.
- DEFAULT_WEB_SERVER_MAX_THREADS - Static variable in class rsp.jetty.JettyServer
-
The Jetty server's maximum threads number by default is 50.
- DELETE - Enum constant in enum class rsp.server.http.HttpRequest.HttpMethod
- deviceId() - Method in class rsp.server.http.HttpRequest
-
Gets an unique ID of the browser.
- div(String) - Static method in class rsp.html.HtmlDsl
-
A HTML <div> element of a HTML document.
- div(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <div> element of a HTML document.
- DUMMY - Static variable in class rsp.server.http.HttpRequest
E
- either(CompletableFuture<T>...) - Static method in class rsp.util.CompletableFutureUtils
- Either<L,
R> - Class in rsp.util.data -
Represents a value of one of two possible types.
- elementPath - Variable in class rsp.html.EventDefinition
-
The path to the element the event generated on.
- ElementRef - Interface in rsp.ref
- ElementRefDefinition - Class in rsp.html
-
A reference to an element.
- ElementRefDefinition() - Constructor for class rsp.html.ElementRefDefinition
- ElementRefDefinition.KeyRef<K> - Class in rsp.html
- elements() - Method in class rsp.util.json.JsonDataType.Array
- EMPTY - Static variable in class rsp.util.json.JsonDataType.Object
- equals(Object) - Method in class rsp.html.ElementRefDefinition.KeyRef
- equals(Object) - Method in class rsp.util.data.Tuple2
- equals(Object) - Method in class rsp.util.json.JsonDataType.Array
- equals(Object) - Method in class rsp.util.json.JsonDataType.Boolean
- equals(Object) - Method in class rsp.util.json.JsonDataType.Number
- equals(Object) - Method in class rsp.util.json.JsonDataType.Object
- equals(Object) - Method in class rsp.util.json.JsonDataType.String
- escape(String) - Static method in class rsp.util.json.JsonUtils
- evalJs(int, String) - Method in class rsp.server.protocol.RemotePageMessageEncoder
- EventDefinition - Class in rsp.html
-
A DOM event subscription definition.
- EventDefinition(String, Consumer<EventContext>, boolean, Event.Modifier) - Constructor for class rsp.html.EventDefinition
-
Creates a new instance of an event subscription.
- EventDefinition(String, Consumer<EventContext>, Event.Modifier) - Constructor for class rsp.html.EventDefinition
-
Creates a new instance of an event subscription.
- EventDefinition(Optional<VirtualDomPath>, String, Consumer<EventContext>, boolean, Event.Modifier) - Constructor for class rsp.html.EventDefinition
-
Creates a new instance of an event.
- eventType - Variable in class rsp.html.EventDefinition
-
The event's type.
- ExceptionsUtils - Class in rsp.util
- ExceptionsUtils() - Constructor for class rsp.util.ExceptionsUtils
- extractProperty(int, VirtualDomPath, String) - Method in class rsp.server.protocol.RemotePageMessageEncoder
F
- flatMap(Function<L, Either<LL, RR>>, Function<R, Either<LL, RR>>) - Method in class rsp.util.data.Either
- forgetEvent(String, VirtualDomPath) - Method in class rsp.server.protocol.RemotePageMessageEncoder
- form(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <form> element of a HTML document.
- FunctionConsumer<S> - Interface in rsp.stateview
-
Represents a write state snapshot operation using the result of a function which transforms the current state to a new state.
G
- get(String, BiFunction<HttpRequest, String, CompletableFuture<S>>) - Static method in class rsp.routing.RoutingDsl
-
Creates a route which matches a GET request and the provided path with one path parameter.
- get(String, Function<HttpRequest, CompletableFuture<S>>) - Static method in class rsp.routing.RoutingDsl
-
Creates a route which matches a GET request and the provided path.
- get(String, TriFunction<HttpRequest, String, String, CompletableFuture<S>>) - Static method in class rsp.routing.RoutingDsl
-
Creates a route which matches a GET request and the provided path with two path parameters.
- get(Function<HttpRequest, Route<Path, S>>) - Static method in class rsp.routing.RoutingDsl
-
Creates a route which delegates matching of GET requests to the provided path matching sub-routes.
- GET - Enum constant in enum class rsp.server.http.HttpRequest.HttpMethod
- getHeader - Variable in class rsp.server.http.HttpRequest
- getQueryParam - Variable in class rsp.server.http.HttpRequest
- getState() - Method in class rsp.component.Component
H
- h1(String) - Static method in class rsp.html.HtmlDsl
-
A HTML <h1> element of a HTML document.
- h1(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <h1> element of a HTML document.
- h2(String) - Static method in class rsp.html.HtmlDsl
-
A HTML <h2> element of a HTML document.
- h2(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <h2> element of a HTML document.
- h3(String) - Static method in class rsp.html.HtmlDsl
-
A HTML <h3> element of a HTML document.
- h3(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <h3> element of a HTML document.
- h4(String) - Static method in class rsp.html.HtmlDsl
-
A HTML <h4> element of a HTML document.
- h4(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <h4> element of a HTML document
- h5(String) - Static method in class rsp.html.HtmlDsl
-
A HTML <h5> element of a HTML document.
- h5(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <h5> element of a HTML document.
- h6(String) - Static method in class rsp.html.HtmlDsl
-
A HTML <h6> element of a HTML document.
- h6(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <h6> element of a HTML document.
- handler - Variable in class rsp.html.EventDefinition
-
The event's handler.
- hashCode() - Method in class rsp.html.ElementRefDefinition.KeyRef
- hashCode() - Method in class rsp.util.data.Tuple2
- hashCode() - Method in class rsp.util.json.JsonDataType.Array
- hashCode() - Method in class rsp.util.json.JsonDataType.Boolean
- hashCode() - Method in class rsp.util.json.JsonDataType.Number
- hashCode() - Method in class rsp.util.json.JsonDataType.Object
- hashCode() - Method in class rsp.util.json.JsonDataType.String
- head(HtmlDsl.HeadType, SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <head> element of a HTML document, has not to be upgraded with the script element establishing a WebSocket connection to the server after the browser loads the page.
- head(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <head> element of a HTML document.
- HEAD - Enum constant in enum class rsp.server.http.HttpRequest.HttpMethod
- header(String) - Method in class rsp.server.http.HttpRequest
-
Get the request's header by name.
- headers - Variable in class rsp.server.http.HttpResponse
- heartbeatIntervalMs - Variable in class rsp.AppConfig
-
The rate of heartbeat messages from a browser to server.
- heartbeatIntervalMs(int) - Method in class rsp.AppConfig
-
Creates a new copy of the configuration with a provided heartbeat interval.
- html(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <html> element, the root element of a HTML document.
- HtmlDocumentDefinition - Class in rsp.html
-
A definition of an HTML document.
- HtmlDocumentDefinition(int, Map<String, String>, SegmentDefinition...) - Constructor for class rsp.html.HtmlDocumentDefinition
- HtmlDsl - Class in rsp.html
-
HTML tags definitions domain-specific language and related util functions.
- HtmlDsl() - Constructor for class rsp.html.HtmlDsl
- HtmlDsl.HeadType - Enum Class in rsp.html
- HttpRequest - Class in rsp.server.http
-
Represents an HTTP request.
- HttpRequest(HttpRequest.HttpMethod, URI, String, Path) - Constructor for class rsp.server.http.HttpRequest
-
Creates a new instance of a HTTP request.
- HttpRequest(HttpRequest.HttpMethod, URI, String, Path, Function<String, Optional<String>>, Function<String, Optional<String>>) - Constructor for class rsp.server.http.HttpRequest
-
Creates a new instance of an HTTP request.
- HttpRequest.HttpMethod - Enum Class in rsp.server.http
-
HTTP verbs.
- HttpRequestLookup - Class in rsp.server.http
- HttpRequestLookup(HttpRequest) - Constructor for class rsp.server.http.HttpRequestLookup
- HttpRequestMatchFunction<S> - Class in rsp.routing
- HttpRequestMatchFunction(PathPattern, TriFunction<HttpRequest, String, String, CompletableFuture<S>>) - Constructor for class rsp.routing.HttpRequestMatchFunction
- HttpResponse - Class in rsp.server.http
- HttpResponse(int, List<Tuple2<String, String>>, InputStream) - Constructor for class rsp.server.http.HttpResponse
- HttpResponse(int, List<Tuple2<String, String>>, String) - Constructor for class rsp.server.http.HttpResponse
- HttpStatusCodes - Interface in rsp.server.http
I
- input(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <input> element of a HTML document.
- INSTANCE - Static variable in class rsp.util.json.JsonDataType.Null
- isFractional() - Method in class rsp.util.json.JsonDataType.Number
- isProperty - Variable in class rsp.html.AttributeDefinition
-
Determines if this attribute is an HTML tag's property.
- items - Variable in class rsp.html.SequenceDefinition
- iterate(Iterator<? extends T>) - Static method in class rsp.util.StreamUtils
J
- JettyServer<S> - Class in rsp.jetty
-
An embedded server for an RSP application, Jetty provides a servlet container and a JSR 356 WebSockets API implementation.
- JettyServer(int, String, App<S>) - Constructor for class rsp.jetty.JettyServer
-
Creates a Jetty web server instance for hosting an RSP application.
- JettyServer(int, String, App<S>, Optional<StaticResources>, Optional<SslConfiguration>, int) - Constructor for class rsp.jetty.JettyServer
-
Creates a Jetty web server instance for hosting an RSP application.
- JettyServer(int, String, App<S>, StaticResources) - Constructor for class rsp.jetty.JettyServer
-
Creates a Jetty web server instance for hosting an RSP application.
- JettyServer(int, String, App<S>, StaticResources, SslConfiguration) - Constructor for class rsp.jetty.JettyServer
-
Creates a Jetty web server instance for hosting an RSP application.
- join() - Method in class rsp.jetty.JettyServer
-
Blocks the current thread while the server's threads are running.
- JsCompiler - Class in rsp.util
-
The Closure Compiler runner.
- JsCompiler() - Constructor for class rsp.util.JsCompiler
- JsonDataType - Interface in rsp.util.json
-
A representation of the JSON data types.
- JsonDataType.Array - Class in rsp.util.json
-
A JSON array, an ordered list of values.
- JsonDataType.Boolean - Class in rsp.util.json
-
A boolean JSON data type.
- JsonDataType.JsonException - Exception in rsp.util.json
- JsonDataType.Null - Class in rsp.util.json
-
The JSON null type.
- JsonDataType.Number - Class in rsp.util.json
-
A numeric JSON data type.
- JsonDataType.Object - Class in rsp.util.json
-
A JSON object, a collection of name/value pairs.
- JsonDataType.String - Class in rsp.util.json
-
A string JSON data type.
- JsonException() - Constructor for exception rsp.util.json.JsonDataType.JsonException
- JsonException(String) - Constructor for exception rsp.util.json.JsonDataType.JsonException
- JsonException(String, Throwable) - Constructor for exception rsp.util.json.JsonDataType.JsonException
- JsonException(String, Throwable, boolean, boolean) - Constructor for exception rsp.util.json.JsonDataType.JsonException
- JsonException(Throwable) - Constructor for exception rsp.util.json.JsonDataType.JsonException
- JsonSimpleUtils - Class in rsp.util.json
-
json-simple related.
- JsonSimpleUtils() - Constructor for class rsp.util.json.JsonSimpleUtils
- JsonUtils - Class in rsp.util.json
- JsonUtils() - Constructor for class rsp.util.json.JsonUtils
K
- KeyRef(ElementRefDefinition, K) - Constructor for class rsp.html.ElementRefDefinition.KeyRef
- keys() - Method in class rsp.util.json.JsonDataType.Object
L
- label(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <label> element of a HTML document.
- left(L) - Static method in class rsp.util.data.Either
- li(String) - Static method in class rsp.html.HtmlDsl
-
A HTML <li> element of a HTML document.
- li(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <li> element of a HTML document.
- lifeCycleEventsListener - Variable in class rsp.App
-
An implementation of the lifecycle events listener.
- link(AttributeDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <link> element of a HTML document.
- listenEvents(List<Event>) - Method in class rsp.server.protocol.RemotePageMessageEncoder
- listenEvents(RemoteOut) - Method in class rsp.component.Component
- locale() - Method in interface rsp.i18n.LocaleSupply
- LocaleSupply - Interface in rsp.i18n
- lookup(Class<T>) - Method in class rsp.server.http.HttpRequestLookup
- lookup(Class<T>) - Method in interface rsp.util.Lookup
- Lookup - Interface in rsp.util
M
- main(String[]) - Static method in class rsp.util.JsCompiler
- map(Function<L, LL>, Function<R, RR>) - Method in class rsp.util.data.Either
- mapWithIndex(Stream<? extends T>, BiFunction<Integer, ? super T, ? extends R>) - Static method in class rsp.util.StreamUtils
-
Returns a stream consisting of the results of applying the given two-arguments function to the elements of this stream.
- match(Predicate<T>, Function<T, CompletableFuture<S>>) - Static method in class rsp.routing.RoutingDsl
- match(Path) - Method in class rsp.routing.PathPattern
- meta(AttributeDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <meta> element of a HTML document.
- method - Variable in class rsp.server.http.HttpRequest
- modifier - Variable in class rsp.html.EventDefinition
-
Defines how multiple events to be handled in a given period of time.
- modifyDom(List<DefaultDomChangesContext.DomChange>) - Method in class rsp.server.protocol.RemotePageMessageEncoder
- MOVED_TEMPORARILY_STATUS_CODE - Static variable in interface rsp.server.http.HttpStatusCodes
N
- name - Variable in class rsp.html.AttributeDefinition
-
The attribute's name.
- name - Variable in class rsp.html.StyleDefinition
-
The style's name.
- name - Variable in class rsp.html.TagDefinition
- NewState<S> - Interface in rsp.stateview
- NewState.Default<T> - Class in rsp.stateview
- newString() - Method in class rsp.util.RandomString
- ns - Variable in class rsp.html.TagDefinition
- Number(byte) - Constructor for class rsp.util.json.JsonDataType.Number
- Number(double) - Constructor for class rsp.util.json.JsonDataType.Number
- Number(float) - Constructor for class rsp.util.json.JsonDataType.Number
- Number(int) - Constructor for class rsp.util.json.JsonDataType.Number
- Number(long) - Constructor for class rsp.util.json.JsonDataType.Number
- Number(short) - Constructor for class rsp.util.json.JsonDataType.Number
O
- Object() - Constructor for class rsp.util.json.JsonDataType.Object
- of(String) - Static method in class rsp.routing.PathPattern
-
Creates a new instance of a path pattern from a string.
- of(String) - Static method in interface rsp.util.json.JsonDataType
-
Creates a new instance of JsonDataType by parsing a string.
- of(CompletableFuture<? extends SegmentDefinition>) - Static method in class rsp.html.HtmlDsl
-
Inserts a definition which is a result of a
CompletableFuturecompletion. - of(Supplier<SegmentDefinition>) - Static method in class rsp.html.HtmlDsl
-
Inserts a definition which is a result of some code execution.
- of(Map<String, JsonDataType>) - Static method in class rsp.util.json.JsonDataType.Object
- of(Stream<SegmentDefinition>) - Static method in class rsp.html.HtmlDsl
-
Inserts a zero or more definitions provided as a stream.
- of(S, T) - Static method in class rsp.util.data.Tuple2
-
Creates a new instance of a tuple.
- OK_STATUS_CODE - Static variable in interface rsp.server.http.HttpStatusCodes
- ol(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <ol> element of a HTML document.
- on(String, boolean, Consumer<EventContext>) - Static method in class rsp.html.HtmlDsl
-
A DOM event handler definition.
- on(String, boolean, Consumer<EventContext>) - Method in class rsp.html.WindowRef
-
Registers an listener on a window object event.
- on(String, Consumer<EventContext>) - Static method in class rsp.html.HtmlDsl
-
A DOM event handler definition.
- on(String, Consumer<EventContext>) - Method in class rsp.html.WindowRef
-
Registers an listener on a window object event with the 'prevent-default' property set to true
- on(Consumer<L>, Consumer<R>) - Method in class rsp.util.data.Either
- OPTIONS - Enum constant in enum class rsp.server.http.HttpRequest.HttpMethod
P
- p(String) - Static method in class rsp.html.HtmlDsl
-
A HTML <p> element of a HTML document.
- p(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <p> element of a HTML document.
- pageLifeCycle(PageLifeCycle<S>) - Method in class rsp.App
-
Sets a listener for the app pages lifecycle events.
- pagesStorage - Variable in class rsp.App
- paramsIndexes - Variable in class rsp.routing.PathPattern
- parse(String) - Static method in class rsp.util.json.JsonSimpleUtils
- PATCH - Enum constant in enum class rsp.server.http.HttpRequest.HttpMethod
- path - Variable in class rsp.server.http.HttpRequest
- path() - Method in class rsp.server.http.HttpRequestLookup
- path(String, CompletableFuture<S>) - Static method in class rsp.routing.RoutingDsl
-
Creates a path-specific route.
- path(String, BiFunction<String, String, CompletableFuture<S>>) - Static method in class rsp.routing.RoutingDsl
-
Creates a path-specific route with two matching path parameters.
- path(String, Function<String, CompletableFuture<S>>) - Static method in class rsp.routing.RoutingDsl
-
Creates a path-specific route with one matching path parameter.
- PathMatchFunction<S> - Class in rsp.routing
- PathMatchFunction(PathPattern, BiFunction<String, String, CompletableFuture<S>>) - Constructor for class rsp.routing.PathMatchFunction
- PathPattern - Class in rsp.routing
-
Represents a path matching pattern.
- patternSegments - Variable in class rsp.routing.PathPattern
- PLAIN - Enum constant in enum class rsp.html.HtmlDsl.HeadType
- PlainTagDefinition - Class in rsp.html
-
A definition of an XML tag.
- PlainTagDefinition(XmlNs, String, SegmentDefinition...) - Constructor for class rsp.html.PlainTagDefinition
-
Creates a new instance of an XML tag's definition.
- post(String, BiFunction<String, HttpRequest, CompletableFuture<S>>) - Static method in class rsp.routing.RoutingDsl
-
Creates a route which matches a GET request and the provided path with two path parameters.
- post(String, Function<HttpRequest, CompletableFuture<S>>) - Static method in class rsp.routing.RoutingDsl
-
Creates a route which matches a POST request and the provided path.
- post(String, TriFunction<HttpRequest, String, String, CompletableFuture<S>>) - Static method in class rsp.routing.RoutingDsl
-
Creates a route which matches a GET request and the provided path with two path parameters.
- POST - Enum constant in enum class rsp.server.http.HttpRequest.HttpMethod
- PREVENT_DEFAULT_DEFAULT_VALUE - Static variable in class rsp.html.EventDefinition
-
Is used when prevent default behaviour is not explicitly specified for an event.
- preventDefault - Variable in class rsp.html.EventDefinition
-
if true, then Event.preventDefault() JavaScript method is called on the event object on the client side before sending the notification to the server, if false Event.preventDefault() is not called.
- prop(String, String) - Static method in class rsp.html.HtmlDsl
-
An element's property attribute.
- pushHistory(String) - Method in class rsp.server.protocol.RemotePageMessageEncoder
- put(String, JsonDataType) - Method in class rsp.util.json.JsonDataType.Object
- PUT - Enum constant in enum class rsp.server.http.HttpRequest.HttpMethod
Q
- queryParam(String) - Method in class rsp.server.http.HttpRequest
-
Gets the request's query parameter by name.
R
- RandomString - Class in rsp.util
- RandomString(int) - Constructor for class rsp.util.RandomString
- recursiveEvents() - Method in class rsp.component.Component
- recursiveRefs() - Method in class rsp.component.Component
- redirect(String) - Method in class rsp.html.HtmlDocumentDefinition
-
Sets redirect status code and the Location header.
- ref() - Method in class rsp.html.WindowRef
- Ref - Interface in rsp.ref
-
A Java object that is not defined by its fields, but rather by its identity.
- RemotePageMessageDecoder - Class in rsp.server.protocol
-
The implementation of the text-based protocol is based on the protocol of the Korolev project by Aleksey Fomkin.
- RemotePageMessageDecoder(RemoteIn) - Constructor for class rsp.server.protocol.RemotePageMessageDecoder
- RemotePageMessageEncoder - Class in rsp.server.protocol
-
The implementation of the text-based protocol is based on the protocol of the Korolev project by Aleksey Fomkin.
- RemotePageMessageEncoder(Consumer<String>) - Constructor for class rsp.server.protocol.RemotePageMessageEncoder
- render(RenderContext) - Method in class rsp.component.ComponentDefinition
- render(RenderContext) - Method in class rsp.html.AttributeDefinition
- render(RenderContext) - Method in class rsp.html.ElementRefDefinition.KeyRef
- render(RenderContext) - Method in class rsp.html.ElementRefDefinition
- render(RenderContext) - Method in class rsp.html.EventDefinition
- render(RenderContext) - Method in class rsp.html.HtmlDocumentDefinition
- render(RenderContext) - Method in class rsp.html.PlainTagDefinition
- render(RenderContext) - Method in interface rsp.html.SegmentDefinition
-
An implementation of this method determines how its definition node is rendered to a virtual DOM tree.
- render(RenderContext) - Method in class rsp.html.SequenceDefinition
- render(RenderContext) - Method in class rsp.html.StyleDefinition
- render(RenderContext) - Method in class rsp.html.TagDefinition
- render(RenderContext) - Method in class rsp.html.TextDefinition
- resolveAndSet() - Method in class rsp.component.Component
- resolveState() - Method in class rsp.component.Component
- right(R) - Static method in class rsp.util.data.Either
- rootComponent - Variable in class rsp.App
-
The root of the components tree.
- route(T) - Method in class rsp.routing.Routing
- Route<T,
S> - Interface in rsp.routing -
Represents a route.
- routing(Route<T, S>, S) - Static method in class rsp.routing.RoutingDsl
-
Creates a routing.
- Routing<T,
S> - Class in rsp.routing -
Defines a routing.
- Routing(Route<T, S>) - Constructor for class rsp.routing.Routing
- Routing(Route<T, S>, S) - Constructor for class rsp.routing.Routing
- RoutingDsl - Class in rsp.routing
-
Contains routing DSL.
- RoutingDsl() - Constructor for class rsp.routing.RoutingDsl
- rsp - package rsp
-
Provides application-related and other essential APIs.
- rsp.component - package rsp.component
- rsp.html - package rsp.html
-
Provides the RSP markup definition's domain specific language.
- rsp.i18n - package rsp.i18n
- rsp.jetty - package rsp.jetty
-
Provides the Jetty web server.
- rsp.ref - package rsp.ref
-
Defines references API.
- rsp.routing - package rsp.routing
-
Defines routing public API.
- rsp.server.http - package rsp.server.http
-
HTTP(s) request and response related.
- rsp.server.protocol - package rsp.server.protocol
-
A bi-directional messages exchange protocol.
- rsp.stateview - package rsp.stateview
-
This package defines state management classes and interfaces.
- rsp.util - package rsp.util
-
General utils.
- rsp.util.data - package rsp.util.data
-
Defines data structures.
- rsp.util.json - package rsp.util.json
-
Provides JSON related utils.
S
- schedulerThreadPoolSize - Variable in class rsp.AppConfig
-
The application's scheduler thread pool size.
- SegmentDefinition - Interface in rsp.html
-
Represents a building block in the domain-specific language definition.
- sequence(List<CompletableFuture<T>>) - Static method in class rsp.util.StreamUtils
-
Converts a list of CompletableFuture to a CompletableFuture of a list
- SequenceDefinition - Class in rsp.html
-
A sequence of definitions.
- SequenceDefinition(SegmentDefinition[]) - Constructor for class rsp.html.SequenceDefinition
-
Creates a definition of a sequence of nodes definitions.
- set(S) - Method in class rsp.component.Component
- set(S) - Method in interface rsp.stateview.NewState
- set(T) - Method in class rsp.stateview.NewState.Default
- setHref(String) - Method in class rsp.server.protocol.RemotePageMessageEncoder
- setPath(Path) - Method in class rsp.server.http.HttpRequestLookup
- setRenderNum(int) - Method in class rsp.server.protocol.RemotePageMessageEncoder
- setRootTagIfNotSet(Tag) - Method in class rsp.component.Component
- SPA - Enum constant in enum class rsp.html.HtmlDsl.HeadType
- span(String) - Static method in class rsp.html.HtmlDsl
-
A HTML <span> element of a HTML document.
- span(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <span> element of a HTML document.
- stackTraceToString(Throwable) - Static method in class rsp.util.ExceptionsUtils
-
Reads an exception's stack trace as a
String. - start() - Method in class rsp.jetty.JettyServer
-
Starts the server.
- statelessComponent(S, View<S>) - Static method in class rsp.component.ComponentDsl
- status - Variable in class rsp.server.http.HttpResponse
- statusCode(int) - Method in class rsp.html.HtmlDocumentDefinition
-
Sets the HTTP status code to be rendered in the response.
- stop() - Method in class rsp.jetty.JettyServer
-
Stops the server.
- StreamUtils - Class in rsp.util
- StreamUtils() - Constructor for class rsp.util.StreamUtils
- String(String) - Constructor for class rsp.util.json.JsonDataType.String
-
Creates a new instance of a string JSON.
- style(String, String) - Static method in class rsp.html.HtmlDsl
-
An element's inline style.
- StyleDefinition - Class in rsp.html
-
A definition of a HTML element's inline style.
- StyleDefinition(String, String) - Constructor for class rsp.html.StyleDefinition
-
Creates a new instance of a style definition.
T
- t(String) - Method in interface rsp.i18n.Translate
- table(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <table> element of a HTML document.
- tag(String, SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
An arbitrary HTML element.
- TagDefinition - Class in rsp.html
-
A definition of an XML tag.
- TagDefinition(XmlNs, String, SegmentDefinition...) - Constructor for class rsp.html.TagDefinition
-
Creates a new instance of an XML tag's definition.
- tbody(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <tbody> element of a HTML document.
- td(String) - Static method in class rsp.html.HtmlDsl
-
A HTML <td> element of a HTML document.
- td(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <td> element of a HTML document.
- text(Object) - Static method in class rsp.html.HtmlDsl
-
An element's text content, for a input class other than q
String. - text(String) - Static method in class rsp.html.HtmlDsl
-
An element's text content.
- TextDefinition - Class in rsp.html
-
A definition of a HTML tag text content.
- TextDefinition(String) - Constructor for class rsp.html.TextDefinition
-
Creates a new instance of a text definition.
- th(String) - Static method in class rsp.html.HtmlDsl
-
A HTML <th> element of a HTML document.
- th(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <th> element of a HTML document.
- thead(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <thead> element of a HTML document.
- throttle(int) - Method in class rsp.html.EventDefinition
-
Creates a new modified instance with the throttle event filter enabled.
- TimerRef - Interface in rsp.ref
- TimerRefDefinition - Class in rsp.html
-
The default implementation of a timer's reference.
- TimerRefDefinition() - Constructor for class rsp.html.TimerRefDefinition
- title(String) - Static method in class rsp.html.HtmlDsl
-
A HTML <title> element of a HTML document.
- toInitialStateFunction() - Method in class rsp.routing.Routing
- toString() - Method in class rsp.util.data.Tuple2
- toString() - Method in class rsp.util.json.JsonDataType.Array
- toString() - Method in class rsp.util.json.JsonDataType.Boolean
- toString() - Method in class rsp.util.json.JsonDataType.Null
- toString() - Method in class rsp.util.json.JsonDataType.Number
- toString() - Method in class rsp.util.json.JsonDataType.Object
- toString() - Method in class rsp.util.json.JsonDataType.String
- toStringValue() - Method in class rsp.util.json.JsonDataType.String
- toStringValue() - Method in interface rsp.util.json.JsonDataType
-
Gives a string representation to be used in a JSON data field, quotes if needed.
- tr(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <tr> element of a HTML document.
- TRACE - Enum constant in enum class rsp.server.http.HttpRequest.HttpMethod
- Translate - Interface in rsp.i18n
- TriFunction<T1,
T2, T3, S> - Interface in rsp.util - Tuple2<S,
T> - Class in rsp.util.data -
A bag of two elements of parametrized types.
- Tuple2(S, T) - Constructor for class rsp.util.data.Tuple2
-
Creates a new instance of a tuple.
U
- ul(SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
A HTML <ul> element of a HTML document.
- unescape(String) - Static method in class rsp.util.json.JsonUtils
- uri - Variable in class rsp.server.http.HttpRequest
- url - Variable in class rsp.server.http.HttpRequest
V
- value - Variable in class rsp.html.AttributeDefinition
-
The attribute's value.
- value - Variable in class rsp.html.StyleDefinition
-
The style's value.
- value() - Method in class rsp.util.json.JsonDataType.Boolean
- value() - Method in class rsp.util.json.JsonDataType.Number
- value() - Method in class rsp.util.json.JsonDataType.String
- value(String) - Method in class rsp.util.json.JsonDataType.Object
- valueOf(String) - Static method in enum class rsp.html.HtmlDsl.HeadType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class rsp.server.http.HttpRequest.HttpMethod
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class rsp.html.HtmlDsl.HeadType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class rsp.server.http.HttpRequest.HttpMethod
-
Returns an array containing the constants of this enum class, in the order they are declared.
- View<S> - Interface in rsp.stateview
-
A function to create a state's view representation.
W
- webComponent(Routing<HttpRequest, S>, BiFunction<S, Path, Path>, ComponentView<S>) - Static method in class rsp.component.ComponentDsl
- webComponent(Routing<HttpRequest, S>, ComponentView<S>) - Static method in class rsp.component.ComponentDsl
- when(boolean, Supplier<SegmentDefinition>) - Static method in class rsp.html.HtmlDsl
-
A lazy form of conditional function.
- when(boolean, SegmentDefinition) - Static method in class rsp.html.HtmlDsl
-
Inserts a document part definition provided as an argument if condition is true, otherwise inserts an empty definition.
- whenRouteNotFound(Class<? super S>, S) - Method in interface rsp.routing.Route
- whenRouteNotFound(Route<T, S>, S) - Static method in class rsp.routing.RoutingDsl
- window() - Static method in class rsp.html.HtmlDsl
-
Provides a definition of a browsers' window object.
- WindowRef - Class in rsp.html
-
A reference to a browser's page window object.
- WindowRef() - Constructor for class rsp.html.WindowRef
- withKey(K) - Method in class rsp.html.ElementRefDefinition
- withPath(Path) - Method in class rsp.server.http.HttpRequest
X
- xmlTag(XmlNs, String, SegmentDefinition...) - Static method in class rsp.html.HtmlDsl
-
An XML tag.
Z
- zip(Stream<L>, Stream<R>, BiFunction<L, R, T>) - Static method in class rsp.util.StreamUtils
-
Zips two streams.
- zipWithIndex(Stream<? extends T>) - Static method in class rsp.util.StreamUtils
-
Zips the specified stream with its indices.
_
- _1 - Variable in class rsp.util.data.Tuple2
-
The first element.
- _2 - Variable in class rsp.util.data.Tuple2
-
The second element.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form