blob: 88bd58593dac476bf00982ecb83e0c3e29fe912c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/*
@VaadinApache2LicenseForJavaFiles@
*/
package com.vaadin.terminal.gwt.server;
import java.util.EventObject;
import com.vaadin.Application;
import com.vaadin.terminal.WrappedRequest;
import com.vaadin.ui.Root;
public abstract class BootstrapResponse extends EventObject {
private final WrappedRequest request;
private final Application application;
private final Integer rootId;
public BootstrapResponse(BootstrapHandler handler, WrappedRequest request,
Application application, Integer rootId) {
super(handler);
this.request = request;
this.application = application;
this.rootId = rootId;
}
public BootstrapHandler getBootstrapHandler() {
return (BootstrapHandler) getSource();
}
public WrappedRequest getRequest() {
return request;
}
public Application getApplication() {
return application;
}
public Integer getRootId() {
return rootId;
}
public Root getRoot() {
return Root.getCurrent();
}
}
|