| Modifier and Type | Field and Description |
|---|---|
| public static final Predicate |
| Modifier and Type | Method and Description |
|---|---|
| public HttpServerRoutes | Returns: thisHttpServerRoutesa HttpRouteHandlerMetadata comparator. comparator)Use the provided |
| public default HttpServerRoutes | Returns: thisHttpServerRoutesThe DELETE path used by clients. path, BiFunction<? super HttpServerRequest, ? super HttpServerResponse, ? extends Publisher<Void>> an I/O handler to invoke for the given condition handler)Listens for HTTP DELETE on the passed path to be used as a routing condition. |
| public default HttpServerRoutes | Returns: thisHttpServerRoutesThe GET path used by clients uri, Path the root prefix to serve from the file system, e.g.
"/Users/me/resources" directory)Listens for HTTP GET on the passed path to be used as a routing condition. |
| public HttpServerRoutes | Returns: thisHttpServerRoutesThe GET path used by clients uri, Path the root prefix to serve from the file system, e.g.
"/Users/me/resources" directory, Function<HttpServerResponse, HttpServerResponse> a pre response processor interceptor)Listens for HTTP GET on the passed path to be used as a routing condition.The
content of the provided |
| public default HttpServerRoutes | Returns: thisHttpServerRoutesThe GET path used by clients uri, Path the resource Path to serve path)Listens for HTTP GET on the passed path to be used as a routing condition. |
| public default HttpServerRoutes | Returns: thisHttpServerRoutesThe GET path used by clients uri, String the resource path to serve path)Listens for HTTP GET on the passed path to be used as a routing condition. |
| public default HttpServerRoutes | Returns: thisHttpServerRoutesThe uri, Path HttpPredicate to use to trigger the route, pattern matching
and capture are supportedthe Path to the file to serve path, Function<HttpServerResponse, HttpServerResponse> a channel pre-intercepting handler e.g. for content type header interceptor)Listens for HTTP GET on the passed path to be used as a routing condition. |
| public default HttpServerRoutes | Returns: thisHttpServerRoutesThe GET path used by clients path, BiFunction<? super HttpServerRequest, ? super HttpServerResponse, ? extends Publisher<Void>> an I/O handler to invoke for the given condition handler)Listens for HTTP GET on the passed path to be used as a routing condition. |
| public default HttpServerRoutes | Returns: thisHttpServerRoutesThe HEAD path used by clients path, BiFunction<? super HttpServerRequest, ? super HttpServerResponse, ? extends Publisher<Void>> an I/O handler to invoke for the given condition handler)Listens for HTTP HEAD on the passed path to be used as a routing condition. |
| public default HttpServerRoutes | Returns: thisHttpServerRoutesan I/O handler to invoke on index/root request handler)This route will be invoked when GET "/path" or "/path/" like uri are requested. |
| public static HttpServerRoutes | Returns: a new default routing registryHttpServerRoutesReturns a new default routing registry |
| public HttpServerRoutes | Returns: thisHttpServerRoutesRemoves any previously applied |
| public default HttpServerRoutes | Returns: thisHttpServerRoutesThe OPTIONS path used by clients path, BiFunction<? super HttpServerRequest, ? super HttpServerResponse, ? extends Publisher<Void>> an I/O handler to invoke for the given condition handler)Listens for HTTP OPTIONS on the passed path to be used as a routing condition. |
| public default HttpServerRoutes | Returns: thisHttpServerRoutesThe POST path used by clients path, BiFunction<? super HttpServerRequest, ? super HttpServerResponse, ? extends Publisher<Void>> an I/O handler to invoke for the given condition handler)Listens for HTTP POST on the passed path to be used as a routing condition. |
| public default HttpServerRoutes | Returns: thisHttpServerRoutesThe PUT path used by clients path, BiFunction<? super HttpServerRequest, ? super HttpServerResponse, ? extends Publisher<Void>> an I/O handler to invoke for the given condition handler)Listens for HTTP PUT on the passed path to be used as a routing condition. |
| public HttpServerRoutes | Returns: thisHttpServerRoutesa predicate given each http route handler condition)HttpRouteHandlerMetadataA generic route predicate that if matched already register I/O handler use
|
| public HttpServerRoutes | Returns: thisHttpServerRoutesa predicate given each inbound request condition, BiFunction<? super HttpServerRequest, ? super HttpServerResponse, ? extends Publisher<Void>> the I/O handler to invoke on match handler)A generic route predicate that if matched invoke the passed I/O handler. |
| public default HttpServerRoutes | Returns: thisHttpServerRoutesThe websocket path used by clients path, BiFunction<? super WebsocketInbound, ? super WebsocketOutbound, ? extends Publisher<Void>> an I/O handler to invoke for the given condition handler)Listens for websocket on the passed path to be used as a routing condition. |
| public default HttpServerRoutes | Returns: thisHttpServerRoutesThe websocket path used by clients path, BiFunction<? super WebsocketInbound, ? super WebsocketOutbound, ? extends Publisher<Void>> an I/O handler to invoke for the given condition handler, WebsocketServerSpec WebsocketServerSpec for websocket configurationListens for websocket on the passed path to be used as a routing condition. |
| public default HttpServerRoutes | Returns: thisHttpServerRoutesa predicate given each inbound request condition, BiFunction<? super WebsocketInbound, ? super WebsocketOutbound, ? extends Publisher<Void>> an I/O handler to invoke for the given condition handler, WebsocketServerSpec WebsocketServerSpec for websocket configurationListens for websocket with the given route predicate to invoke the matching handler. |
| INDEX_PREDICATE | back to summary |
|---|---|
| public static final Predicate<HttpServerRequest> INDEX_PREDICATE | |
| comparator | back to summary |
|---|---|
| public HttpServerRoutes comparator(Comparator<HttpRouteHandlerMetadata> comparator) Use the provided
| |
| delete | back to summary |
|---|---|
| public default HttpServerRoutes delete(String path, BiFunction<? super HttpServerRequest, ? super HttpServerResponse, ? extends Publisher<Void>> handler) Listens for HTTP DELETE on the passed path to be used as a routing condition. Incoming connections will query the internal registry to invoke the matching handler. Additional regex matching is available, e.g. "/test/{param}".
Params are resolved using
| |
| directory | back to summary |
|---|---|
| public default HttpServerRoutes directory(String uri, Path directory) Listens for HTTP GET on the passed path to be used as a routing condition. The
content of the provided Additional regex matching is available, e.g. "/test/{param}". Params are resolved
using
| |
| directory | back to summary |
|---|---|
| public HttpServerRoutes directory(String uri, Path directory, Function<HttpServerResponse, HttpServerResponse> interceptor) Listens for HTTP GET on the passed path to be used as a routing condition.The
content of the provided Additional regex matching is available, e.g. "/test/{param}". Params are resolved
using
| |
| file | back to summary |
|---|---|
| public default HttpServerRoutes file(String uri, Path path) Listens for HTTP GET on the passed path to be used as a routing condition. The
provided Additional regex matching is available, e.g. "/test/{param}". Params are resolved
using
| |
| file | back to summary |
|---|---|
| public default HttpServerRoutes file(String uri, String path) Listens for HTTP GET on the passed path to be used as a routing condition. The file at provided path will be served. Additional regex matching is available, e.g. "/test/{param}". Params are resolved
using
| |
| file | back to summary |
|---|---|
| public default HttpServerRoutes file(Predicate<HttpServerRequest> uri, Path path, Function<HttpServerResponse, HttpServerResponse> interceptor) Listens for HTTP GET on the passed path to be used as a routing condition. The
file on the provided Additional regex matching is available e.g.
"/test/{param}". Params are resolved using
| |
| get | back to summary |
|---|---|
| public default HttpServerRoutes get(String path, BiFunction<? super HttpServerRequest, ? super HttpServerResponse, ? extends Publisher<Void>> handler) Listens for HTTP GET on the passed path to be used as a routing condition. Incoming connections will query the internal registry to invoke the matching handler. Additional regex matching is available e.g.
"/test/{param}". Params are resolved using
| |
| head | back to summary |
|---|---|
| public default HttpServerRoutes head(String path, BiFunction<? super HttpServerRequest, ? super HttpServerResponse, ? extends Publisher<Void>> handler) Listens for HTTP HEAD on the passed path to be used as a routing condition. Incoming connections will query the internal registry to invoke the matching handler. Additional regex matching is available e.g.
"/test/{param}". Params are resolved using
| |
| index | back to summary |
|---|---|
| public default HttpServerRoutes index(final BiFunction<? super HttpServerRequest, ? super HttpServerResponse, ? extends Publisher<Void>> handler) This route will be invoked when GET "/path" or "/path/" like uri are requested.
| |
| newRoutes | back to summary |
|---|---|
| public static HttpServerRoutes newRoutes() Returns a new default routing registry
| |
| noComparator | back to summary |
|---|---|
| public HttpServerRoutes noComparator() Removes any previously applied
| |
| options | back to summary |
|---|---|
| public default HttpServerRoutes options(String path, BiFunction<? super HttpServerRequest, ? super HttpServerResponse, ? extends Publisher<Void>> handler) Listens for HTTP OPTIONS on the passed path to be used as a routing condition. Incoming connections will query the internal registry to invoke the matching handler. Additional regex matching is available e.g.
"/test/{param}". Params are resolved using
| |
| post | back to summary |
|---|---|
| public default HttpServerRoutes post(String path, BiFunction<? super HttpServerRequest, ? super HttpServerResponse, ? extends Publisher<Void>> handler) Listens for HTTP POST on the passed path to be used as a routing condition. Incoming connections will query the internal registry to invoke the matching handler. Additional regex matching is available e.g.
"/test/{param}". Params are resolved using
| |
| put | back to summary |
|---|---|
| public default HttpServerRoutes put(String path, BiFunction<? super HttpServerRequest, ? super HttpServerResponse, ? extends Publisher<Void>> handler) Listens for HTTP PUT on the passed path to be used as a routing condition. Incoming connections will query the internal registry to invoke the matching handler. Additional regex matching is available e.g.
"/test/{param}". Params are resolved using
| |
| removeIf | back to summary |
|---|---|
| public HttpServerRoutes removeIf(Predicate<? super HttpRouteHandlerMetadata> condition) A generic route predicate that if matched already register I/O handler use
| |
| route | back to summary |
|---|---|
| public HttpServerRoutes route(Predicate<? super HttpServerRequest> condition, BiFunction<? super HttpServerRequest, ? super HttpServerResponse, ? extends Publisher<Void>> handler) A generic route predicate that if matched invoke the passed I/O handler.
| |
| ws | back to summary |
|---|---|
| public default HttpServerRoutes ws(String path, BiFunction<? super WebsocketInbound, ? super WebsocketOutbound, ? extends Publisher<Void>> handler) Listens for websocket on the passed path to be used as a routing condition. Incoming connections will query the internal registry to invoke the matching handler. Additional regex matching is available e.g. "/test/{param}".
Params are resolved using
| |
| ws | back to summary |
|---|---|
| public default HttpServerRoutes ws(String path, BiFunction<? super WebsocketInbound, ? super WebsocketOutbound, ? extends Publisher<Void>> handler, WebsocketServerSpec configurer) Listens for websocket on the passed path to be used as a routing condition. Incoming connections will query the internal registry to invoke the matching handler. Additional regex matching is available e.g. "/test/{param}".
Params are resolved using
| |
| ws | back to summary |
|---|---|
| public default HttpServerRoutes ws(Predicate<? super HttpServerRequest> condition, BiFunction<? super WebsocketInbound, ? super WebsocketOutbound, ? extends Publisher<Void>> handler, WebsocketServerSpec websocketServerSpec) Listens for websocket with the given route predicate to invoke the matching handler.
| |