com.vaadin.server
Class BootstrapResponse

java.lang.Object
  extended by java.util.EventObject
      extended by com.vaadin.server.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
 
Constructor Summary
BootstrapResponse(BootstrapHandler handler, VaadinRequest request, VaadinSession session, java.lang.Class<? extends UI> uiClass, UIProvider uiProvider)
          Creates a new bootstrap event.
 
Method Summary
 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 bootstapped UI.
 
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 VaadinRequest#getBrowserDetails() 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 bootstapped UI.

Returns:
the UI provider


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.