Constructor and Description |
---|
HttpServletResponseSink(javax.servlet.http.HttpServletResponse response)
Constructs a
HttpServletResponseSink for the given
response . |
Modifier and Type | Method and Description |
---|---|
OutputStream |
getOutputStream()
Returns the
OutputStream of the underlying HttpServletResponse . |
Writer |
getWriter()
Returns the
Writer of the underlying HttpServletResponse . |
public HttpServletResponseSink(javax.servlet.http.HttpServletResponse response)
HttpServletResponseSink
for the given
response
.response
- public OutputStream getOutputStream() throws IOException
OutputStream
of the underlying HttpServletResponse
.getOutputStream
in interface Sink
IOException
public Writer getWriter() throws IOException
Writer
of the underlying HttpServletResponse
.getWriter
in interface Sink
IOException
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.