package filter
- Alphabetic
- Public
- All
Type Members
- trait InittedFilter extends Filter
-
trait
Plan extends InittedFilter
Servlet filter that wraps an Intent and adheres to standard filter chain behaviour.
- class Planify extends Plan
- class RequestBinding extends HttpRequest[HttpServletRequest]
- class ResponseBinding extends HttpResponse[HttpServletResponse]
-
case class
WritableServletResponse(res: HttpResponse[HttpServletResponse]) extends HttpServletResponseWrapper with Product with Serializable
The servlet API states that, for a given response, either the getOutputStream or getWriter method may be called, but not both:
The servlet API states that, for a given response, either the getOutputStream or getWriter method may be called, but not both:
http://docs.oracle.com/javaee/6/api/javax/servlet/ServletResponse.html#getOutputStream() http://docs.oracle.com/javaee/6/api/javax/servlet/ServletResponse.html#getWriter()
Unfiltered response bindings are based on a single outputStream, and support filtering it (unfiltered.response.ResponseFilter) through response function composition. Writing to the underlying response output stream directly would bypass any filters in place, and writing to its writer will produce an InvalidStateException.
If working with software that requires a HttpServletResponse and uses its Writer interface, this wrapper supplies a writer that works with any stream filters in the response function chain.