Class

unfiltered.filter

WritableServletResponse

Related Doc: package filter

Permalink

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])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addCookie(arg0: javax.servlet.http.Cookie): Unit

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  5. def addDateHeader(arg0: String, arg1: Long): Unit

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  6. def addHeader(arg0: String, arg1: String): Unit

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  7. def addIntHeader(arg0: String, arg1: Int): Unit

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def containsHeader(arg0: String): Boolean

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  11. def encodeRedirectURL(arg0: String): String

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  12. def encodeURL(arg0: String): String

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def flushBuffer(): Unit

    Permalink
    Definition Classes
    ServletResponseWrapper → ServletResponse
    Annotations
    @throws( classOf[java.io.IOException] )
  16. def getBufferSize(): Int

    Permalink
    Definition Classes
    ServletResponseWrapper → ServletResponse
  17. def getCharacterEncoding(): String

    Permalink
    Definition Classes
    ServletResponseWrapper → ServletResponse
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def getContentType(): String

    Permalink
    Definition Classes
    ServletResponseWrapper → ServletResponse
  20. def getHeader(arg0: String): String

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  21. def getHeaderNames(): Collection[String]

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  22. def getHeaders(arg0: String): Collection[String]

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  23. def getLocale(): Locale

    Permalink
    Definition Classes
    ServletResponseWrapper → ServletResponse
  24. def getOutputStream(): ServletOutputStream

    Permalink
    Definition Classes
    ServletResponseWrapper → ServletResponse
    Annotations
    @throws( classOf[java.io.IOException] )
  25. def getResponse(): ServletResponse

    Permalink
    Definition Classes
    ServletResponseWrapper
  26. def getStatus(): Int

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  27. lazy val getWriter: PrintWriter

    Permalink
    Definition Classes
    WritableServletResponse → ServletResponseWrapper → ServletResponse
  28. def isCommitted(): Boolean

    Permalink
    Definition Classes
    ServletResponseWrapper → ServletResponse
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. def isWrapperFor(arg0: Class[_]): Boolean

    Permalink
    Definition Classes
    ServletResponseWrapper
  31. def isWrapperFor(arg0: ServletResponse): Boolean

    Permalink
    Definition Classes
    ServletResponseWrapper
  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. val res: HttpResponse[HttpServletResponse]

    Permalink
  36. def reset(): Unit

    Permalink
    Definition Classes
    ServletResponseWrapper → ServletResponse
  37. def resetBuffer(): Unit

    Permalink
    Definition Classes
    ServletResponseWrapper → ServletResponse
  38. def sendError(arg0: Int): Unit

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
    Annotations
    @throws( classOf[java.io.IOException] )
  39. def sendError(arg0: Int, arg1: String): Unit

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
    Annotations
    @throws( classOf[java.io.IOException] )
  40. def sendRedirect(arg0: String): Unit

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
    Annotations
    @throws( classOf[java.io.IOException] )
  41. def setBufferSize(arg0: Int): Unit

    Permalink
    Definition Classes
    ServletResponseWrapper → ServletResponse
  42. def setCharacterEncoding(arg0: String): Unit

    Permalink
    Definition Classes
    ServletResponseWrapper → ServletResponse
  43. def setContentLength(arg0: Int): Unit

    Permalink
    Definition Classes
    ServletResponseWrapper → ServletResponse
  44. def setContentLengthLong(arg0: Long): Unit

    Permalink
    Definition Classes
    ServletResponseWrapper → ServletResponse
  45. def setContentType(arg0: String): Unit

    Permalink
    Definition Classes
    ServletResponseWrapper → ServletResponse
  46. def setDateHeader(arg0: String, arg1: Long): Unit

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  47. def setHeader(arg0: String, arg1: String): Unit

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  48. def setIntHeader(arg0: String, arg1: Int): Unit

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  49. def setLocale(arg0: Locale): Unit

    Permalink
    Definition Classes
    ServletResponseWrapper → ServletResponse
  50. def setResponse(arg0: ServletResponse): Unit

    Permalink
    Definition Classes
    ServletResponseWrapper
  51. def setStatus(arg0: Int): Unit

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
  52. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  53. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def encodeRedirectUrl(arg0: String): String

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
    Annotations
    @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  2. def encodeUrl(arg0: String): String

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
    Annotations
    @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  3. def setStatus(arg0: Int, arg1: String): Unit

    Permalink
    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
    Annotations
    @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

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