public class VaadinServletResponse extends HttpServletResponseWrapper implements VaadinResponse
HttpServletResponse.VaadinResponse,
VaadinServletRequest| Constructor and Description |
|---|
VaadinServletResponse(HttpServletResponse response,
VaadinServletService vaadinService)
Wraps a http servlet response and an associated vaadin service.
|
| Modifier and Type | Method and Description |
|---|---|
static VaadinServletResponse |
getCurrent()
Gets the currently processed Vaadin servlet response.
|
HttpServletResponse |
getHttpServletResponse()
Gets the original unwrapped
HttpServletResponse. |
VaadinServletService |
getService()
Gets the vaadin service for the context of this response.
|
void |
setCacheTime(long milliseconds)
Sets cache time in milliseconds, -1 means no cache at all.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCookie, getOutputStream, getWriter, sendError, setContentLength, setContentType, setDateHeader, setHeader, setNoCacheHeaders, setStatuspublic VaadinServletResponse(HttpServletResponse response,
VaadinServletService vaadinService)
response - the http servlet response to wrapvaadinService - the associated vaadin servicepublic HttpServletResponse getHttpServletResponse()
HttpServletResponse.public void setCacheTime(long milliseconds)
VaadinResponsesetCacheTime in interface VaadinResponsemilliseconds - Cache time in millisecondspublic VaadinServletService getService()
VaadinResponsegetService in interface VaadinResponseVaadinServicepublic static VaadinServletResponse getCurrent()
getCurrent in interface VaadinResponsenullCopyright © 2018. All rights reserved.