Class BootstrapResponse

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    BootstrapFragmentResponse, BootstrapPageResponse

    public abstract class BootstrapResponse
    extends java.util.EventObject
    Base class providing common functionality used in different bootstrap modification events.
    Since:
    7.0.0
    Author:
    Vaadin Ltd
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      BootstrapHandler getBootstrapHandler()
      Gets the bootstrap handler that fired this event.
      VaadinRequest getRequest()
      Gets the request for which the generated bootstrap HTML will be the response.
      VaadinSession getSession()
      Gets the service session to which the rendered view belongs.
      java.lang.Class<? extends UI> getUiClass()
      Gets the class of the UI that will be displayed on the generated bootstrap page.
      UIProvider getUIProvider()
      Gets the UI provider that is used to provide information about the bootstrapped UI.
      com.vaadin.shared.VaadinUriResolver getUriResolver()
      Gets the URI resolver used in the bootstrap process.
      void setUriResolver​(com.vaadin.shared.VaadinUriResolver uriResolver)
      Sets the URI resolver used in the bootstrap process.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

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

      • BootstrapResponse

        public BootstrapResponse​(BootstrapHandler handler,
                                 VaadinRequest request,
                                 VaadinSession session,
                                 java.lang.Class<? extends UI> uiClass,
                                 UIProvider uiProvider)
        Creates a new bootstrap event.
        Parameters:
        handler - the bootstrap handler that is firing the event
        request - the Vaadin request for which the bootstrap page should be generated
        session - the session for which the bootstrap page should be generated
        uiClass - the class of the UI that will be displayed on the page
        uiProvider - the UI provider for the bootstrap
    • Method Detail

      • getBootstrapHandler

        public BootstrapHandler getBootstrapHandler()
        Gets the bootstrap handler that fired this event.
        Returns:
        the bootstrap handler that fired this event
      • getRequest

        public VaadinRequest getRequest()
        Gets the request for which the generated bootstrap HTML will be the response. This can be used to read request headers and other additional information. Please note that VaadinSession.getBrowser() will not be available because the bootstrap page is generated before the bootstrap javascript has had a chance to send any information back to the server.
        Returns:
        the Vaadin request that is being handled
      • getSession

        public VaadinSession getSession()
        Gets the service session to which the rendered view belongs.
        Returns:
        the Vaadin service session
      • getUiClass

        public java.lang.Class<? extends UI> getUiClass()
        Gets the class of the UI that will be displayed on the generated bootstrap page.
        Returns:
        the class of the UI
      • getUIProvider

        public UIProvider getUIProvider()
        Gets the UI provider that is used to provide information about the bootstrapped UI.
        Returns:
        the UI provider
      • setUriResolver

        public void setUriResolver​(com.vaadin.shared.VaadinUriResolver uriResolver)
        Sets the URI resolver used in the bootstrap process.
        Parameters:
        uriResolver - the uri resolver which is used
        Since:
        8.1
      • getUriResolver

        public com.vaadin.shared.VaadinUriResolver getUriResolver()
        Gets the URI resolver used in the bootstrap process.
        Returns:
        the URI resolver
        Since:
        8.1