Package org.grails.web.servlet
Class WrappedResponseHolder
- java.lang.Object
-
- org.grails.web.servlet.WrappedResponseHolder
-
public class WrappedResponseHolder extends java.lang.ObjectA holder for the original Wrapped response for use when using includes.- Since:
- 0.5
-
-
Constructor Summary
Constructors Constructor Description WrappedResponseHolder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.servlet.http.HttpServletResponsegetWrappedResponse()Return the HttpServletResponse currently bound to the thread.static voidsetWrappedResponse(javax.servlet.http.HttpServletResponse response)Bind the given HttpServletResponse to the current thread.
-
-
-
Method Detail
-
setWrappedResponse
public static void setWrappedResponse(javax.servlet.http.HttpServletResponse response)
Bind the given HttpServletResponse to the current thread.- Parameters:
response- the HttpServletResponse to expose
-
getWrappedResponse
public static javax.servlet.http.HttpServletResponse getWrappedResponse()
Return the HttpServletResponse currently bound to the thread.- Returns:
- the HttpServletResponse currently bound to the thread, or
null
-
-