Classes | |
| interface | EventStream |
| A long-lived, transport-agnostic handle for pushing Server-Sent Events. More... | |
Public Member Functions | |
| Set< String > | allowedMethods () |
| void | json (int status, Object body) |
| String | method () |
| default void | methodNotAllowed () |
| void | noContent (int status) |
| default void | options () |
| String | path () |
| String | pathParam (String name) |
| Map< String, String > | pathParams () |
| List< String > | queryAll (String name) |
| String | queryFirst (String name) |
| Map< String, List< String > > | queryParams () |
| default EventStream | startEventStream () |
| Starts a Server-Sent Events stream. | |
| void | text (int status, String body) |
Definition at line 33 of file HttpExchange.java.
| Set< String > dev.rafex.ether.http.core.HttpExchange.allowedMethods | ( | ) |
Implemented in dev.rafex.ether.http.jetty12.exchange.JettyHttpExchange.
| void dev.rafex.ether.http.core.HttpExchange.json | ( | int | status, |
| Object | body ) |
Implemented in dev.rafex.ether.http.jetty12.exchange.JettyHttpExchange.
Referenced by methodNotAllowed().
| String dev.rafex.ether.http.core.HttpExchange.method | ( | ) |
Implemented in dev.rafex.ether.http.jetty12.exchange.JettyHttpExchange.
| default void dev.rafex.ether.http.core.HttpExchange.methodNotAllowed | ( | ) |
Implemented in dev.rafex.ether.http.jetty12.exchange.JettyHttpExchange.
Definition at line 57 of file HttpExchange.java.
References json().
Referenced by dev.rafex.ether.http.jetty12.exchange.JettyHttpExchange.methodNotAllowed().
| void dev.rafex.ether.http.core.HttpExchange.noContent | ( | int | status | ) |
Implemented in dev.rafex.ether.http.jetty12.exchange.JettyHttpExchange.
Referenced by options().
| default void dev.rafex.ether.http.core.HttpExchange.options | ( | ) |
Implemented in dev.rafex.ether.http.jetty12.exchange.JettyHttpExchange.
Definition at line 61 of file HttpExchange.java.
References noContent().
Referenced by dev.rafex.ether.http.jetty12.exchange.JettyHttpExchange.options().
| String dev.rafex.ether.http.core.HttpExchange.path | ( | ) |
Implemented in dev.rafex.ether.http.jetty12.exchange.JettyHttpExchange.
| String dev.rafex.ether.http.core.HttpExchange.pathParam | ( | String | name | ) |
Implemented in dev.rafex.ether.http.jetty12.exchange.JettyHttpExchange.
| Map< String, String > dev.rafex.ether.http.core.HttpExchange.pathParams | ( | ) |
Implemented in dev.rafex.ether.http.jetty12.exchange.JettyHttpExchange.
| List< String > dev.rafex.ether.http.core.HttpExchange.queryAll | ( | String | name | ) |
Implemented in dev.rafex.ether.http.jetty12.exchange.JettyHttpExchange.
| String dev.rafex.ether.http.core.HttpExchange.queryFirst | ( | String | name | ) |
Implemented in dev.rafex.ether.http.jetty12.exchange.JettyHttpExchange.
| Map< String, List< String > > dev.rafex.ether.http.core.HttpExchange.queryParams | ( | ) |
Implemented in dev.rafex.ether.http.jetty12.exchange.JettyHttpExchange.
| default EventStream dev.rafex.ether.http.core.HttpExchange.startEventStream | ( | ) |
Starts a Server-Sent Events stream.
Sets the transport's event-stream headers and returns an EventStream for subsequent writes; json, text and noContent must not be called after this.
Default throws — only transports that implement long-lived/chunked writes (e.g. the Jetty 12 transport) support this.
Implemented in dev.rafex.ether.http.jetty12.exchange.JettyHttpExchange.
Definition at line 73 of file HttpExchange.java.
| void dev.rafex.ether.http.core.HttpExchange.text | ( | int | status, |
| String | body ) |
Implemented in dev.rafex.ether.http.jetty12.exchange.JettyHttpExchange.
Referenced by dev.rafex.ether.http.core.HttpExchange.EventStream.comment().