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.
- Alphabetic
- By Inheritance
- WritableServletResponse
- Serializable
- Serializable
- Product
- Equals
- HttpServletResponseWrapper
- HttpServletResponse
- ServletResponseWrapper
- ServletResponse
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new WritableServletResponse(res: HttpResponse[HttpServletResponse])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addCookie(arg0: javax.servlet.http.Cookie): Unit
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
-
def
addDateHeader(arg0: String, arg1: Long): Unit
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
-
def
addHeader(arg0: String, arg1: String): Unit
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
-
def
addIntHeader(arg0: String, arg1: Int): Unit
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
containsHeader(arg0: String): Boolean
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
-
def
encodeRedirectURL(arg0: String): String
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
-
def
encodeURL(arg0: String): String
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flushBuffer(): Unit
- Definition Classes
- ServletResponseWrapper → ServletResponse
- Annotations
- @throws( classOf[java.io.IOException] )
-
def
getBufferSize(): Int
- Definition Classes
- ServletResponseWrapper → ServletResponse
-
def
getCharacterEncoding(): String
- Definition Classes
- ServletResponseWrapper → ServletResponse
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getContentType(): String
- Definition Classes
- ServletResponseWrapper → ServletResponse
-
def
getHeader(arg0: String): String
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
-
def
getHeaderNames(): Collection[String]
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
-
def
getHeaders(arg0: String): Collection[String]
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
-
def
getLocale(): Locale
- Definition Classes
- ServletResponseWrapper → ServletResponse
-
def
getOutputStream(): ServletOutputStream
- Definition Classes
- ServletResponseWrapper → ServletResponse
- Annotations
- @throws( classOf[java.io.IOException] )
-
def
getResponse(): ServletResponse
- Definition Classes
- ServletResponseWrapper
-
def
getStatus(): Int
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
- lazy val getWriter: PrintWriter
-
def
isCommitted(): Boolean
- Definition Classes
- ServletResponseWrapper → ServletResponse
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isWrapperFor(arg0: Class[_]): Boolean
- Definition Classes
- ServletResponseWrapper
-
def
isWrapperFor(arg0: ServletResponse): Boolean
- Definition Classes
- ServletResponseWrapper
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val res: HttpResponse[HttpServletResponse]
-
def
reset(): Unit
- Definition Classes
- ServletResponseWrapper → ServletResponse
-
def
resetBuffer(): Unit
- Definition Classes
- ServletResponseWrapper → ServletResponse
-
def
sendError(arg0: Int): Unit
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
- Annotations
- @throws( classOf[java.io.IOException] )
-
def
sendError(arg0: Int, arg1: String): Unit
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
- Annotations
- @throws( classOf[java.io.IOException] )
-
def
sendRedirect(arg0: String): Unit
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
- Annotations
- @throws( classOf[java.io.IOException] )
-
def
setBufferSize(arg0: Int): Unit
- Definition Classes
- ServletResponseWrapper → ServletResponse
-
def
setCharacterEncoding(arg0: String): Unit
- Definition Classes
- ServletResponseWrapper → ServletResponse
-
def
setContentLength(arg0: Int): Unit
- Definition Classes
- ServletResponseWrapper → ServletResponse
-
def
setContentLengthLong(arg0: Long): Unit
- Definition Classes
- ServletResponseWrapper → ServletResponse
-
def
setContentType(arg0: String): Unit
- Definition Classes
- ServletResponseWrapper → ServletResponse
-
def
setDateHeader(arg0: String, arg1: Long): Unit
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
-
def
setHeader(arg0: String, arg1: String): Unit
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
-
def
setIntHeader(arg0: String, arg1: Int): Unit
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
-
def
setLocale(arg0: Locale): Unit
- Definition Classes
- ServletResponseWrapper → ServletResponse
-
def
setResponse(arg0: ServletResponse): Unit
- Definition Classes
- ServletResponseWrapper
-
def
setStatus(arg0: Int): Unit
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
Deprecated Value Members
-
def
encodeRedirectUrl(arg0: String): String
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
- Annotations
- @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.
-
def
encodeUrl(arg0: String): String
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
- Annotations
- @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.
-
def
setStatus(arg0: Int, arg1: String): Unit
- Definition Classes
- HttpServletResponseWrapper → HttpServletResponse
- Annotations
- @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.