Packages

c

unfiltered.filter

WritableServletResponse

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:

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.

Source
WritableServletResponse.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, HttpServletResponseWrapper, HttpServletResponse, ServletResponseWrapper, ServletResponse, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WritableServletResponse
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HttpServletResponseWrapper
  7. HttpServletResponse
  8. ServletResponseWrapper
  9. ServletResponse
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WritableServletResponse(res: HttpResponse[HttpServletResponse])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addCookie(arg0: javax.servlet.http.Cookie): Unit
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  5. def addDateHeader(arg0: String, arg1: Long): Unit
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  6. def addHeader(arg0: String, arg1: String): Unit
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  7. def addIntHeader(arg0: String, arg1: Int): Unit
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. def containsHeader(arg0: String): Boolean
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  11. def encodeRedirectURL(arg0: String): String
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  12. def encodeRedirectUrl(arg0: String): String
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  13. def encodeURL(arg0: String): String
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  14. def encodeUrl(arg0: String): String
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def flushBuffer(): Unit
    Definition Classes
    ServletResponseWrapper → ServletResponse
    Annotations
    @throws( classOf[java.io.IOException] )
  18. def getBufferSize(): Int
    Definition Classes
    ServletResponseWrapper → ServletResponse
  19. def getCharacterEncoding(): String
    Definition Classes
    ServletResponseWrapper → ServletResponse
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def getContentType(): String
    Definition Classes
    ServletResponseWrapper → ServletResponse
  22. def getHeader(arg0: String): String
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  23. def getHeaderNames(): Collection[String]
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  24. def getHeaders(arg0: String): Collection[String]
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  25. def getLocale(): Locale
    Definition Classes
    ServletResponseWrapper → ServletResponse
  26. def getOutputStream(): ServletOutputStream
    Definition Classes
    ServletResponseWrapper → ServletResponse
    Annotations
    @throws( classOf[java.io.IOException] )
  27. def getResponse(): ServletResponse
    Definition Classes
    ServletResponseWrapper
  28. def getStatus(): Int
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  29. lazy val getWriter: PrintWriter
  30. def isCommitted(): Boolean
    Definition Classes
    ServletResponseWrapper → ServletResponse
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. def isWrapperFor(arg0: Class[_]): Boolean
    Definition Classes
    ServletResponseWrapper
  33. def isWrapperFor(arg0: ServletResponse): Boolean
    Definition Classes
    ServletResponseWrapper
  34. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. val res: HttpResponse[HttpServletResponse]
  38. def reset(): Unit
    Definition Classes
    ServletResponseWrapper → ServletResponse
  39. def resetBuffer(): Unit
    Definition Classes
    ServletResponseWrapper → ServletResponse
  40. def sendError(arg0: Int): Unit
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
    Annotations
    @throws( classOf[java.io.IOException] )
  41. def sendError(arg0: Int, arg1: String): Unit
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
    Annotations
    @throws( classOf[java.io.IOException] )
  42. def sendRedirect(arg0: String): Unit
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
    Annotations
    @throws( classOf[java.io.IOException] )
  43. def setBufferSize(arg0: Int): Unit
    Definition Classes
    ServletResponseWrapper → ServletResponse
  44. def setCharacterEncoding(arg0: String): Unit
    Definition Classes
    ServletResponseWrapper → ServletResponse
  45. def setContentLength(arg0: Int): Unit
    Definition Classes
    ServletResponseWrapper → ServletResponse
  46. def setContentLengthLong(arg0: Long): Unit
    Definition Classes
    ServletResponseWrapper → ServletResponse
  47. def setContentType(arg0: String): Unit
    Definition Classes
    ServletResponseWrapper → ServletResponse
  48. def setDateHeader(arg0: String, arg1: Long): Unit
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  49. def setHeader(arg0: String, arg1: String): Unit
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  50. def setIntHeader(arg0: String, arg1: Int): Unit
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  51. def setLocale(arg0: Locale): Unit
    Definition Classes
    ServletResponseWrapper → ServletResponse
  52. def setResponse(arg0: ServletResponse): Unit
    Definition Classes
    ServletResponseWrapper
  53. def setStatus(arg0: Int, arg1: String): Unit
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  54. def setStatus(arg0: Int): Unit
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  55. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  56. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HttpServletResponseWrapper

Inherited from HttpServletResponse

Inherited from ServletResponseWrapper

Inherited from ServletResponse

Inherited from AnyRef

Inherited from Any

Ungrouped