Class WrappedResponseHolder


  • public class WrappedResponseHolder
    extends java.lang.Object
    A holder for the original Wrapped response for use when using includes.
    Since:
    0.5
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.servlet.http.HttpServletResponse getWrappedResponse()
      Return the HttpServletResponse currently bound to the thread.
      static void setWrappedResponse​(javax.servlet.http.HttpServletResponse response)
      Bind the given HttpServletResponse to the current thread.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WrappedResponseHolder

        public WrappedResponseHolder()
    • 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