Interface IHeaderResponse

    • Method Detail

      • markRendered

        void markRendered​(Object object)
        Marks the given object as rendered. The object can be anything (string, resource reference, etc...). The purpose of this function is to allow user to manually keep track of rendered items. This can be useful for items that are expensive to generate (like interpolated text).
        object - object to be marked as rendered.
      • wasRendered

        boolean wasRendered​(Object object)
        Returns whether the given object has been marked as rendered.
        object - Object that is queried to be rendered
        Whether the object has been marked as rendered during the request
        See Also:
      • getResponse

        Response getResponse()
        Returns the response that can be used to write arbitrary text to the head section.

        Note: This method is kind of dangerous as users are able to write to the output whatever they like.

      • close

        void close()
        Mark Header rendering is completed and subsequent usage will be ignored. If some kind of buffering is used internally, this action will mark that the contents has to be flushed out.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
      • isClosed

        boolean isClosed()
        if header rendering is completed and subsequent usage will be ignored