Uses of Interface
io.avaje.jex.spi.SpiContext
| Package | Description |
|---|---|
| io.avaje.jex.spi |
-
Uses of SpiContext in io.avaje.jex.spi
Methods in io.avaje.jex.spi with parameters of type SpiContext Modifier and Type Method Description voidSpiRoutes. after(String pathInfo, SpiContext ctx)Execute all appropriate after filters for the given request URI.voidSpiRoutes. before(String pathInfo, SpiContext ctx)Execute all appropriate before filters for the given request URI.<T> TJsonService. jsonRead(Class<T> type, SpiContext ctx)Read the request body as a bean and return the bean.voidJsonService. jsonWrite(Object bean, SpiContext ctx)Write the bean as JSON response content.<E> voidJsonService. jsonWriteStream(Iterator<E> stream, SpiContext ctx)Write the beans as x-json-stream JSON with new line delimiter.