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, wait
addCookie, getOutputStream, getWriter, sendError, setContentLength, setContentType, setDateHeader, setHeader, setNoCacheHeaders, setStatus
public VaadinServletResponse(HttpServletResponse response, VaadinServletService vaadinService)
response
- the http servlet response to wrapvaadinService
- the associated vaadin servicepublic HttpServletResponse getHttpServletResponse()
HttpServletResponse
.public void setCacheTime(long milliseconds)
VaadinResponse
setCacheTime
in interface VaadinResponse
milliseconds
- Cache time in millisecondspublic VaadinServletService getService()
VaadinResponse
getService
in interface VaadinResponse
VaadinService
public static VaadinServletResponse getCurrent()
getCurrent
in interface VaadinResponse
null
Copyright © 2020. All rights reserved.