Interface FragmentResponse


  • public interface FragmentResponse
    FragmentResponse is a placeholder for the results of an async include so they can be inserted later in the response
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void insertFragment​(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse resp)
      insertFragment marks the location a fragment's response contents are supposed to be inserted without blocking
      void insertFragmentBlocking​(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse resp)
      insertFragmentBlocking waits for the include to complete and inserts the response content.
    • Method Detail

      • insertFragment

        void insertFragment​(jakarta.servlet.ServletRequest req,
                            jakarta.servlet.ServletResponse resp)
                     throws jakarta.servlet.ServletException,
                            java.io.IOException
        insertFragment marks the location a fragment's response contents are supposed to be inserted without blocking
        Parameters:
        req - ServletRequest
        resp - ServletResponse
        Throws:
        jakarta.servlet.ServletException
        java.io.IOException
      • insertFragmentBlocking

        void insertFragmentBlocking​(jakarta.servlet.ServletRequest req,
                                    jakarta.servlet.ServletResponse resp)
                             throws jakarta.servlet.ServletException,
                                    java.io.IOException
        insertFragmentBlocking waits for the include to complete and inserts the response content.
        Parameters:
        req - ServletRequest
        resp - ServletResponse
        Throws:
        jakarta.servlet.ServletException
        java.io.IOException