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 requries a HttpServletResponse and uses its Writer interface, this wrapper supplies a writer that works with any stream filters in the response function chain.

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
Learn more about member selection
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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def containsHeader(arg0: String): Boolean

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

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

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

    Definition Classes
    AnyRef
  14. def finalize(): Unit

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    ServletResponseWrapper
  26. def getStatus(): Int

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

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

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

    Definition Classes
    Any
  30. def isWrapperFor(arg0: Class): Boolean

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

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

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

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

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

  36. def reset(): Unit

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  52. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def encodeRedirectUrl(arg0: String): String

    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
    Annotations
    @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  2. def encodeUrl(arg0: String): String

    Definition Classes
    HttpServletResponseWrapper → HttpServletResponse
    Annotations
    @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

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

    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