package servlet
- Source
- package.scala
- Alphabetic
- By Inheritance
- servlet
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
abstract
class
AbstractAsyncListener
extends AsyncListener
- Attributes
- protected
-
final
case class
BlockingServletIo
(chunkSize: Int) extends ServletIo with Product with Serializable
Use standard blocking reads and writes.
Use standard blocking reads and writes.
This is more CPU efficient per request than NonBlockingServletIo, but is likely to require a larger request thread pool for the same load.
-
type
BodyWriter = (Response) ⇒ Task[Unit]
- Attributes
- protected
-
trait
DefaultFilter
extends Filter
Mainly a convenience for our servlet examples, but, hey, why not.
- class Http4sServlet extends HttpServlet
-
final
case class
NonBlockingServletIo
(chunkSize: Int) extends ServletIo with Product with Serializable
Use non-blocking reads and writes.
Use non-blocking reads and writes. Available only on containers that support Servlet 3.1.
This can support more concurrent connections on a smaller request thread pool than BlockingServletIo, but consumes more CPU per request. It is also known to cause IllegalStateExceptions in the logs under high load up through at least Tomcat 8.0.15. These appear to be harmless, but are operationally annoying.
- final case class ServletApiVersion (major: Int, minor: Int) extends Ordered[ServletApiVersion] with Product with Serializable
- trait ServletContainer extends ServerBuilder with AsyncTimeoutSupport
-
sealed
trait
ServletIo
extends AnyRef
Determines the mode of I/O used for reading request bodies and writing response bodies.
Value Members
-
val
DefaultChunkSize: Int
- Attributes
- protected
-
val
NullBodyWriter: BodyWriter
- Attributes
- protected
- object ServletApiVersion extends Serializable
- object ServletContainer