summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-09-20 15:33:19 +0300
committerLeif Åstrand <leif@vaadin.com>2012-09-20 15:33:19 +0300
commit6335562c72fb193a2835a3a09b617aa6c90efea6 (patch)
tree63288fef0874cf5a03b8d3e034f65daae92c2c29
parent23e77a833df4845c0c0011dde13e6fc5db901a1c (diff)
downloadvaadin-framework-6335562c72fb193a2835a3a09b617aa6c90efea6.tar.gz
vaadin-framework-6335562c72fb193a2835a3a09b617aa6c90efea6.zip
Rename WrappedXYZ -> VaadinXYZ but retain WrappedSession (#9633)
-rw-r--r--server/src/com/vaadin/server/AbstractClientConnector.java4
-rw-r--r--server/src/com/vaadin/server/AbstractCommunicationManager.java70
-rw-r--r--server/src/com/vaadin/server/AbstractUIProvider.java12
-rw-r--r--server/src/com/vaadin/server/BootstrapFragmentResponse.java8
-rw-r--r--server/src/com/vaadin/server/BootstrapHandler.java36
-rw-r--r--server/src/com/vaadin/server/BootstrapPageResponse.java12
-rw-r--r--server/src/com/vaadin/server/BootstrapResponse.java12
-rw-r--r--server/src/com/vaadin/server/ClientConnector.java4
-rw-r--r--server/src/com/vaadin/server/CombinedRequest.java14
-rw-r--r--server/src/com/vaadin/server/ConnectorResourceHandler.java6
-rw-r--r--server/src/com/vaadin/server/DefaultUIProvider.java2
-rw-r--r--server/src/com/vaadin/server/DownloadStream.java8
-rw-r--r--server/src/com/vaadin/server/DragAndDropService.java4
-rw-r--r--server/src/com/vaadin/server/DynamicConnectorResource.java6
-rw-r--r--server/src/com/vaadin/server/GAEVaadinServlet.java18
-rw-r--r--server/src/com/vaadin/server/GlobalResourceHandler.java6
-rw-r--r--server/src/com/vaadin/server/LegacyApplicationUIProvider.java12
-rw-r--r--server/src/com/vaadin/server/LegacyVaadinPortlet.java4
-rw-r--r--server/src/com/vaadin/server/LegacyVaadinServlet.java2
-rw-r--r--server/src/com/vaadin/server/Page.java4
-rw-r--r--server/src/com/vaadin/server/PortletCommunicationManager.java14
-rw-r--r--server/src/com/vaadin/server/RequestHandler.java4
-rw-r--r--server/src/com/vaadin/server/ServletPortletHelper.java12
-rw-r--r--server/src/com/vaadin/server/UIProvider.java22
-rw-r--r--server/src/com/vaadin/server/UnsupportedBrowserHandler.java6
-rw-r--r--server/src/com/vaadin/server/VaadinPortlet.java128
-rw-r--r--server/src/com/vaadin/server/VaadinPortletRequest.java (renamed from server/src/com/vaadin/server/WrappedPortletRequest.java)26
-rw-r--r--server/src/com/vaadin/server/VaadinPortletResponse.java (renamed from server/src/com/vaadin/server/WrappedPortletResponse.java)10
-rw-r--r--server/src/com/vaadin/server/VaadinPortletSession.java8
-rw-r--r--server/src/com/vaadin/server/VaadinRequest.java (renamed from server/src/com/vaadin/server/WrappedRequest.java)6
-rw-r--r--server/src/com/vaadin/server/VaadinResponse.java (renamed from server/src/com/vaadin/server/WrappedResponse.java)2
-rw-r--r--server/src/com/vaadin/server/VaadinService.java58
-rw-r--r--server/src/com/vaadin/server/VaadinServlet.java83
-rw-r--r--server/src/com/vaadin/server/VaadinServletRequest.java (renamed from server/src/com/vaadin/server/WrappedHttpServletRequest.java)26
-rw-r--r--server/src/com/vaadin/server/VaadinServletResponse.java (renamed from server/src/com/vaadin/server/WrappedHttpServletResponse.java)14
-rw-r--r--server/src/com/vaadin/server/VaadinSession.java24
-rw-r--r--server/src/com/vaadin/server/VaadinSessionInitializeEvent.java6
-rw-r--r--server/src/com/vaadin/server/WebBrowser.java4
-rw-r--r--server/src/com/vaadin/ui/AbstractMedia.java8
-rw-r--r--server/src/com/vaadin/ui/LoginForm.java6
-rw-r--r--server/src/com/vaadin/ui/UI.java30
-rw-r--r--server/tests/src/com/vaadin/server/TestAbstractApplicationServletStaticFilesLocation.java4
-rw-r--r--server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java4
-rw-r--r--server/tests/src/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java4
-rw-r--r--server/tests/src/com/vaadin/tests/server/component/root/CustomUIClassLoader.java18
-rw-r--r--server/tests/src/com/vaadin/tests/server/component/window/AttachDetachWindow.java4
-rw-r--r--server/tests/src/com/vaadin/ui/LabelDataSource.java4
-rw-r--r--uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java18
-rw-r--r--uitest/src/com/vaadin/tests/Parameters.java6
-rw-r--r--uitest/src/com/vaadin/tests/VerifyAssertionsEnabled.java4
-rw-r--r--uitest/src/com/vaadin/tests/application/HelloWorld.java4
-rw-r--r--uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java4
-rw-r--r--uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java4
-rw-r--r--uitest/src/com/vaadin/tests/application/VaadinSessionAttribute.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/AbstractTestUI.java6
-rw-r--r--uitest/src/com/vaadin/tests/components/UnknownComponentConnectorTest.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/abstractcomponent/AllComponentTooltipTest.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/formlayout/FormLayoutErrorHover.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/javascriptcomponent/BasicJavaScriptComponent.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/label/LabelPropertySourceValue.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/label/MarginsInLabels.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/orderedlayout/BoxLayoutTest.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/orderedlayout/OrderedLayoutCases.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/orderedlayout/VaadinTunesLayout.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/panel/PanelChangeContents.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/popupview/ReopenPopupView.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/table/TableInTabsheet.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/LazyInitUIs.java16
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/TestUITheme.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/TestUIWidgetset.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/TestUIWidgetset2.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/UIInitException.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/UIInitTest.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/UIsInMultipleTabs.java6
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/UriFragmentTest.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/uitest/ThemeTestUI.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/window/AttachShouldBeCalledForSubWindows.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/window/RepaintWindowContents.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/window/TooltipInWindow.java4
-rw-r--r--uitest/src/com/vaadin/tests/extensions/BasicExtensionTest.java4
-rw-r--r--uitest/src/com/vaadin/tests/extensions/HelloWorldExtensionTest.java4
-rw-r--r--uitest/src/com/vaadin/tests/extensions/JavascriptManagerTest.java4
-rw-r--r--uitest/src/com/vaadin/tests/extensions/SimpleJavaScriptExtensionTest.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/AutoGeneratingForm.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/BasicApplication.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/CreatingPreserveState.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/CustomConverterFactoryUI.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/DefineUITheme.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/DifferentFeaturesForDifferentClients.java10
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/DynamicImageUI.java8
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/FindCurrentUI.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/FormUsingExistingLayout.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/FormatTableValue.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldDataSource.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldStandalone.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/MultiTabApplication.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/StringMyTypeConverter.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingBeanValidation.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingXyzWhenInitializing.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a2/ComponentInStateUI.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a2/MyComponentUI.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a2/ResourceInStateUI.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a2/WidgetcontainerUI.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a3/AnalyticsUI.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a3/CapsLockWarningUI.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a3/ComplexTypesUI.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a3/FlotJavaScriptUI.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a3/RedButtonUI.java4
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7b1/ReducingRoundTrips.java4
-rw-r--r--uitest/src/com/vaadin/tests/navigator/NavigatorTest.java4
-rw-r--r--uitest/src/com/vaadin/tests/resources/ConnectorResourceTest.java10
-rw-r--r--uitest/src/com/vaadin/tests/serialization/DelegateToWidgetTest.java4
-rw-r--r--uitest/src/com/vaadin/tests/serialization/DelegateWithoutStateClassTest.java4
-rw-r--r--uitest/src/com/vaadin/tests/serialization/SerializerNamespaceTest.java4
-rw-r--r--uitest/src/com/vaadin/tests/serialization/SerializerTest.java4
-rw-r--r--uitest/src/com/vaadin/tests/themes/LiferayThemeTest.java4
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1589.java6
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1921.java6
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2292.java6
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket8291.java4
-rw-r--r--uitest/src/com/vaadin/tests/vaadincontext/BootstrapModifyUI.java4
122 files changed, 563 insertions, 570 deletions
diff --git a/server/src/com/vaadin/server/AbstractClientConnector.java b/server/src/com/vaadin/server/AbstractClientConnector.java
index 0f42c0a28f..278d726451 100644
--- a/server/src/com/vaadin/server/AbstractClientConnector.java
+++ b/server/src/com/vaadin/server/AbstractClientConnector.java
@@ -570,8 +570,8 @@ public abstract class AbstractClientConnector implements ClientConnector {
}
@Override
- public boolean handleConnectorRequest(WrappedRequest request,
- WrappedResponse response, String path) throws IOException {
+ public boolean handleConnectorRequest(VaadinRequest request,
+ VaadinResponse response, String path) throws IOException {
String[] parts = path.split("/", 2);
String key = parts[0];
diff --git a/server/src/com/vaadin/server/AbstractCommunicationManager.java b/server/src/com/vaadin/server/AbstractCommunicationManager.java
index 07959b1558..49243a0589 100644
--- a/server/src/com/vaadin/server/AbstractCommunicationManager.java
+++ b/server/src/com/vaadin/server/AbstractCommunicationManager.java
@@ -117,8 +117,8 @@ public abstract class AbstractCommunicationManager implements Serializable {
@Deprecated
public interface Callback extends Serializable {
- public void criticalNotification(WrappedRequest request,
- WrappedResponse response, String cap, String msg,
+ public void criticalNotification(VaadinRequest request,
+ VaadinResponse response, String cap, String msg,
String details, String outOfSyncURL) throws IOException;
}
@@ -219,8 +219,8 @@ public abstract class AbstractCommunicationManager implements Serializable {
* @param boundary
* @throws IOException
*/
- protected void doHandleSimpleMultipartFileUpload(WrappedRequest request,
- WrappedResponse response, StreamVariable streamVariable,
+ protected void doHandleSimpleMultipartFileUpload(VaadinRequest request,
+ VaadinResponse response, StreamVariable streamVariable,
String variableName, ClientConnector owner, String boundary)
throws IOException {
// multipart parsing, supports only one file for request, but that is
@@ -323,8 +323,8 @@ public abstract class AbstractCommunicationManager implements Serializable {
* @param contentLength
* @throws IOException
*/
- protected void doHandleXhrFilePost(WrappedRequest request,
- WrappedResponse response, StreamVariable streamVariable,
+ protected void doHandleXhrFilePost(VaadinRequest request,
+ VaadinResponse response, StreamVariable streamVariable,
String variableName, ClientConnector owner, int contentLength)
throws IOException {
@@ -501,8 +501,8 @@ public abstract class AbstractCommunicationManager implements Serializable {
* @param response
* @throws IOException
*/
- protected void sendUploadResponse(WrappedRequest request,
- WrappedResponse response) throws IOException {
+ protected void sendUploadResponse(VaadinRequest request,
+ VaadinResponse response) throws IOException {
response.setContentType("text/html");
final OutputStream out = response.getOutputStream();
final PrintWriter outWriter = new PrintWriter(new BufferedWriter(
@@ -516,7 +516,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
* Internally process a UIDL request from the client.
*
* This method calls
- * {@link #handleVariables(WrappedRequest, WrappedResponse, Callback, VaadinSession, UI)}
+ * {@link #handleVariables(VaadinRequest, VaadinResponse, Callback, VaadinSession, UI)}
* to process any changes to variables by the client and then repaints
* affected components using {@link #paintAfterVariableChanges()}.
*
@@ -537,8 +537,8 @@ public abstract class AbstractCommunicationManager implements Serializable {
* @throws InvalidUIDLSecurityKeyException
* @throws JSONException
*/
- public void handleUidlRequest(WrappedRequest request,
- WrappedResponse response, Callback callback, UI uI)
+ public void handleUidlRequest(VaadinRequest request,
+ VaadinResponse response, Callback callback, UI uI)
throws IOException, InvalidUIDLSecurityKeyException, JSONException {
checkWidgetsetVersion(request);
@@ -623,7 +623,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
*
* @param request
*/
- private void checkWidgetsetVersion(WrappedRequest request) {
+ private void checkWidgetsetVersion(VaadinRequest request) {
String widgetsetVersion = request.getParameter("wsver");
if (widgetsetVersion == null) {
// Only check when the widgetset version is reported. It is reported
@@ -752,8 +752,8 @@ public abstract class AbstractCommunicationManager implements Serializable {
* @throws IOException
* @throws JSONException
*/
- private void paintAfterVariableChanges(WrappedRequest request,
- WrappedResponse response, Callback callback, boolean repaintAll,
+ private void paintAfterVariableChanges(VaadinRequest request,
+ VaadinResponse response, Callback callback, boolean repaintAll,
final PrintWriter outWriter, UI uI, boolean analyzeLayouts)
throws PaintException, IOException, JSONException {
openJsonMessage(outWriter, response);
@@ -780,7 +780,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
* @param request
* @return the security key UIDL or "" if the feature is turned off
*/
- public String getSecurityKeyUIDL(WrappedRequest request) {
+ public String getSecurityKeyUIDL(VaadinRequest request) {
final String seckey = getSecurityKey(request);
if (seckey != null) {
return "\"" + ApplicationConstants.UIDL_SECURITY_TOKEN_ID + "\":\""
@@ -796,7 +796,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
* @param request
* @return the security key
*/
- protected String getSecurityKey(WrappedRequest request) {
+ protected String getSecurityKey(VaadinRequest request) {
String seckey = null;
WrappedSession session = request.getWrappedSession();
seckey = (String) session
@@ -811,7 +811,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
}
@SuppressWarnings("unchecked")
- public void writeUidlResponse(WrappedRequest request, boolean repaintAll,
+ public void writeUidlResponse(VaadinRequest request, boolean repaintAll,
final PrintWriter outWriter, UI ui, boolean analyzeLayouts)
throws PaintException, JSONException {
ArrayList<ClientConnector> dirtyVisibleConnectors = new ArrayList<ClientConnector>();
@@ -1557,8 +1557,8 @@ public abstract class AbstractCommunicationManager implements Serializable {
*
* @return true if successful, false if there was an inconsistency
*/
- private boolean handleVariables(WrappedRequest request,
- WrappedResponse response, Callback callback, VaadinSession session,
+ private boolean handleVariables(VaadinRequest request,
+ VaadinResponse response, Callback callback, VaadinSession session,
UI uI) throws IOException, InvalidUIDLSecurityKeyException,
JSONException {
boolean success = true;
@@ -1646,7 +1646,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
* @return true if the processing of the burst was successful and there were
* no messages to non-existent components
*/
- public boolean handleBurst(WrappedRequest source, UI uI, final String burst) {
+ public boolean handleBurst(VaadinRequest source, UI uI, final String burst) {
boolean success = true;
try {
Set<Connector> enabledConnectors = new HashSet<Connector>();
@@ -1908,7 +1908,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
* @return
* @throws IOException
*/
- protected String getRequestPayload(WrappedRequest request)
+ protected String getRequestPayload(VaadinRequest request)
throws IOException {
int requestLength = request.getContentLength();
@@ -2185,7 +2185,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
* @param response
*/
protected void openJsonMessage(PrintWriter outWriter,
- WrappedResponse response) {
+ VaadinResponse response) {
// Sets the response type
response.setContentType("application/json; charset=UTF-8");
// some dirt to prevent cross site scripting
@@ -2392,7 +2392,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
* </p>
*
* @param request
- * the wrapped request to get information from
+ * the Vaadin request to get information from
* @param response
* the response to which data can be written
* @return returns <code>true</code> if a {@link RequestHandler} has
@@ -2406,8 +2406,8 @@ public abstract class AbstractCommunicationManager implements Serializable {
*
* @since 7.0
*/
- protected boolean handleOtherRequest(WrappedRequest request,
- WrappedResponse response) throws IOException {
+ protected boolean handleOtherRequest(VaadinRequest request,
+ VaadinResponse response) throws IOException {
// Use a copy to avoid ConcurrentModificationException
for (RequestHandler handler : new ArrayList<RequestHandler>(
session.getRequestHandlers())) {
@@ -2419,8 +2419,8 @@ public abstract class AbstractCommunicationManager implements Serializable {
return false;
}
- public void handleBrowserDetailsRequest(WrappedRequest request,
- WrappedResponse response, VaadinSession session) throws IOException {
+ public void handleBrowserDetailsRequest(VaadinRequest request,
+ VaadinResponse response, VaadinSession session) throws IOException {
session.getLock().lock();
@@ -2428,7 +2428,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
assert UI.getCurrent() == null;
CombinedRequest combinedRequest = new CombinedRequest(request);
- CurrentInstance.set(WrappedRequest.class, combinedRequest);
+ CurrentInstance.set(VaadinRequest.class, combinedRequest);
response.setContentType("application/json; charset=UTF-8");
@@ -2475,7 +2475,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
* @throws JSONException
* if an exception occurs while encoding output
*/
- protected String getInitialUIDL(WrappedRequest request, UI uI)
+ protected String getInitialUIDL(VaadinRequest request, UI uI)
throws PaintException, JSONException {
// TODO maybe unify writeUidlResponse()?
StringWriter sWriter = new StringWriter();
@@ -2505,8 +2505,8 @@ public abstract class AbstractCommunicationManager implements Serializable {
*
* @throws IOException
*/
- public void serveConnectorResource(WrappedRequest request,
- WrappedResponse response) throws IOException {
+ public void serveConnectorResource(VaadinRequest request,
+ VaadinResponse response) throws IOException {
String pathInfo = request.getRequestPathInfo();
// + 2 to also remove beginning and ending slashes
@@ -2602,8 +2602,8 @@ public abstract class AbstractCommunicationManager implements Serializable {
* @throws IOException
* @throws InvalidUIDLSecurityKeyException
*/
- public void handleFileUpload(VaadinSession session, WrappedRequest request,
- WrappedResponse response) throws IOException,
+ public void handleFileUpload(VaadinSession session, VaadinRequest request,
+ VaadinResponse response) throws IOException,
InvalidUIDLSecurityKeyException {
/*
@@ -2663,8 +2663,8 @@ public abstract class AbstractCommunicationManager implements Serializable {
* @param session
* @throws IOException
*/
- public void handleHeartbeatRequest(WrappedRequest request,
- WrappedResponse response, VaadinSession session) throws IOException {
+ public void handleHeartbeatRequest(VaadinRequest request,
+ VaadinResponse response, VaadinSession session) throws IOException {
UI ui = null;
try {
int uiId = Integer.parseInt(request
diff --git a/server/src/com/vaadin/server/AbstractUIProvider.java b/server/src/com/vaadin/server/AbstractUIProvider.java
index 5208997a65..32322fde65 100644
--- a/server/src/com/vaadin/server/AbstractUIProvider.java
+++ b/server/src/com/vaadin/server/AbstractUIProvider.java
@@ -27,7 +27,7 @@ import com.vaadin.ui.UI;
public abstract class AbstractUIProvider implements UIProvider {
@Override
- public UI createInstance(WrappedRequest request,
+ public UI createInstance(VaadinRequest request,
Class<? extends UI> type) {
try {
return type.newInstance();
@@ -75,7 +75,7 @@ public abstract class AbstractUIProvider implements UIProvider {
}
@Override
- public String getTheme(WrappedRequest request,
+ public String getTheme(VaadinRequest request,
Class<? extends UI> uiClass) {
Theme uiTheme = getAnnotationFor(uiClass, Theme.class);
if (uiTheme != null) {
@@ -86,7 +86,7 @@ public abstract class AbstractUIProvider implements UIProvider {
}
@Override
- public String getWidgetset(WrappedRequest request,
+ public String getWidgetset(VaadinRequest request,
Class<? extends UI> uiClass) {
Widgetset uiWidgetset = getAnnotationFor(uiClass, Widgetset.class);
if (uiWidgetset != null) {
@@ -97,7 +97,7 @@ public abstract class AbstractUIProvider implements UIProvider {
}
@Override
- public boolean isPreservedOnRefresh(WrappedRequest request,
+ public boolean isPreservedOnRefresh(VaadinRequest request,
Class<? extends UI> uiClass) {
PreserveOnRefresh preserveOnRefresh = getAnnotationFor(uiClass,
PreserveOnRefresh.class);
@@ -105,7 +105,7 @@ public abstract class AbstractUIProvider implements UIProvider {
}
@Override
- public String getPageTitle(WrappedRequest request,
+ public String getPageTitle(VaadinRequest request,
Class<? extends UI> uiClass) {
Title titleAnnotation = getAnnotationFor(uiClass, Title.class);
if (titleAnnotation == null) {
@@ -116,7 +116,7 @@ public abstract class AbstractUIProvider implements UIProvider {
}
@Override
- public UI getExistingUI(WrappedRequest request) {
+ public UI getExistingUI(VaadinRequest request) {
return null;
}
}
diff --git a/server/src/com/vaadin/server/BootstrapFragmentResponse.java b/server/src/com/vaadin/server/BootstrapFragmentResponse.java
index ea13a04b8f..0269d1cfc0 100644
--- a/server/src/com/vaadin/server/BootstrapFragmentResponse.java
+++ b/server/src/com/vaadin/server/BootstrapFragmentResponse.java
@@ -36,13 +36,13 @@ public class BootstrapFragmentResponse extends BootstrapResponse {
/**
* Crate a new bootstrap fragment response.
*
- * @see BootstrapResponse#BootstrapResponse(BootstrapHandler,
- * WrappedRequest, VaadinSession, Class)
+ * @see BootstrapResponse#BootstrapResponse(BootstrapHandler, VaadinRequest,
+ * VaadinSession, Class)
*
* @param handler
* the bootstrap handler that is firing the event
* @param request
- * the wrapped request for which the bootstrap page should be
+ * the Vaadin request for which the bootstrap page should be
* generated
* @param session
* the vaadin session for which the bootstrap page should be
@@ -54,7 +54,7 @@ public class BootstrapFragmentResponse extends BootstrapResponse {
* application HTML
*/
public BootstrapFragmentResponse(BootstrapHandler handler,
- WrappedRequest request, VaadinSession session,
+ VaadinRequest request, VaadinSession session,
Class<? extends UI> uiClass, List<Node> fragmentNodes) {
super(handler, request, session, uiClass);
this.fragmentNodes = fragmentNodes;
diff --git a/server/src/com/vaadin/server/BootstrapHandler.java b/server/src/com/vaadin/server/BootstrapHandler.java
index a25c1860ef..7e4fd653bf 100644
--- a/server/src/com/vaadin/server/BootstrapHandler.java
+++ b/server/src/com/vaadin/server/BootstrapHandler.java
@@ -54,24 +54,24 @@ public abstract class BootstrapHandler implements RequestHandler {
protected class BootstrapContext implements Serializable {
- private final WrappedResponse response;
+ private final VaadinResponse response;
private final BootstrapFragmentResponse bootstrapResponse;
private String widgetsetName;
private String themeName;
private String appId;
- public BootstrapContext(WrappedResponse response,
+ public BootstrapContext(VaadinResponse response,
BootstrapFragmentResponse bootstrapResponse) {
this.response = response;
this.bootstrapResponse = bootstrapResponse;
}
- public WrappedResponse getResponse() {
+ public VaadinResponse getResponse() {
return response;
}
- public WrappedRequest getRequest() {
+ public VaadinRequest getRequest() {
return bootstrapResponse.getRequest();
}
@@ -111,8 +111,8 @@ public abstract class BootstrapHandler implements RequestHandler {
}
@Override
- public boolean handleRequest(VaadinSession session, WrappedRequest request,
- WrappedResponse response) throws IOException {
+ public boolean handleRequest(VaadinSession session, VaadinRequest request,
+ VaadinResponse response) throws IOException {
try {
Class<? extends UI> uiClass = session.getUIClass(request);
@@ -136,8 +136,8 @@ public abstract class BootstrapHandler implements RequestHandler {
}
private String getBootstrapHtml(BootstrapContext context) {
- WrappedRequest request = context.getRequest();
- WrappedResponse response = context.getResponse();
+ VaadinRequest request = context.getRequest();
+ VaadinResponse response = context.getResponse();
VaadinService vaadinService = request.getVaadinService();
BootstrapFragmentResponse fragmentResponse = context
@@ -174,7 +174,7 @@ public abstract class BootstrapHandler implements RequestHandler {
}
}
- private void sendBootstrapHeaders(WrappedResponse response,
+ private void sendBootstrapHeaders(VaadinResponse response,
Map<String, Object> headers) {
Set<Entry<String, Object>> entrySet = headers.entrySet();
for (Entry<String, Object> header : entrySet) {
@@ -190,7 +190,7 @@ public abstract class BootstrapHandler implements RequestHandler {
}
}
- private void writeBootstrapPage(WrappedResponse response, String html)
+ private void writeBootstrapPage(VaadinResponse response, String html)
throws IOException {
response.setContentType("text/html");
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(
@@ -250,8 +250,8 @@ public abstract class BootstrapHandler implements RequestHandler {
body.addClass(ApplicationConstants.GENERATED_BODY_CLASSNAME);
}
- private BootstrapContext createContext(WrappedRequest request,
- WrappedResponse response, VaadinSession application,
+ private BootstrapContext createContext(VaadinRequest request,
+ VaadinResponse response, VaadinSession application,
Class<? extends UI> uiClass) {
BootstrapContext context = new BootstrapContext(response,
new BootstrapFragmentResponse(this, request, application,
@@ -274,7 +274,7 @@ public abstract class BootstrapHandler implements RequestHandler {
protected abstract String getApplicationId(BootstrapContext context);
public String getWidgetsetForUI(BootstrapContext context) {
- WrappedRequest request = context.getRequest();
+ VaadinRequest request = context.getRequest();
String widgetset = context.getVaadinSession()
.getUiProvider(context.getRequest(), context.getUIClass())
@@ -331,7 +331,7 @@ public abstract class BootstrapHandler implements RequestHandler {
.append("You have to enable javascript in your browser to use an application built with Vaadin.");
fragmentNodes.add(mainDiv);
- WrappedRequest request = context.getRequest();
+ VaadinRequest request = context.getRequest();
VaadinService vaadinService = request.getVaadinService();
String staticFileLocation = vaadinService
@@ -423,7 +423,7 @@ public abstract class BootstrapHandler implements RequestHandler {
throws JSONException {
JSONObject defaults = new JSONObject();
- WrappedRequest request = context.getRequest();
+ VaadinRequest request = context.getRequest();
VaadinSession session = context.getVaadinSession();
VaadinService vaadinService = request.getVaadinService();
@@ -486,7 +486,7 @@ public abstract class BootstrapHandler implements RequestHandler {
* @return
*/
public String getThemeUri(BootstrapContext context, String themeName) {
- WrappedRequest request = context.getRequest();
+ VaadinRequest request = context.getRequest();
final String staticFilePath = request.getVaadinService()
.getStaticFileLocation(request);
return staticFilePath + "/" + VaadinServlet.THEME_DIRECTORY_PATH
@@ -514,7 +514,7 @@ public abstract class BootstrapHandler implements RequestHandler {
public String findAndEscapeThemeName(BootstrapContext context) {
String themeName = getThemeName(context);
if (themeName == null) {
- WrappedRequest request = context.getRequest();
+ VaadinRequest request = context.getRequest();
themeName = request.getVaadinService().getConfiguredTheme(request);
}
@@ -525,7 +525,7 @@ public abstract class BootstrapHandler implements RequestHandler {
return themeName;
}
- protected void writeError(WrappedResponse response, Throwable e)
+ protected void writeError(VaadinResponse response, Throwable e)
throws IOException {
response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
e.getLocalizedMessage());
diff --git a/server/src/com/vaadin/server/BootstrapPageResponse.java b/server/src/com/vaadin/server/BootstrapPageResponse.java
index 0b98c59e22..72bc2163e6 100644
--- a/server/src/com/vaadin/server/BootstrapPageResponse.java
+++ b/server/src/com/vaadin/server/BootstrapPageResponse.java
@@ -38,13 +38,13 @@ public class BootstrapPageResponse extends BootstrapResponse {
/**
* Crate a new bootstrap page response.
*
- * @see BootstrapResponse#BootstrapResponse(BootstrapHandler,
- * WrappedRequest, VaadinSession, Class)
+ * @see BootstrapResponse#BootstrapResponse(BootstrapHandler, VaadinRequest,
+ * VaadinSession, Class)
*
* @param handler
* the bootstrap handler that is firing the event
* @param request
- * the wrapped request for which the bootstrap page should be
+ * the Vaadin request for which the bootstrap page should be
* generated
* @param session
* the vaadin session for which the bootstrap page should be
@@ -57,7 +57,7 @@ public class BootstrapPageResponse extends BootstrapResponse {
* a map into which header data can be added
*/
public BootstrapPageResponse(BootstrapHandler handler,
- WrappedRequest request, VaadinSession session,
+ VaadinRequest request, VaadinSession session,
Class<? extends UI> uiClass, Document document,
Map<String, Object> headers) {
super(handler, request, session, uiClass);
@@ -69,7 +69,7 @@ public class BootstrapPageResponse extends BootstrapResponse {
* Sets a header value that will be added to the HTTP response. If the
* header had already been set, the new value overwrites the previous one.
*
- * @see WrappedResponse#setHeader(String, String)
+ * @see VaadinResponse#setHeader(String, String)
*
* @param name
* the name of the header
@@ -86,7 +86,7 @@ public class BootstrapPageResponse extends BootstrapResponse {
* overwrites the previous one.
*
* @see #setHeader(String, String)
- * @see WrappedResponse#setDateHeader(String, long)
+ * @see VaadinResponse#setDateHeader(String, long)
*
* @param name
* the name of the header
diff --git a/server/src/com/vaadin/server/BootstrapResponse.java b/server/src/com/vaadin/server/BootstrapResponse.java
index c0c8d4e699..86b37de22e 100644
--- a/server/src/com/vaadin/server/BootstrapResponse.java
+++ b/server/src/com/vaadin/server/BootstrapResponse.java
@@ -28,7 +28,7 @@ import com.vaadin.ui.UI;
* @since 7.0.0
*/
public abstract class BootstrapResponse extends EventObject {
- private final WrappedRequest request;
+ private final VaadinRequest request;
private final VaadinSession session;
private final Class<? extends UI> uiClass;
@@ -38,14 +38,14 @@ public abstract class BootstrapResponse extends EventObject {
* @param handler
* the bootstrap handler that is firing the event
* @param request
- * the wrapped request for which the bootstrap page should be
+ * the Vaadin request for which the bootstrap page should be
* generated
* @param session
* the session for which the bootstrap page should be generated
* @param uiClass
* the class of the UI that will be displayed on the page
*/
- public BootstrapResponse(BootstrapHandler handler, WrappedRequest request,
+ public BootstrapResponse(BootstrapHandler handler, VaadinRequest request,
VaadinSession session, Class<? extends UI> uiClass) {
super(handler);
this.request = request;
@@ -65,14 +65,14 @@ public abstract class BootstrapResponse extends EventObject {
/**
* 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 {@link WrappedRequest#getBrowserDetails()}
+ * information. Please note that {@link 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.
*
- * @return the wrapped request that is being handled
+ * @return the Vaadin request that is being handled
*/
- public WrappedRequest getRequest() {
+ public VaadinRequest getRequest() {
return request;
}
diff --git a/server/src/com/vaadin/server/ClientConnector.java b/server/src/com/vaadin/server/ClientConnector.java
index 65c0ca366a..b38f2a9037 100644
--- a/server/src/com/vaadin/server/ClientConnector.java
+++ b/server/src/com/vaadin/server/ClientConnector.java
@@ -237,6 +237,6 @@ public interface ClientConnector extends Connector, RpcTarget {
* @throws IOException
* if there is a problem generating a response.
*/
- public boolean handleConnectorRequest(WrappedRequest request,
- WrappedResponse response, String path) throws IOException;
+ public boolean handleConnectorRequest(VaadinRequest request,
+ VaadinResponse response, String path) throws IOException;
}
diff --git a/server/src/com/vaadin/server/CombinedRequest.java b/server/src/com/vaadin/server/CombinedRequest.java
index 91c5093ece..0a7da84049 100644
--- a/server/src/com/vaadin/server/CombinedRequest.java
+++ b/server/src/com/vaadin/server/CombinedRequest.java
@@ -29,17 +29,17 @@ import org.json.JSONException;
import org.json.JSONObject;
/**
- * A {@link WrappedRequest} with path and parameters from one request and
- * {@link WrappedRequest.BrowserDetails} extracted from another request.
+ * A {@link VaadinRequest} with path and parameters from one request and
+ * {@link VaadinRequest.BrowserDetails} extracted from another request.
*
* This class is intended to be used for a two request initialization where the
* first request fetches the actual application page and the second request
* contains information extracted from the browser using javascript.
*
*/
-public class CombinedRequest implements WrappedRequest {
+public class CombinedRequest implements VaadinRequest {
- private final WrappedRequest secondRequest;
+ private final VaadinRequest secondRequest;
private Map<String, String[]> parameterMap;
/**
@@ -52,7 +52,7 @@ public class CombinedRequest implements WrappedRequest {
* @throws JSONException
* if the initialParams parameter can not be decoded
*/
- public CombinedRequest(WrappedRequest secondRequest) throws JSONException {
+ public CombinedRequest(VaadinRequest secondRequest) throws JSONException {
this.secondRequest = secondRequest;
HashMap<String, String[]> map = new HashMap<String, String[]>();
@@ -156,9 +156,9 @@ public class CombinedRequest implements WrappedRequest {
* Gets the original second request. This can be used e.g. if a request
* parameter from the second request is required.
*
- * @return the original second wrapped request
+ * @return the original second Vaadin request
*/
- public WrappedRequest getSecondRequest() {
+ public VaadinRequest getSecondRequest() {
return secondRequest;
}
diff --git a/server/src/com/vaadin/server/ConnectorResourceHandler.java b/server/src/com/vaadin/server/ConnectorResourceHandler.java
index 50e5377e8d..1edd497d7c 100644
--- a/server/src/com/vaadin/server/ConnectorResourceHandler.java
+++ b/server/src/com/vaadin/server/ConnectorResourceHandler.java
@@ -25,7 +25,7 @@ public class ConnectorResourceHandler implements RequestHandler {
@Override
public boolean handleRequest(VaadinSession session,
- WrappedRequest request, WrappedResponse response)
+ VaadinRequest request, VaadinResponse response)
throws IOException {
String requestPath = request.getRequestPathInfo();
if (requestPath == null) {
@@ -68,8 +68,8 @@ public class ConnectorResourceHandler implements RequestHandler {
}
}
- private static boolean error(WrappedRequest request,
- WrappedResponse response, String logMessage) throws IOException {
+ private static boolean error(VaadinRequest request,
+ VaadinResponse response, String logMessage) throws IOException {
getLogger().log(Level.WARNING, logMessage);
response.sendError(HttpServletResponse.SC_NOT_FOUND,
request.getRequestPathInfo() + " can not be found");
diff --git a/server/src/com/vaadin/server/DefaultUIProvider.java b/server/src/com/vaadin/server/DefaultUIProvider.java
index c4a8069269..87bb7d27c2 100644
--- a/server/src/com/vaadin/server/DefaultUIProvider.java
+++ b/server/src/com/vaadin/server/DefaultUIProvider.java
@@ -21,7 +21,7 @@ import com.vaadin.ui.UI;
public class DefaultUIProvider extends AbstractUIProvider {
@Override
- public Class<? extends UI> getUIClass(WrappedRequest request) {
+ public Class<? extends UI> getUIClass(VaadinRequest request) {
Object uiClassNameObj = request.getVaadinService()
.getDeploymentConfiguration().getInitParameters()
.getProperty(VaadinSession.UI_PARAMETER);
diff --git a/server/src/com/vaadin/server/DownloadStream.java b/server/src/com/vaadin/server/DownloadStream.java
index 0c00f96832..3ba8b3d39a 100644
--- a/server/src/com/vaadin/server/DownloadStream.java
+++ b/server/src/com/vaadin/server/DownloadStream.java
@@ -220,7 +220,7 @@ public class DownloadStream implements Serializable {
}
/**
- * Writes this download stream to a wrapped response. This takes care of
+ * Writes this download stream to a Vaadin response. This takes care of
* setting response headers according to what is defined in this download
* stream ({@link #getContentType()}, {@link #getCacheTime()},
* {@link #getFileName()}) and transferring the data from the stream (
@@ -233,14 +233,14 @@ public class DownloadStream implements Serializable {
* @param request
* the request for which the response should be written
* @param response
- * the wrapped response to write this download stream to
+ * the Vaadin response to write this download stream to
*
* @throws IOException
- * passed through from the wrapped response
+ * passed through from the Vaadin response
*
* @since 7.0
*/
- public void writeResponse(WrappedRequest request, WrappedResponse response)
+ public void writeResponse(VaadinRequest request, VaadinResponse response)
throws IOException {
if (getParameter("Location") != null) {
response.setStatus(HttpServletResponse.SC_MOVED_TEMPORARILY);
diff --git a/server/src/com/vaadin/server/DragAndDropService.java b/server/src/com/vaadin/server/DragAndDropService.java
index 2d0a9e73e9..69ab997b18 100644
--- a/server/src/com/vaadin/server/DragAndDropService.java
+++ b/server/src/com/vaadin/server/DragAndDropService.java
@@ -342,8 +342,8 @@ public class DragAndDropService implements VariableOwner, ClientConnector {
}
@Override
- public boolean handleConnectorRequest(WrappedRequest request,
- WrappedResponse response, String path) throws IOException {
+ public boolean handleConnectorRequest(VaadinRequest request,
+ VaadinResponse response, String path) throws IOException {
return false;
}
}
diff --git a/server/src/com/vaadin/server/DynamicConnectorResource.java b/server/src/com/vaadin/server/DynamicConnectorResource.java
index 8269f261f7..264afa3f59 100644
--- a/server/src/com/vaadin/server/DynamicConnectorResource.java
+++ b/server/src/com/vaadin/server/DynamicConnectorResource.java
@@ -23,7 +23,7 @@ import com.vaadin.service.FileTypeResolver;
/**
* A resource that is served by calling
- * {@link ClientConnector#handleConnectorRequest(WrappedRequest, WrappedResponse, String)}
+ * {@link ClientConnector#handleConnectorRequest(VaadinRequest, VaadinResponse, String)}
* with appropriate parameters.
*
* @author Vaadin Ltd
@@ -39,7 +39,7 @@ public class DynamicConnectorResource implements Resource {
/**
* Creates a DynamicConnectorResoruce for the given connector that will be
* served by calling
- * {@link ClientConnector#handleConnectorRequest(WrappedRequest, WrappedResponse, String)}
+ * {@link ClientConnector#handleConnectorRequest(VaadinRequest, VaadinResponse, String)}
* with the given path.
*
* @param connector
@@ -54,7 +54,7 @@ public class DynamicConnectorResource implements Resource {
/**
* Creates a DynamicConnectorResoruce for the given connector that will be
* served by calling
- * {@link ClientConnector#handleConnectorRequest(WrappedRequest, WrappedResponse, String)}
+ * {@link ClientConnector#handleConnectorRequest(VaadinRequest, VaadinResponse, String)}
* with the given path and the given request parameters.
*
* @param connector
diff --git a/server/src/com/vaadin/server/GAEVaadinServlet.java b/server/src/com/vaadin/server/GAEVaadinServlet.java
index 44aca14fe3..df7daedfb8 100644
--- a/server/src/com/vaadin/server/GAEVaadinServlet.java
+++ b/server/src/com/vaadin/server/GAEVaadinServlet.java
@@ -133,8 +133,8 @@ public class GAEVaadinServlet extends VaadinServlet {
private static final String PROPERTY_APPENGINE_EXPIRES = "_expires";
protected void sendDeadlineExceededNotification(
- WrappedHttpServletRequest request,
- WrappedHttpServletResponse response) throws IOException {
+ VaadinServletRequest request,
+ VaadinServletResponse response) throws IOException {
criticalNotification(
request,
response,
@@ -144,8 +144,8 @@ public class GAEVaadinServlet extends VaadinServlet {
}
protected void sendNotSerializableNotification(
- WrappedHttpServletRequest request,
- WrappedHttpServletResponse response) throws IOException {
+ VaadinServletRequest request,
+ VaadinServletResponse response) throws IOException {
criticalNotification(
request,
response,
@@ -156,8 +156,8 @@ public class GAEVaadinServlet extends VaadinServlet {
}
protected void sendCriticalErrorNotification(
- WrappedHttpServletRequest request,
- WrappedHttpServletResponse response) throws IOException {
+ VaadinServletRequest request,
+ VaadinServletResponse response) throws IOException {
criticalNotification(
request,
response,
@@ -171,9 +171,9 @@ public class GAEVaadinServlet extends VaadinServlet {
protected void service(HttpServletRequest unwrappedRequest,
HttpServletResponse unwrappedResponse) throws ServletException,
IOException {
- WrappedHttpServletRequest request = new WrappedHttpServletRequest(
+ VaadinServletRequest request = new VaadinServletRequest(
unwrappedRequest, getVaadinService());
- WrappedHttpServletResponse response = new WrappedHttpServletResponse(
+ VaadinServletResponse response = new VaadinServletResponse(
unwrappedResponse, getVaadinService());
if (isCleanupRequest(request)) {
@@ -342,7 +342,7 @@ public class GAEVaadinServlet extends VaadinServlet {
// will create new context if the above did not
try {
return getVaadinService().findVaadinSession(
- createWrappedRequest(request));
+ createVaadinRequest(request));
} catch (Exception e) {
throw new ServletException(e);
}
diff --git a/server/src/com/vaadin/server/GlobalResourceHandler.java b/server/src/com/vaadin/server/GlobalResourceHandler.java
index 33a965369d..a7fff8ae64 100644
--- a/server/src/com/vaadin/server/GlobalResourceHandler.java
+++ b/server/src/com/vaadin/server/GlobalResourceHandler.java
@@ -66,7 +66,7 @@ public class GlobalResourceHandler implements RequestHandler {
@Override
public boolean handleRequest(VaadinSession session,
- WrappedRequest request, WrappedResponse response)
+ VaadinRequest request, VaadinResponse response)
throws IOException {
String pathInfo = request.getRequestPathInfo();
if (pathInfo == null) {
@@ -225,8 +225,8 @@ public class GlobalResourceHandler implements RequestHandler {
return Logger.getLogger(GlobalResourceHandler.class.getName());
}
- private static boolean error(WrappedRequest request,
- WrappedResponse response, String logMessage) throws IOException {
+ private static boolean error(VaadinRequest request,
+ VaadinResponse response, String logMessage) throws IOException {
getLogger().log(Level.WARNING, logMessage);
response.sendError(HttpServletResponse.SC_NOT_FOUND,
request.getRequestPathInfo() + " can not be found");
diff --git a/server/src/com/vaadin/server/LegacyApplicationUIProvider.java b/server/src/com/vaadin/server/LegacyApplicationUIProvider.java
index c0f64088b4..0681d0bee1 100644
--- a/server/src/com/vaadin/server/LegacyApplicationUIProvider.java
+++ b/server/src/com/vaadin/server/LegacyApplicationUIProvider.java
@@ -30,7 +30,7 @@ public abstract class LegacyApplicationUIProvider extends AbstractUIProvider {
.compile("^/?([^/]+).*");
@Override
- public Class<? extends UI> getUIClass(WrappedRequest request) {
+ public Class<? extends UI> getUIClass(VaadinRequest request) {
UI uiInstance = getUIInstance(request);
if (uiInstance != null) {
return uiInstance.getClass();
@@ -39,12 +39,12 @@ public abstract class LegacyApplicationUIProvider extends AbstractUIProvider {
}
@Override
- public UI createInstance(WrappedRequest request, Class<? extends UI> type) {
+ public UI createInstance(VaadinRequest request, Class<? extends UI> type) {
return getUIInstance(request);
}
@Override
- public String getTheme(WrappedRequest request, Class<? extends UI> uiClass) {
+ public String getTheme(VaadinRequest request, Class<? extends UI> uiClass) {
LegacyApplication application = getApplication();
if (application != null) {
return application.getTheme();
@@ -54,7 +54,7 @@ public abstract class LegacyApplicationUIProvider extends AbstractUIProvider {
}
@Override
- public String getPageTitle(WrappedRequest request,
+ public String getPageTitle(VaadinRequest request,
Class<? extends UI> uiClass) {
UI uiInstance = getUIInstance(request);
if (uiInstance != null) {
@@ -64,7 +64,7 @@ public abstract class LegacyApplicationUIProvider extends AbstractUIProvider {
}
}
- private UI getUIInstance(WrappedRequest request) {
+ private UI getUIInstance(VaadinRequest request) {
String pathInfo = request.getRequestPathInfo();
String name = null;
if (pathInfo != null && pathInfo.length() > 0) {
@@ -94,7 +94,7 @@ public abstract class LegacyApplicationUIProvider extends AbstractUIProvider {
* {@inheritDoc}
*/
@Override
- public UI getExistingUI(WrappedRequest request) {
+ public UI getExistingUI(VaadinRequest request) {
UI uiInstance = getUIInstance(request);
if (uiInstance == null || uiInstance.getUIId() == -1) {
// Not initialized -> Let go through createUIInstance to make it
diff --git a/server/src/com/vaadin/server/LegacyVaadinPortlet.java b/server/src/com/vaadin/server/LegacyVaadinPortlet.java
index 6aa8fb7165..de970d5c17 100644
--- a/server/src/com/vaadin/server/LegacyVaadinPortlet.java
+++ b/server/src/com/vaadin/server/LegacyVaadinPortlet.java
@@ -54,7 +54,7 @@ public class LegacyVaadinPortlet extends VaadinPortlet {
VaadinSessionInitializeEvent event)
throws ServiceException {
try {
- onVaadinSessionStarted(WrappedPortletRequest
+ onVaadinSessionStarted(VaadinPortletRequest
.cast(event.getRequest()),
(VaadinPortletSession) event
.getVaadinSession());
@@ -85,7 +85,7 @@ public class LegacyVaadinPortlet extends VaadinPortlet {
}
}
- private void onVaadinSessionStarted(WrappedPortletRequest request,
+ private void onVaadinSessionStarted(VaadinPortletRequest request,
VaadinPortletSession session) throws PortletException {
session.addUIProvider(provider);
}
diff --git a/server/src/com/vaadin/server/LegacyVaadinServlet.java b/server/src/com/vaadin/server/LegacyVaadinServlet.java
index ace29e9e1f..69655eba34 100644
--- a/server/src/com/vaadin/server/LegacyVaadinServlet.java
+++ b/server/src/com/vaadin/server/LegacyVaadinServlet.java
@@ -90,7 +90,7 @@ public class LegacyVaadinServlet extends VaadinServlet {
return true;
}
- private void onVaadinSessionStarted(WrappedRequest wrappedRequest,
+ private void onVaadinSessionStarted(VaadinRequest request,
VaadinSession session) throws ServletException {
session.addUIProvider(provider);
}
diff --git a/server/src/com/vaadin/server/Page.java b/server/src/com/vaadin/server/Page.java
index bfbfe53429..e17643eb81 100644
--- a/server/src/com/vaadin/server/Page.java
+++ b/server/src/com/vaadin/server/Page.java
@@ -24,7 +24,7 @@ import java.util.LinkedList;
import java.util.List;
import com.vaadin.event.EventRouter;
-import com.vaadin.server.WrappedRequest.BrowserDetails;
+import com.vaadin.server.VaadinRequest.BrowserDetails;
import com.vaadin.shared.ui.BorderStyle;
import com.vaadin.shared.ui.ui.PageClientRpc;
import com.vaadin.shared.ui.ui.UIConstants;
@@ -404,7 +404,7 @@ public class Page implements Serializable {
return fragment;
}
- public void init(WrappedRequest request) {
+ public void init(VaadinRequest request) {
BrowserDetails browserDetails = request.getBrowserDetails();
if (browserDetails != null) {
fragment = browserDetails.getUriFragment();
diff --git a/server/src/com/vaadin/server/PortletCommunicationManager.java b/server/src/com/vaadin/server/PortletCommunicationManager.java
index c307c50348..449d39b38b 100644
--- a/server/src/com/vaadin/server/PortletCommunicationManager.java
+++ b/server/src/com/vaadin/server/PortletCommunicationManager.java
@@ -53,9 +53,9 @@ public class PortletCommunicationManager extends AbstractCommunicationManager {
return new BootstrapHandler() {
@Override
public boolean handleRequest(VaadinSession session,
- WrappedRequest request, WrappedResponse response)
+ VaadinRequest request, VaadinResponse response)
throws IOException {
- PortletRequest portletRequest = WrappedPortletRequest.cast(
+ PortletRequest portletRequest = VaadinPortletRequest.cast(
request).getPortletRequest();
if (portletRequest instanceof RenderRequest) {
return super.handleRequest(session, request, response);
@@ -66,7 +66,7 @@ public class PortletCommunicationManager extends AbstractCommunicationManager {
@Override
protected String getApplicationId(BootstrapContext context) {
- PortletRequest portletRequest = WrappedPortletRequest.cast(
+ PortletRequest portletRequest = VaadinPortletRequest.cast(
context.getRequest()).getPortletRequest();
/*
* We need to generate a unique ID because some portals already
@@ -81,7 +81,7 @@ public class PortletCommunicationManager extends AbstractCommunicationManager {
}
private RenderResponse getRenderResponse(BootstrapContext context) {
- PortletResponse response = ((WrappedPortletResponse) context
+ PortletResponse response = ((VaadinPortletResponse) context
.getResponse()).getPortletResponse();
RenderResponse renderResponse = (RenderResponse) response;
@@ -115,7 +115,7 @@ public class PortletCommunicationManager extends AbstractCommunicationManager {
throws JSONException, IOException {
// fixed base theme to use - all portal pages with Vaadin
// applications will load this exactly once
- String portalTheme = WrappedPortletRequest.cast(
+ String portalTheme = VaadinPortletRequest.cast(
context.getRequest()).getPortalProperty(
VaadinPortlet.PORTAL_PARAMETER_VAADIN_THEME);
if (portalTheme != null
@@ -143,9 +143,9 @@ public class PortletCommunicationManager extends AbstractCommunicationManager {
BootstrapContext context) throws JSONException,
PaintException {
JSONObject parameters = super.getApplicationParameters(context);
- WrappedPortletResponse wrappedPortletResponse = (WrappedPortletResponse) context
+ VaadinPortletResponse response = (VaadinPortletResponse) context
.getResponse();
- MimeResponse portletResponse = (MimeResponse) wrappedPortletResponse
+ MimeResponse portletResponse = (MimeResponse) response
.getPortletResponse();
ResourceURL resourceURL = portletResponse.createResourceURL();
resourceURL.setResourceID("browserDetails");
diff --git a/server/src/com/vaadin/server/RequestHandler.java b/server/src/com/vaadin/server/RequestHandler.java
index c2409af2d7..8eb2d6d746 100644
--- a/server/src/com/vaadin/server/RequestHandler.java
+++ b/server/src/com/vaadin/server/RequestHandler.java
@@ -41,7 +41,7 @@ public interface RequestHandler extends Serializable {
* handlers should be called, otherwise false
* @throws IOException
*/
- boolean handleRequest(VaadinSession session, WrappedRequest request,
- WrappedResponse response) throws IOException;
+ boolean handleRequest(VaadinSession session, VaadinRequest request,
+ VaadinResponse response) throws IOException;
}
diff --git a/server/src/com/vaadin/server/ServletPortletHelper.java b/server/src/com/vaadin/server/ServletPortletHelper.java
index 6b686c59c3..536af12239 100644
--- a/server/src/com/vaadin/server/ServletPortletHelper.java
+++ b/server/src/com/vaadin/server/ServletPortletHelper.java
@@ -77,7 +77,7 @@ class ServletPortletHelper implements Serializable {
}
}
- private static boolean hasPathPrefix(WrappedRequest request, String prefix) {
+ private static boolean hasPathPrefix(VaadinRequest request, String prefix) {
String pathInfo = request.getRequestPathInfo();
if (pathInfo == null) {
@@ -95,24 +95,24 @@ class ServletPortletHelper implements Serializable {
return false;
}
- public static boolean isFileUploadRequest(WrappedRequest request) {
+ public static boolean isFileUploadRequest(VaadinRequest request) {
return hasPathPrefix(request, UPLOAD_URL_PREFIX);
}
- public static boolean isConnectorResourceRequest(WrappedRequest request) {
+ public static boolean isConnectorResourceRequest(VaadinRequest request) {
return hasPathPrefix(request,
ApplicationConstants.CONNECTOR_RESOURCE_PREFIX + "/");
}
- public static boolean isUIDLRequest(WrappedRequest request) {
+ public static boolean isUIDLRequest(VaadinRequest request) {
return hasPathPrefix(request, ApplicationConstants.UIDL_REQUEST_PATH);
}
- public static boolean isAppRequest(WrappedRequest request) {
+ public static boolean isAppRequest(VaadinRequest request) {
return hasPathPrefix(request, ApplicationConstants.APP_REQUEST_PATH);
}
- public static boolean isHeartbeatRequest(WrappedRequest request) {
+ public static boolean isHeartbeatRequest(VaadinRequest request) {
return hasPathPrefix(request,
ApplicationConstants.HEARTBEAT_REQUEST_PATH);
}
diff --git a/server/src/com/vaadin/server/UIProvider.java b/server/src/com/vaadin/server/UIProvider.java
index a15a50a42a..81a53fae15 100644
--- a/server/src/com/vaadin/server/UIProvider.java
+++ b/server/src/com/vaadin/server/UIProvider.java
@@ -20,12 +20,11 @@ import com.vaadin.annotations.Widgetset;
import com.vaadin.ui.UI;
public interface UIProvider {
- public Class<? extends UI> getUIClass(WrappedRequest request);
+ public Class<? extends UI> getUIClass(VaadinRequest request);
- public UI createInstance(WrappedRequest request,
- Class<? extends UI> type);
+ public UI createInstance(VaadinRequest request, Class<? extends UI> type);
- public String getPageTitle(WrappedRequest request,
+ public String getPageTitle(VaadinRequest request,
Class<? extends UI> uiClass);
/**
@@ -40,7 +39,7 @@ public interface UIProvider {
* @return <code>true</code>if the same UI instance should be reused e.g.
* when the browser window is refreshed.
*/
- public boolean isPreservedOnRefresh(WrappedRequest request,
+ public boolean isPreservedOnRefresh(VaadinRequest request,
Class<? extends UI> uiClass);
/**
@@ -51,14 +50,14 @@ public interface UIProvider {
* defined for the UI class.
*
* @param request
- * the wrapped request for which to get a widgetset
+ * the Vaadin request for which to get a widgetset
* @param uiClass
* the UI class to get a widgetset for
* @return the name of the widgetset, or <code>null</code> if the default
* widgetset should be used
*
*/
- public String getWidgetset(WrappedRequest request,
+ public String getWidgetset(VaadinRequest request,
Class<? extends UI> uiClass);
/**
@@ -73,8 +72,7 @@ public interface UIProvider {
* should be used
*
*/
- public String getTheme(WrappedRequest request,
- Class<? extends UI> uiClass);
+ public String getTheme(VaadinRequest request, Class<? extends UI> uiClass);
/**
* Finds an existing {@link UI} for a request.
@@ -85,14 +83,14 @@ public interface UIProvider {
* <p>
* If no UI provider returns an existing UI, the framework does also check
* the window.name for an existing instance with
- * {@link #isPreservedOnRefresh(WrappedRequest, Class)} before falling back to
- * bootstrapping and creating a new UI instance.
+ * {@link #isPreservedOnRefresh(VaadinRequest, Class)} before falling back
+ * to bootstrapping and creating a new UI instance.
*
* @param request
* the request for which a UI is desired
* @return a UI belonging to the request, or <code>null</code> if this UI
* provider doesn't have an existing UI for the request.
*/
- public UI getExistingUI(WrappedRequest request);
+ public UI getExistingUI(VaadinRequest request);
}
diff --git a/server/src/com/vaadin/server/UnsupportedBrowserHandler.java b/server/src/com/vaadin/server/UnsupportedBrowserHandler.java
index 38ac14b2d2..8525dc29ca 100644
--- a/server/src/com/vaadin/server/UnsupportedBrowserHandler.java
+++ b/server/src/com/vaadin/server/UnsupportedBrowserHandler.java
@@ -35,7 +35,7 @@ public class UnsupportedBrowserHandler implements RequestHandler {
@Override
public boolean handleRequest(VaadinSession session,
- WrappedRequest request, WrappedResponse response)
+ VaadinRequest request, VaadinResponse response)
throws IOException {
if (request.getBrowserDetails() != null) {
@@ -62,8 +62,8 @@ public class UnsupportedBrowserHandler implements RequestHandler {
* @param response
* @throws IOException
*/
- protected void writeBrowserTooOldPage(WrappedRequest request,
- WrappedResponse response) throws IOException {
+ protected void writeBrowserTooOldPage(VaadinRequest request,
+ VaadinResponse response) throws IOException {
Writer page = response.getWriter();
WebBrowser b = request.getBrowserDetails().getWebBrowser();
diff --git a/server/src/com/vaadin/server/VaadinPortlet.java b/server/src/com/vaadin/server/VaadinPortlet.java
index 2027431f0b..83d152d653 100644
--- a/server/src/com/vaadin/server/VaadinPortlet.java
+++ b/server/src/com/vaadin/server/VaadinPortlet.java
@@ -88,7 +88,7 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
}
@Override
- public String getConfiguredWidgetset(WrappedRequest request) {
+ public String getConfiguredWidgetset(VaadinRequest request) {
String widgetset = getDeploymentConfiguration()
.getApplicationOrSystemProperty(PARAMETER_WIDGETSET, null);
@@ -96,7 +96,7 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
if (widgetset == null) {
// If no widgetset defined for the application, check the
// portal property
- widgetset = WrappedPortletRequest.cast(request)
+ widgetset = VaadinPortletRequest.cast(request)
.getPortalProperty(PORTAL_PARAMETER_VAADIN_WIDGETSET);
}
@@ -109,10 +109,10 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
}
@Override
- public String getConfiguredTheme(WrappedRequest request) {
+ public String getConfiguredTheme(VaadinRequest request) {
// is the default theme defined by the portal?
- String themeName = WrappedPortletRequest.cast(request)
+ String themeName = VaadinPortletRequest.cast(request)
.getPortalProperty(Constants.PORTAL_PARAMETER_VAADIN_THEME);
if (themeName == null) {
@@ -124,13 +124,13 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
}
@Override
- public boolean isStandalone(WrappedRequest request) {
+ public boolean isStandalone(VaadinRequest request) {
return false;
}
@Override
- public String getStaticFileLocation(WrappedRequest request) {
- String staticFileLocation = WrappedPortletRequest.cast(request)
+ public String getStaticFileLocation(VaadinRequest request) {
+ String staticFileLocation = VaadinPortletRequest.cast(request)
.getPortalProperty(
Constants.PORTAL_PARAMETER_VAADIN_RESOURCE_PATH);
if (staticFileLocation != null) {
@@ -179,7 +179,7 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
}
@Override
- protected boolean requestCanCreateSession(WrappedRequest request) {
+ protected boolean requestCanCreateSession(VaadinRequest request) {
RequestType requestType = getRequestType(request);
if (requestType == RequestType.RENDER) {
// In most cases the first request is a render request that
@@ -205,12 +205,12 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
* @deprecated might be refactored or removed before 7.0.0
*/
@Deprecated
- protected RequestType getRequestType(WrappedRequest request) {
+ protected RequestType getRequestType(VaadinRequest request) {
RequestType type = (RequestType) request
.getAttribute(RequestType.class.getName());
if (type == null) {
type = getPortlet().getRequestType(
- WrappedPortletRequest.cast(request));
+ VaadinPortletRequest.cast(request));
request.setAttribute(RequestType.class.getName(), type);
}
return type;
@@ -223,9 +223,9 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
}
public static PortletRequest getCurrentPortletRequest() {
- WrappedRequest currentRequest = VaadinService.getCurrentRequest();
+ VaadinRequest currentRequest = VaadinService.getCurrentRequest();
try {
- WrappedPortletRequest request = WrappedPortletRequest
+ VaadinPortletRequest request = VaadinPortletRequest
.cast(currentRequest);
if (request != null) {
return request.getPortletRequest();
@@ -237,21 +237,21 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
}
}
- public static WrappedPortletResponse getCurrentResponse() {
- return (WrappedPortletResponse) VaadinService.getCurrentResponse();
+ public static VaadinPortletResponse getCurrentResponse() {
+ return (VaadinPortletResponse) VaadinService.getCurrentResponse();
}
@Override
- protected VaadinSession createVaadinSession(WrappedRequest request)
+ protected VaadinSession createVaadinSession(VaadinRequest request)
throws ServiceException {
return new VaadinPortletSession();
}
}
- public static class WrappedHttpAndPortletRequest extends
- WrappedPortletRequest {
+ public static class VaadinHttpAndPortletRequest extends
+ VaadinPortletRequest {
- public WrappedHttpAndPortletRequest(PortletRequest request,
+ public VaadinHttpAndPortletRequest(PortletRequest request,
HttpServletRequest originalRequest, PortletService vaadinService) {
super(request, vaadinService);
this.originalRequest = originalRequest;
@@ -292,9 +292,8 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
}
}
- public static class WrappedGateinRequest extends
- WrappedHttpAndPortletRequest {
- public WrappedGateinRequest(PortletRequest request,
+ public static class VaadinGateinRequest extends VaadinHttpAndPortletRequest {
+ public VaadinGateinRequest(PortletRequest request,
PortletService vaadinService) {
super(request, getOriginalRequest(request), vaadinService);
}
@@ -314,10 +313,10 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
}
}
- public static class WrappedLiferayRequest extends
- WrappedHttpAndPortletRequest {
+ public static class VaadinLiferayRequest extends
+ VaadinHttpAndPortletRequest {
- public WrappedLiferayRequest(PortletRequest request,
+ public VaadinLiferayRequest(PortletRequest request,
PortletService vaadinService) {
super(request, getOriginalRequest(request), vaadinService);
}
@@ -358,11 +357,11 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
}
@Override
- public void criticalNotification(WrappedRequest request,
- WrappedResponse response, String cap, String msg,
+ public void criticalNotification(VaadinRequest request,
+ VaadinResponse response, String cap, String msg,
String details, String outOfSyncURL) throws IOException {
- portlet.criticalNotification(WrappedPortletRequest.cast(request),
- (WrappedPortletResponse) response, cap, msg, details,
+ portlet.criticalNotification(VaadinPortletRequest.cast(request),
+ (VaadinPortletResponse) response, cap, msg, details,
outOfSyncURL);
}
}
@@ -465,30 +464,30 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
}
/**
- * @param wrappedRequest
+ * @param vaadinRequest
* @return
*
* @deprecated might be refactored or removed before 7.0.0
*/
@Deprecated
- protected RequestType getRequestType(WrappedPortletRequest wrappedRequest) {
- PortletRequest request = wrappedRequest.getPortletRequest();
+ protected RequestType getRequestType(VaadinPortletRequest vaadinRequest) {
+ PortletRequest request = vaadinRequest.getPortletRequest();
if (request instanceof RenderRequest) {
return RequestType.RENDER;
} else if (request instanceof ResourceRequest) {
ResourceRequest resourceRequest = (ResourceRequest) request;
- if (ServletPortletHelper.isUIDLRequest(wrappedRequest)) {
+ if (ServletPortletHelper.isUIDLRequest(vaadinRequest)) {
return RequestType.UIDL;
} else if (isBrowserDetailsRequest(resourceRequest)) {
return RequestType.BROWSER_DETAILS;
- } else if (ServletPortletHelper.isFileUploadRequest(wrappedRequest)) {
+ } else if (ServletPortletHelper.isFileUploadRequest(vaadinRequest)) {
return RequestType.FILE_UPLOAD;
} else if (ServletPortletHelper
- .isConnectorResourceRequest(wrappedRequest)) {
+ .isConnectorResourceRequest(vaadinRequest)) {
return RequestType.CONNECTOR_RESOURCE;
- } else if (ServletPortletHelper.isAppRequest(wrappedRequest)) {
+ } else if (ServletPortletHelper.isAppRequest(vaadinRequest)) {
return RequestType.APP;
- } else if (ServletPortletHelper.isHeartbeatRequest(wrappedRequest)) {
+ } else if (ServletPortletHelper.isHeartbeatRequest(vaadinRequest)) {
return RequestType.HEARTBEAT;
} else if (isDummyRequest(resourceRequest)) {
return RequestType.DUMMY;
@@ -534,15 +533,15 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
AbstractApplicationPortletWrapper portletWrapper = new AbstractApplicationPortletWrapper(
this);
- WrappedPortletRequest wrappedRequest = createWrappedRequest(request);
+ VaadinPortletRequest vaadinRequest = createVaadinRequest(request);
- WrappedPortletResponse wrappedResponse = new WrappedPortletResponse(
+ VaadinPortletResponse vaadinResponse = new VaadinPortletResponse(
response, getVaadinService());
- getVaadinService().setCurrentInstances(wrappedRequest,
- wrappedResponse);
+ getVaadinService().setCurrentInstances(vaadinRequest,
+ vaadinResponse);
- RequestType requestType = getRequestType(wrappedRequest);
+ RequestType requestType = getRequestType(vaadinRequest);
if (requestType == RequestType.UNKNOWN) {
handleUnknownRequest(request, response);
@@ -571,7 +570,7 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
// redirectToApplication??
vaadinSession = (VaadinPortletSession) getVaadinService()
- .findVaadinSession(wrappedRequest);
+ .findVaadinSession(vaadinRequest);
if (vaadinSession == null) {
return;
}
@@ -584,17 +583,17 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
if (requestType == RequestType.CONNECTOR_RESOURCE) {
communicationManager.serveConnectorResource(
- wrappedRequest, wrappedResponse);
+ vaadinRequest, vaadinResponse);
return;
} else if (requestType == RequestType.HEARTBEAT) {
communicationManager.handleHeartbeatRequest(
- wrappedRequest, wrappedResponse, vaadinSession);
+ vaadinRequest, vaadinResponse, vaadinSession);
return;
}
/* Update browser information from request */
vaadinSession.getBrowser().updateRequestDetails(
- wrappedRequest);
+ vaadinRequest);
sessionProcessed = true;
@@ -610,7 +609,7 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
// Both action requests and render requests are ok
// without a UI as they render the initial HTML
// and then do a second request
- uI = vaadinSession.getUIForRequest(wrappedRequest);
+ uI = vaadinSession.getUIForRequest(vaadinRequest);
break;
case BROWSER_DETAILS:
// Should not try to find a UI here as the
@@ -623,7 +622,7 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
// Not related to any UI
break;
default:
- uI = vaadinSession.getUIForRequest(wrappedRequest);
+ uI = vaadinSession.getUIForRequest(vaadinRequest);
}
// if window not found, not a problem - use null
} finally {
@@ -655,19 +654,19 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
// UI is resolved in handleFileUpload by
// PortletCommunicationManager
communicationManager.handleFileUpload(vaadinSession,
- wrappedRequest, wrappedResponse);
+ vaadinRequest, vaadinResponse);
return;
} else if (requestType == RequestType.BROWSER_DETAILS) {
communicationManager.handleBrowserDetailsRequest(
- wrappedRequest, wrappedResponse, vaadinSession);
+ vaadinRequest, vaadinResponse, vaadinSession);
return;
} else if (requestType == RequestType.UIDL) {
// Handles AJAX UIDL requests
- communicationManager.handleUidlRequest(wrappedRequest,
- wrappedResponse, portletWrapper, uI);
+ communicationManager.handleUidlRequest(vaadinRequest,
+ vaadinResponse, portletWrapper, uI);
return;
} else {
- handleOtherRequest(wrappedRequest, wrappedResponse,
+ handleOtherRequest(vaadinRequest, vaadinResponse,
requestType, vaadinSession,
communicationManager);
}
@@ -681,7 +680,7 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
getLogger()
.fine("General security exception, the security key was probably incorrect.");
} catch (final Throwable e) {
- handleServiceException(wrappedRequest, wrappedResponse,
+ handleServiceException(vaadinRequest, vaadinResponse,
vaadinSession, e);
} finally {
@@ -700,22 +699,21 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
}
/**
- * Wraps the request in a (possibly portal specific) wrapped portlet
- * request.
+ * Wraps the request in a (possibly portal specific) Vaadin portlet request.
*
* @param request
* The original PortletRequest
* @return A wrapped version of the PorletRequest
*/
- protected WrappedPortletRequest createWrappedRequest(PortletRequest request) {
+ protected VaadinPortletRequest createVaadinRequest(PortletRequest request) {
String portalInfo = request.getPortalContext().getPortalInfo()
.toLowerCase();
if (portalInfo.contains("liferay")) {
- return new WrappedLiferayRequest(request, getVaadinService());
+ return new VaadinLiferayRequest(request, getVaadinService());
} else if (portalInfo.contains("gatein")) {
- return new WrappedGateinRequest(request, getVaadinService());
+ return new VaadinGateinRequest(request, getVaadinService());
} else {
- return new WrappedPortletRequest(request, getVaadinService());
+ return new VaadinPortletRequest(request, getVaadinService());
}
}
@@ -746,8 +744,8 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
* @throws IOException
* @throws MalformedURLException
*/
- private void handleOtherRequest(WrappedPortletRequest request,
- WrappedResponse response, RequestType requestType,
+ private void handleOtherRequest(VaadinPortletRequest request,
+ VaadinResponse response, RequestType requestType,
VaadinSession vaadinSession,
PortletCommunicationManager communicationManager)
throws PortletException, IOException, MalformedURLException {
@@ -832,8 +830,8 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
handleRequest(request, response);
}
- private void handleServiceException(WrappedPortletRequest request,
- WrappedPortletResponse response, VaadinSession vaadinSession,
+ private void handleServiceException(VaadinPortletRequest request,
+ VaadinPortletResponse response, VaadinSession vaadinSession,
Throwable e) throws IOException, PortletException {
// TODO Check that this error handler is working when running inside a
// portlet
@@ -898,8 +896,8 @@ public class VaadinPortlet extends GenericPortlet implements Constants {
* @deprecated might be refactored or removed before 7.0.0
*/
@Deprecated
- void criticalNotification(WrappedPortletRequest request,
- WrappedPortletResponse response, String caption, String message,
+ void criticalNotification(VaadinPortletRequest request,
+ VaadinPortletResponse response, String caption, String message,
String details, String url) throws IOException {
// clients JS app is still running, but server application either
diff --git a/server/src/com/vaadin/server/WrappedPortletRequest.java b/server/src/com/vaadin/server/VaadinPortletRequest.java
index d4670cfd92..b0a16d01a4 100644
--- a/server/src/com/vaadin/server/WrappedPortletRequest.java
+++ b/server/src/com/vaadin/server/VaadinPortletRequest.java
@@ -35,10 +35,10 @@ import com.vaadin.shared.ApplicationConstants;
* @author Vaadin Ltd.
* @since 7.0
*
- * @see WrappedRequest
- * @see WrappedPortletResponse
+ * @see VaadinRequest
+ * @see VaadinPortletResponse
*/
-public class WrappedPortletRequest implements WrappedRequest {
+public class VaadinPortletRequest implements VaadinRequest {
private final PortletRequest request;
private final PortletService vaadinService;
@@ -51,7 +51,7 @@ public class WrappedPortletRequest implements WrappedRequest {
* @param vaadinService
* the associated vaadin service
*/
- public WrappedPortletRequest(PortletRequest request,
+ public VaadinPortletRequest(PortletRequest request,
PortletService vaadinService) {
this.request = request;
this.vaadinService = vaadinService;
@@ -191,7 +191,7 @@ public class WrappedPortletRequest implements WrappedRequest {
}
/**
- * Reads a portal property from the portal context of the wrapped request.
+ * Reads a portal property from the portal context of the Vaadin request.
*
* @param name
* a string with the name of the portal property to get
@@ -208,21 +208,21 @@ public class WrappedPortletRequest implements WrappedRequest {
}
/**
- * Helper method to get a <code>WrappedPortlettRequest</code> from a
- * <code>WrappedRequest</code>. Aside from casting, this method also takes
- * care of situations where there's another level of wrapping.
+ * Helper method to get a {@link VaadinPortletRequest} from a
+ * {@link VaadinRequest}. Aside from casting, this method also takes care of
+ * situations where there's another level of wrapping.
*
* @param request
- * a wrapped request
- * @return a wrapped portlet request
+ * a Vaadin request
+ * @return a Vaadin portlet request
* @throws ClassCastException
- * if the wrapped request doesn't wrap a portlet request
+ * if the Vaadin request doesn't wrap a portlet request
*/
- public static WrappedPortletRequest cast(WrappedRequest request) {
+ public static VaadinPortletRequest cast(VaadinRequest request) {
if (request instanceof CombinedRequest) {
CombinedRequest combinedRequest = (CombinedRequest) request;
request = combinedRequest.getSecondRequest();
}
- return (WrappedPortletRequest) request;
+ return (VaadinPortletRequest) request;
}
}
diff --git a/server/src/com/vaadin/server/WrappedPortletResponse.java b/server/src/com/vaadin/server/VaadinPortletResponse.java
index 5888c33b43..5ca1ba580e 100644
--- a/server/src/com/vaadin/server/WrappedPortletResponse.java
+++ b/server/src/com/vaadin/server/VaadinPortletResponse.java
@@ -37,10 +37,10 @@ import com.vaadin.server.VaadinPortlet.PortletService;
* @author Vaadin Ltd.
* @since 7.0
*
- * @see WrappedResponse
- * @see WrappedPortletRequest
+ * @see VaadinResponse
+ * @see VaadinPortletRequest
*/
-public class WrappedPortletResponse implements WrappedResponse {
+public class VaadinPortletResponse implements VaadinResponse {
private static final DateFormat HTTP_DATE_FORMAT = new SimpleDateFormat(
"EEE, dd MMM yyyy HH:mm:ss zzz", Locale.ENGLISH);
static {
@@ -58,7 +58,7 @@ public class WrappedPortletResponse implements WrappedResponse {
* @param vaadinService
* the associated vaadin service
*/
- public WrappedPortletResponse(PortletResponse response,
+ public VaadinPortletResponse(PortletResponse response,
PortletService vaadinService) {
this.response = response;
this.vaadinService = vaadinService;
@@ -106,7 +106,7 @@ public class WrappedPortletResponse implements WrappedResponse {
@Override
public void setCacheTime(long milliseconds) {
- WrappedHttpServletResponse.doSetCacheTime(this, milliseconds);
+ VaadinServletResponse.doSetCacheTime(this, milliseconds);
}
@Override
diff --git a/server/src/com/vaadin/server/VaadinPortletSession.java b/server/src/com/vaadin/server/VaadinPortletSession.java
index bb37bbbcf3..e5b512588d 100644
--- a/server/src/com/vaadin/server/VaadinPortletSession.java
+++ b/server/src/com/vaadin/server/VaadinPortletSession.java
@@ -74,8 +74,8 @@ public class VaadinPortletSession extends VaadinSession {
}
private PortletResponse getCurrentResponse() {
- WrappedPortletResponse currentResponse = (WrappedPortletResponse) CurrentInstance
- .get(WrappedResponse.class);
+ VaadinPortletResponse currentResponse = (VaadinPortletResponse) CurrentInstance
+ .get(VaadinResponse.class);
if (currentResponse != null) {
return currentResponse.getPortletResponse();
@@ -85,8 +85,8 @@ public class VaadinPortletSession extends VaadinSession {
}
public PortletConfig getPortletConfig() {
- WrappedPortletResponse response = (WrappedPortletResponse) CurrentInstance
- .get(WrappedResponse.class);
+ VaadinPortletResponse response = (VaadinPortletResponse) CurrentInstance
+ .get(VaadinResponse.class);
return response.getVaadinService().getPortlet().getPortletConfig();
}
diff --git a/server/src/com/vaadin/server/WrappedRequest.java b/server/src/com/vaadin/server/VaadinRequest.java
index aeaff2b384..0664d53f65 100644
--- a/server/src/com/vaadin/server/WrappedRequest.java
+++ b/server/src/com/vaadin/server/VaadinRequest.java
@@ -35,12 +35,12 @@ import com.vaadin.ui.UI;
* @author Vaadin Ltd
* @since 7.0.0
*/
-public interface WrappedRequest extends Serializable {
+public interface VaadinRequest extends Serializable {
/**
* Detailed information extracted from the browser.
*
- * @see WrappedRequest#getBrowserDetails()
+ * @see VaadinRequest#getBrowserDetails()
* @deprecated might be refactored or removed before 7.0.0
*/
@Deprecated
@@ -209,7 +209,7 @@ public interface WrappedRequest extends Serializable {
* for instance using javascript in the browser.
*
* This information is only guaranteed to be available in some special
- * cases, for instance in {@link UI#init(WrappedRequest)}.
+ * cases, for instance in {@link UI#init(VaadinRequest)}.
*
* @return the browser details, or <code>null</code> if details are not
* available
diff --git a/server/src/com/vaadin/server/WrappedResponse.java b/server/src/com/vaadin/server/VaadinResponse.java
index 90c9a356e1..bfa36015a3 100644
--- a/server/src/com/vaadin/server/WrappedResponse.java
+++ b/server/src/com/vaadin/server/VaadinResponse.java
@@ -33,7 +33,7 @@ import javax.servlet.http.HttpServletResponse;
*
* @since 7.0
*/
-public interface WrappedResponse extends Serializable {
+public interface VaadinResponse extends Serializable {
/**
* Sets the (http) status code for the response. If you want to include an
diff --git a/server/src/com/vaadin/server/VaadinService.java b/server/src/com/vaadin/server/VaadinService.java
index 4b176d5f67..766ae47fdb 100644
--- a/server/src/com/vaadin/server/VaadinService.java
+++ b/server/src/com/vaadin/server/VaadinService.java
@@ -97,7 +97,7 @@ public abstract class VaadinService implements Serializable {
* @return The location of static resources (should contain the VAADIN
* directory). Never ends with a slash (/).
*/
- public abstract String getStaticFileLocation(WrappedRequest request);
+ public abstract String getStaticFileLocation(VaadinRequest request);
/**
* Gets the widgetset that is configured for this deployment, e.g. from a
@@ -107,7 +107,7 @@ public abstract class VaadinService implements Serializable {
* the request for which a widgetset is required
* @return the name of the widgetset
*/
- public abstract String getConfiguredWidgetset(WrappedRequest request);
+ public abstract String getConfiguredWidgetset(VaadinRequest request);
/**
* Gets the theme that is configured for this deployment, e.g. from a portal
@@ -117,7 +117,7 @@ public abstract class VaadinService implements Serializable {
* the request for which a theme is required
* @return the name of the theme
*/
- public abstract String getConfiguredTheme(WrappedRequest request);
+ public abstract String getConfiguredTheme(VaadinRequest request);
/**
* Checks whether the UI will be rendered on its own in the browser or
@@ -129,7 +129,7 @@ public abstract class VaadinService implements Serializable {
* the request for which the UI is loaded
* @return a boolean indicating whether the UI should be standalone
*/
- public abstract boolean isStandalone(WrappedRequest request);
+ public abstract boolean isStandalone(VaadinRequest request);
/**
* Get the class loader to use for loading classes loaded by name, e.g.
@@ -307,7 +307,7 @@ public abstract class VaadinService implements Serializable {
* session is found and this is a request for which a new session
* shouldn't be created.
*/
- public VaadinSession findVaadinSession(WrappedRequest request)
+ public VaadinSession findVaadinSession(VaadinRequest request)
throws ServiceException, SessionExpiredException {
boolean requestCanCreateSession = requestCanCreateSession(request);
@@ -356,7 +356,7 @@ public abstract class VaadinService implements Serializable {
}
- private VaadinSession createAndRegisterSession(WrappedRequest request)
+ private VaadinSession createAndRegisterSession(VaadinRequest request)
throws ServiceException {
VaadinSession session = createVaadinSession(request);
@@ -397,7 +397,7 @@ public abstract class VaadinService implements Serializable {
* @deprecated Only used to support {@link LegacyApplication}.
*/
@Deprecated
- protected URL getApplicationUrl(WrappedRequest request)
+ protected URL getApplicationUrl(VaadinRequest request)
throws MalformedURLException {
return null;
}
@@ -421,10 +421,10 @@ public abstract class VaadinService implements Serializable {
* @throws ServletException
* @throws MalformedURLException
*/
- protected abstract VaadinSession createVaadinSession(WrappedRequest request)
+ protected abstract VaadinSession createVaadinSession(VaadinRequest request)
throws ServiceException;
- private void onVaadinSessionStarted(WrappedRequest request,
+ private void onVaadinSessionStarted(VaadinRequest request,
VaadinSession session) throws ServiceException {
addonContext.fireApplicationStarted(session);
eventRouter.fireEvent(new VaadinSessionInitializeEvent(this, session,
@@ -444,7 +444,7 @@ public abstract class VaadinService implements Serializable {
}
}
- protected VaadinSession getExistingSession(WrappedRequest request,
+ protected VaadinSession getExistingSession(VaadinRequest request,
boolean allowSessionCreation) throws SessionExpiredException {
// Ensures that the session is still valid
@@ -472,7 +472,7 @@ public abstract class VaadinService implements Serializable {
* @return <code>true</code> if it's valid to create a new Vaadin session
* for the request; else <code>false</code>
*/
- protected abstract boolean requestCanCreateSession(WrappedRequest request);
+ protected abstract boolean requestCanCreateSession(VaadinRequest request);
/**
* Gets the currently used Vaadin service. The current service is
@@ -485,7 +485,7 @@ public abstract class VaadinService implements Serializable {
* @return the current Vaadin service instance if available, otherwise
* <code>null</code>
*
- * @see #setCurrentInstances(WrappedRequest, WrappedResponse)
+ * @see #setCurrentInstances(VaadinRequest, VaadinResponse)
*/
public static VaadinService getCurrent() {
return CurrentInstance.get(VaadinService.class);
@@ -493,7 +493,7 @@ public abstract class VaadinService implements Serializable {
/**
* Sets the this Vaadin service as the current service and also sets the
- * current wrapped request and wrapped response. This method is used by the
+ * current Vaadin request and Vaadin response. This method is used by the
* framework to set the current instances when a request related to the
* service is processed and they are cleared when the request has been
* processed.
@@ -504,51 +504,51 @@ public abstract class VaadinService implements Serializable {
* </p>
*
* @param request
- * the wrapped request to set as the current request, or
+ * the Vaadin request to set as the current request, or
* <code>null</code> if no request should be set.
* @param response
- * the wrapped response to set as the current response, or
+ * the Vaadin response to set as the current response, or
* <code>null</code> if no response should be set.
*
* @see #getCurrent()
* @see #getCurrentRequest()
* @see #getCurrentResponse()
*/
- public void setCurrentInstances(WrappedRequest request,
- WrappedResponse response) {
+ public void setCurrentInstances(VaadinRequest request,
+ VaadinResponse response) {
CurrentInstance.setInheritable(VaadinService.class, this);
- CurrentInstance.set(WrappedRequest.class, request);
- CurrentInstance.set(WrappedResponse.class, response);
+ CurrentInstance.set(VaadinRequest.class, request);
+ CurrentInstance.set(VaadinResponse.class, response);
}
/**
- * Gets the currently processed wrapped request. The current request is
+ * Gets the currently processed Vaadin request. The current request is
* automatically defined when the request is started. The current request
* can not be used in e.g. background threads because of the way server
* implementations reuse request instances.
*
- * @return the current wrapped request instance if available, otherwise
+ * @return the current Vaadin request instance if available, otherwise
* <code>null</code>
*
- * @see #setCurrentInstances(WrappedRequest, WrappedResponse)
+ * @see #setCurrentInstances(VaadinRequest, VaadinResponse)
*/
- public static WrappedRequest getCurrentRequest() {
- return CurrentInstance.get(WrappedRequest.class);
+ public static VaadinRequest getCurrentRequest() {
+ return CurrentInstance.get(VaadinRequest.class);
}
/**
- * Gets the currently processed wrapped request. The current request is
+ * Gets the currently processed Vaadin request. The current request is
* automatically defined when the request is started. The current request
* can not be used in e.g. background threads because of the way server
* implementations reuse request instances.
*
- * @return the current wrapped request instance if available, otherwise
+ * @return the current Vaadin request instance if available, otherwise
* <code>null</code>
*
- * @see #setCurrentInstances(WrappedRequest, WrappedResponse)
+ * @see #setCurrentInstances(VaadinRequest, VaadinResponse)
*/
- public static WrappedResponse getCurrentResponse() {
- return CurrentInstance.get(WrappedResponse.class);
+ public static VaadinResponse getCurrentResponse() {
+ return CurrentInstance.get(VaadinResponse.class);
}
}
diff --git a/server/src/com/vaadin/server/VaadinServlet.java b/server/src/com/vaadin/server/VaadinServlet.java
index 54709b41d1..518d26070b 100644
--- a/server/src/com/vaadin/server/VaadinServlet.java
+++ b/server/src/com/vaadin/server/VaadinServlet.java
@@ -66,8 +66,8 @@ public class VaadinServlet extends HttpServlet implements Constants {
}
@Override
- public String getStaticFileLocation(WrappedRequest request) {
- HttpServletRequest servletRequest = WrappedHttpServletRequest
+ public String getStaticFileLocation(VaadinRequest request) {
+ HttpServletRequest servletRequest = VaadinServletRequest
.cast(request);
String staticFileLocation;
// if property is defined in configurations, use that
@@ -108,20 +108,20 @@ public class VaadinServlet extends HttpServlet implements Constants {
}
@Override
- public String getConfiguredWidgetset(WrappedRequest request) {
+ public String getConfiguredWidgetset(VaadinRequest request) {
return getDeploymentConfiguration().getApplicationOrSystemProperty(
VaadinServlet.PARAMETER_WIDGETSET,
VaadinServlet.DEFAULT_WIDGETSET);
}
@Override
- public String getConfiguredTheme(WrappedRequest request) {
+ public String getConfiguredTheme(VaadinRequest request) {
// Use the default
return VaadinServlet.getDefaultTheme();
}
@Override
- public boolean isStandalone(WrappedRequest request) {
+ public boolean isStandalone(VaadinRequest request) {
return true;
}
@@ -146,7 +146,7 @@ public class VaadinServlet extends HttpServlet implements Constants {
}
@Override
- protected boolean requestCanCreateSession(WrappedRequest request) {
+ protected boolean requestCanCreateSession(VaadinRequest request) {
RequestType requestType = getRequestType(request);
if (requestType == RequestType.BROWSER_DETAILS) {
// This is the first request if you are embedding by writing the
@@ -172,22 +172,22 @@ public class VaadinServlet extends HttpServlet implements Constants {
* @deprecated might be refactored or removed before 7.0.0
*/
@Deprecated
- protected RequestType getRequestType(WrappedRequest request) {
+ protected RequestType getRequestType(VaadinRequest request) {
RequestType type = (RequestType) request
.getAttribute(RequestType.class.getName());
if (type == null) {
type = getServlet().getRequestType(
- WrappedHttpServletRequest.cast(request));
+ VaadinServletRequest.cast(request));
request.setAttribute(RequestType.class.getName(), type);
}
return type;
}
@Override
- protected URL getApplicationUrl(WrappedRequest request)
+ protected URL getApplicationUrl(VaadinRequest request)
throws MalformedURLException {
return getServlet().getApplicationUrl(
- WrappedHttpServletRequest.cast(request));
+ VaadinServletRequest.cast(request));
}
@Override
@@ -197,9 +197,9 @@ public class VaadinServlet extends HttpServlet implements Constants {
}
public static HttpServletRequest getCurrentServletRequest() {
- WrappedRequest currentRequest = VaadinService.getCurrentRequest();
+ VaadinRequest currentRequest = VaadinService.getCurrentRequest();
try {
- WrappedHttpServletRequest request = WrappedHttpServletRequest
+ VaadinServletRequest request = VaadinServletRequest
.cast(currentRequest);
if (request != null) {
return request.getHttpServletRequest();
@@ -211,13 +211,12 @@ public class VaadinServlet extends HttpServlet implements Constants {
}
}
- public static WrappedHttpServletResponse getCurrentResponse() {
- return (WrappedHttpServletResponse) VaadinService
- .getCurrentResponse();
+ public static VaadinServletResponse getCurrentResponse() {
+ return (VaadinServletResponse) VaadinService.getCurrentResponse();
}
@Override
- protected VaadinSession createVaadinSession(WrappedRequest request)
+ protected VaadinSession createVaadinSession(VaadinRequest request)
throws ServiceException {
return new VaadinServletSession();
}
@@ -232,12 +231,11 @@ public class VaadinServlet extends HttpServlet implements Constants {
}
@Override
- public void criticalNotification(WrappedRequest request,
- WrappedResponse response, String cap, String msg,
+ public void criticalNotification(VaadinRequest request,
+ VaadinResponse response, String cap, String msg,
String details, String outOfSyncURL) throws IOException {
- servlet.criticalNotification(
- WrappedHttpServletRequest.cast(request),
- ((WrappedHttpServletResponse) response), cap, msg, details,
+ servlet.criticalNotification(VaadinServletRequest.cast(request),
+ ((VaadinServletResponse) response), cap, msg, details,
outOfSyncURL);
}
}
@@ -381,11 +379,11 @@ public class VaadinServlet extends HttpServlet implements Constants {
HttpServletResponse response) throws ServletException, IOException {
CurrentInstance.clearAll();
setCurrent(this);
- service(createWrappedRequest(request), createWrappedResponse(response));
+ service(createVaadinRequest(request), createVaadinResponse(response));
}
- private void service(WrappedHttpServletRequest request,
- WrappedHttpServletResponse response) throws ServletException,
+ private void service(VaadinServletRequest request,
+ VaadinServletResponse response) throws ServletException,
IOException {
RequestTimer requestTimer = new RequestTimer();
requestTimer.start();
@@ -501,24 +499,22 @@ public class VaadinServlet extends HttpServlet implements Constants {
}
}
- private WrappedHttpServletResponse createWrappedResponse(
+ private VaadinServletResponse createVaadinResponse(
HttpServletResponse response) {
- WrappedHttpServletResponse wrappedResponse = new WrappedHttpServletResponse(
- response, getVaadinService());
- return wrappedResponse;
+ return new VaadinServletResponse(response, getVaadinService());
}
/**
- * Create a wrapped request for a http servlet request. This method can be
- * overridden if the wrapped request should have special properties.
+ * Create a Vaadin request for a http servlet request. This method can be
+ * overridden if the Vaadin request should have special properties.
*
* @param request
* the original http servlet request
- * @return a wrapped request for the original request
+ * @return a Vaadin request for the original request
*/
- protected WrappedHttpServletRequest createWrappedRequest(
+ protected VaadinServletRequest createVaadinRequest(
HttpServletRequest request) {
- return new WrappedHttpServletRequest(request, getVaadinService());
+ return new VaadinServletRequest(request, getVaadinService());
}
/**
@@ -545,8 +541,8 @@ public class VaadinServlet extends HttpServlet implements Constants {
* @throws IOException
*/
private boolean ensureCookiesEnabled(RequestType requestType,
- WrappedHttpServletRequest request,
- WrappedHttpServletResponse response) throws IOException {
+ VaadinServletRequest request, VaadinServletResponse response)
+ throws IOException {
if (requestType == RequestType.UIDL) {
// In all other but the first UIDL request a cookie should be
// returned by the browser.
@@ -592,7 +588,7 @@ public class VaadinServlet extends HttpServlet implements Constants {
* @deprecated might be refactored or removed before 7.0.0
*/
@Deprecated
- protected void criticalNotification(WrappedHttpServletRequest request,
+ protected void criticalNotification(VaadinServletRequest request,
HttpServletResponse response, String caption, String message,
String details, String url) throws IOException {
@@ -705,8 +701,8 @@ public class VaadinServlet extends HttpServlet implements Constants {
return resultPath;
}
- private void handleServiceException(WrappedHttpServletRequest request,
- WrappedHttpServletResponse response, VaadinSession vaadinSession,
+ private void handleServiceException(VaadinServletRequest request,
+ VaadinServletResponse response, VaadinSession vaadinSession,
Throwable e) throws IOException, ServletException {
// if this was an UIDL request, response UIDL back to client
if (getRequestType(request) == RequestType.UIDL) {
@@ -772,8 +768,8 @@ public class VaadinServlet extends HttpServlet implements Constants {
* @deprecated might be refactored or removed before 7.0.0
*/
@Deprecated
- void handleServiceSessionExpired(WrappedHttpServletRequest request,
- WrappedHttpServletResponse response) throws IOException,
+ void handleServiceSessionExpired(VaadinServletRequest request,
+ VaadinServletResponse response) throws IOException,
ServletException {
if (isOnUnloadRequest(request)) {
@@ -818,9 +814,8 @@ public class VaadinServlet extends HttpServlet implements Constants {
}
- private void handleServiceSecurityException(
- WrappedHttpServletRequest request,
- WrappedHttpServletResponse response) throws IOException,
+ private void handleServiceSecurityException(VaadinServletRequest request,
+ VaadinServletResponse response) throws IOException,
ServletException {
if (isOnUnloadRequest(request)) {
/*
@@ -1212,7 +1207,7 @@ public class VaadinServlet extends HttpServlet implements Constants {
* @deprecated might be refactored or removed before 7.0.0
*/
@Deprecated
- protected RequestType getRequestType(WrappedHttpServletRequest request) {
+ protected RequestType getRequestType(VaadinServletRequest request) {
if (ServletPortletHelper.isFileUploadRequest(request)) {
return RequestType.FILE_UPLOAD;
} else if (ServletPortletHelper.isConnectorResourceRequest(request)) {
diff --git a/server/src/com/vaadin/server/WrappedHttpServletRequest.java b/server/src/com/vaadin/server/VaadinServletRequest.java
index 99e8881ec1..e9d673a1f3 100644
--- a/server/src/com/vaadin/server/WrappedHttpServletRequest.java
+++ b/server/src/com/vaadin/server/VaadinServletRequest.java
@@ -28,11 +28,11 @@ import com.vaadin.server.VaadinServlet.ServletService;
* @author Vaadin Ltd.
* @since 7.0
*
- * @see WrappedRequest
- * @see WrappedHttpServletResponse
+ * @see VaadinRequest
+ * @see VaadinServletResponse
*/
-public class WrappedHttpServletRequest extends HttpServletRequestWrapper
- implements WrappedRequest {
+public class VaadinServletRequest extends HttpServletRequestWrapper implements
+ VaadinRequest {
private final ServletService vaadinService;
@@ -44,7 +44,7 @@ public class WrappedHttpServletRequest extends HttpServletRequestWrapper
* @param vaadinService
* the associated vaadin service
*/
- public WrappedHttpServletRequest(HttpServletRequest request,
+ public VaadinServletRequest(HttpServletRequest request,
ServletService vaadinService) {
super(request);
this.vaadinService = vaadinService;
@@ -105,22 +105,22 @@ public class WrappedHttpServletRequest extends HttpServletRequestWrapper
}
/**
- * Helper method to get a <code>WrappedHttpServletRequest</code> from a
- * <code>WrappedRequest</code>. Aside from casting, this method also takes
- * care of situations where there's another level of wrapping.
+ * Helper method to get a {@link VaadinServletRequest} from a
+ * {@link VaadinRequest}. Aside from casting, this method also takes care of
+ * situations where there's another level of wrapping.
*
* @param request
- * a wrapped request
- * @return a wrapped http servlet request
+ * a Vaadin request
+ * @return a Vaadin http servlet request
* @throws ClassCastException
- * if the wrapped request doesn't wrap a http servlet request
+ * if the Vaadin request doesn't wrap a http servlet request
*/
- public static WrappedHttpServletRequest cast(WrappedRequest request) {
+ public static VaadinServletRequest cast(VaadinRequest request) {
if (request instanceof CombinedRequest) {
CombinedRequest combinedRequest = (CombinedRequest) request;
request = combinedRequest.getSecondRequest();
}
- return (WrappedHttpServletRequest) request;
+ return (VaadinServletRequest) request;
}
} \ No newline at end of file
diff --git a/server/src/com/vaadin/server/WrappedHttpServletResponse.java b/server/src/com/vaadin/server/VaadinServletResponse.java
index 74a580f874..b21ca34249 100644
--- a/server/src/com/vaadin/server/WrappedHttpServletResponse.java
+++ b/server/src/com/vaadin/server/VaadinServletResponse.java
@@ -27,11 +27,11 @@ import com.vaadin.server.VaadinServlet.ServletService;
* @author Vaadin Ltd.
* @since 7.0
*
- * @see WrappedResponse
- * @see WrappedHttpServletRequest
+ * @see VaadinResponse
+ * @see VaadinServletRequest
*/
-public class WrappedHttpServletResponse extends HttpServletResponseWrapper
- implements WrappedResponse {
+public class VaadinServletResponse extends HttpServletResponseWrapper implements
+ VaadinResponse {
private ServletService vaadinService;
@@ -43,7 +43,7 @@ public class WrappedHttpServletResponse extends HttpServletResponseWrapper
* @param vaadinService
* the associated vaadin service
*/
- public WrappedHttpServletResponse(HttpServletResponse response,
+ public VaadinServletResponse(HttpServletResponse response,
ServletService vaadinService) {
super(response);
this.vaadinService = vaadinService;
@@ -63,8 +63,8 @@ public class WrappedHttpServletResponse extends HttpServletResponseWrapper
doSetCacheTime(this, milliseconds);
}
- // Implementation shared with WrappedPortletResponse
- static void doSetCacheTime(WrappedResponse response, long milliseconds) {
+ // Implementation shared with VaadinPortletResponse
+ static void doSetCacheTime(VaadinResponse response, long milliseconds) {
if (milliseconds <= 0) {
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
diff --git a/server/src/com/vaadin/server/VaadinSession.java b/server/src/com/vaadin/server/VaadinSession.java
index 8fbc7af335..c3699bacfa 100644
--- a/server/src/com/vaadin/server/VaadinSession.java
+++ b/server/src/com/vaadin/server/VaadinSession.java
@@ -42,7 +42,7 @@ import com.vaadin.data.util.converter.Converter;
import com.vaadin.data.util.converter.ConverterFactory;
import com.vaadin.data.util.converter.DefaultConverterFactory;
import com.vaadin.event.EventRouter;
-import com.vaadin.server.WrappedRequest.BrowserDetails;
+import com.vaadin.server.VaadinRequest.BrowserDetails;
import com.vaadin.shared.ui.ui.UIConstants;
import com.vaadin.ui.AbstractField;
import com.vaadin.ui.Table;
@@ -615,18 +615,18 @@ public class VaadinSession implements HttpSessionBindingListener, Serializable {
* host page is requested.
*
* @param request
- * the wrapped request for which a UI is needed
+ * the Vaadin request for which a UI is needed
* @return a UI instance to use for the request
*
* @see UI
- * @see WrappedRequest#getBrowserDetails()
+ * @see VaadinRequest#getBrowserDetails()
*
* @since 7.0
*
* @deprecated might be refactored or removed before 7.0.0
*/
@Deprecated
- public Class<? extends UI> getUIClass(WrappedRequest request) {
+ public Class<? extends UI> getUIClass(VaadinRequest request) {
UIProvider uiProvider = getUiProvider(request, null);
return uiProvider.getUIClass(request);
}
@@ -644,7 +644,7 @@ public class VaadinSession implements HttpSessionBindingListener, Serializable {
* @deprecated might be refactored or removed before 7.0.0
*/
@Deprecated
- protected <T extends UI> T createUIInstance(WrappedRequest request,
+ protected <T extends UI> T createUIInstance(VaadinRequest request,
Class<T> uiClass) {
UIProvider uiProvider = getUiProvider(request, uiClass);
return uiClass.cast(uiProvider.createInstance(request, uiClass));
@@ -672,7 +672,7 @@ public class VaadinSession implements HttpSessionBindingListener, Serializable {
* @deprecated might be refactored or removed before 7.0.0
*/
@Deprecated
- public UIProvider getUiProvider(WrappedRequest request, Class<?> uiClass) {
+ public UIProvider getUiProvider(VaadinRequest request, Class<?> uiClass) {
UIProvider provider = (UIProvider) request
.getAttribute(UIProvider.class.getName());
if (provider != null) {
@@ -708,7 +708,7 @@ public class VaadinSession implements HttpSessionBindingListener, Serializable {
* @deprecated might be refactored or removed before 7.0.0
*/
@Deprecated
- private UIProvider doGetUiProvider(WrappedRequest request, Class<?> uiClass) {
+ private UIProvider doGetUiProvider(VaadinRequest request, Class<?> uiClass) {
int providersSize = uiProviders.size();
if (providersSize == 0) {
throw new IllegalStateException("There are no UI providers");
@@ -853,14 +853,14 @@ public class VaadinSession implements HttpSessionBindingListener, Serializable {
* the request for which a UI is desired
* @return a UI belonging to the request
*
- * @see #createUI(WrappedRequest)
+ * @see #createUI(VaadinRequest)
*
* @since 7.0
*
* @deprecated might be refactored or removed before 7.0.0
*/
@Deprecated
- public UI getUIForRequest(WrappedRequest request) {
+ public UI getUIForRequest(VaadinRequest request) {
UI uI = UI.getCurrent();
if (uI != null) {
return uI;
@@ -890,7 +890,7 @@ public class VaadinSession implements HttpSessionBindingListener, Serializable {
* @deprecated might be refactored or removed before 7.0.0
*/
@Deprecated
- private UI findExistingUi(WrappedRequest request) {
+ private UI findExistingUi(VaadinRequest request) {
// Check if some UI provider has an existing UI available
for (int i = uiProviders.size() - 1; i >= 0; i--) {
UIProvider provider = uiProviders.get(i);
@@ -939,7 +939,7 @@ public class VaadinSession implements HttpSessionBindingListener, Serializable {
* @deprecated might be refactored or removed before 7.0.0
*/
@Deprecated
- public UI createUI(WrappedRequest request) {
+ public UI createUI(VaadinRequest request) {
Class<? extends UI> uiClass = getUIClass(request);
UI ui = createUIInstance(request, uiClass);
@@ -986,7 +986,7 @@ public class VaadinSession implements HttpSessionBindingListener, Serializable {
* @deprecated might be refactored or removed before 7.0.0
*/
@Deprecated
- private static Integer getUIId(WrappedRequest request) {
+ private static Integer getUIId(VaadinRequest request) {
if (request instanceof CombinedRequest) {
// Combined requests has the uiId parameter in the second request
CombinedRequest combinedRequest = (CombinedRequest) request;
diff --git a/server/src/com/vaadin/server/VaadinSessionInitializeEvent.java b/server/src/com/vaadin/server/VaadinSessionInitializeEvent.java
index cc4a0990d6..217e3d8f7d 100644
--- a/server/src/com/vaadin/server/VaadinSessionInitializeEvent.java
+++ b/server/src/com/vaadin/server/VaadinSessionInitializeEvent.java
@@ -35,7 +35,7 @@ import java.util.EventObject;
public class VaadinSessionInitializeEvent extends EventObject {
private final VaadinSession session;
- private final WrappedRequest request;
+ private final VaadinRequest request;
/**
* Creates a new event.
@@ -48,7 +48,7 @@ public class VaadinSessionInitializeEvent extends EventObject {
* the request that triggered the initialization
*/
public VaadinSessionInitializeEvent(VaadinService service,
- VaadinSession session, WrappedRequest request) {
+ VaadinSession session, VaadinRequest request) {
super(service);
this.session = session;
this.request = request;
@@ -82,7 +82,7 @@ public class VaadinSessionInitializeEvent extends EventObject {
*
* @return the request
*/
- public WrappedRequest getRequest() {
+ public VaadinRequest getRequest() {
return request;
}
diff --git a/server/src/com/vaadin/server/WebBrowser.java b/server/src/com/vaadin/server/WebBrowser.java
index 6a377a3de9..676375a693 100644
--- a/server/src/com/vaadin/server/WebBrowser.java
+++ b/server/src/com/vaadin/server/WebBrowser.java
@@ -411,9 +411,9 @@ public class WebBrowser implements Serializable {
* properties in the class according to the given information.
*
* @param request
- * the wrapped request to read the information from
+ * the Vaadin request to read the information from
*/
- void updateRequestDetails(WrappedRequest request) {
+ void updateRequestDetails(VaadinRequest request) {
locale = request.getLocale();
address = request.getRemoteAddr();
secureConnection = request.isSecure();
diff --git a/server/src/com/vaadin/ui/AbstractMedia.java b/server/src/com/vaadin/ui/AbstractMedia.java
index 219413974b..3cc801817f 100644
--- a/server/src/com/vaadin/ui/AbstractMedia.java
+++ b/server/src/com/vaadin/ui/AbstractMedia.java
@@ -26,8 +26,8 @@ import java.util.regex.Pattern;
import com.vaadin.server.ConnectorResource;
import com.vaadin.server.Resource;
import com.vaadin.server.ResourceReference;
-import com.vaadin.server.WrappedRequest;
-import com.vaadin.server.WrappedResponse;
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.server.VaadinResponse;
import com.vaadin.shared.communication.URLReference;
import com.vaadin.shared.ui.AbstractMediaState;
import com.vaadin.shared.ui.MediaControl;
@@ -79,8 +79,8 @@ public abstract class AbstractMedia extends AbstractComponent {
}
@Override
- public boolean handleConnectorRequest(WrappedRequest request,
- WrappedResponse response, String path) throws IOException {
+ public boolean handleConnectorRequest(VaadinRequest request,
+ VaadinResponse response, String path) throws IOException {
Matcher matcher = Pattern.compile("(\\d+)(/.*)?").matcher(path);
if (matcher.matches()) {
List<URLReference> sources = getState().sources;
diff --git a/server/src/com/vaadin/ui/LoginForm.java b/server/src/com/vaadin/ui/LoginForm.java
index 69778c4c07..661c24bf56 100644
--- a/server/src/com/vaadin/ui/LoginForm.java
+++ b/server/src/com/vaadin/ui/LoginForm.java
@@ -28,8 +28,8 @@ import com.vaadin.server.ConnectorResource;
import com.vaadin.server.DownloadStream;
import com.vaadin.server.RequestHandler;
import com.vaadin.server.VaadinSession;
-import com.vaadin.server.WrappedRequest;
-import com.vaadin.server.WrappedResponse;
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.server.VaadinResponse;
import com.vaadin.shared.ApplicationConstants;
/**
@@ -84,7 +84,7 @@ public class LoginForm extends CustomComponent {
private final RequestHandler requestHandler = new RequestHandler() {
@Override
public boolean handleRequest(VaadinSession session,
- WrappedRequest request, WrappedResponse response)
+ VaadinRequest request, VaadinResponse response)
throws IOException {
String requestPathInfo = request.getRequestPathInfo();
if ("/loginHandler".equals(requestPathInfo)) {
diff --git a/server/src/com/vaadin/ui/UI.java b/server/src/com/vaadin/ui/UI.java
index 0d83f8258d..5beb80ffcd 100644
--- a/server/src/com/vaadin/ui/UI.java
+++ b/server/src/com/vaadin/ui/UI.java
@@ -41,10 +41,10 @@ import com.vaadin.server.Page.BrowserWindowResizeListener;
import com.vaadin.server.PaintException;
import com.vaadin.server.PaintTarget;
import com.vaadin.server.Resource;
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.server.VaadinRequest.BrowserDetails;
import com.vaadin.server.VaadinServlet;
import com.vaadin.server.VaadinSession;
-import com.vaadin.server.WrappedRequest;
-import com.vaadin.server.WrappedRequest.BrowserDetails;
import com.vaadin.shared.EventId;
import com.vaadin.shared.MouseEventDetails;
import com.vaadin.shared.ui.BorderStyle;
@@ -67,21 +67,21 @@ import com.vaadin.util.ReflectTools;
* <p>
* When a new UI instance is needed, typically because the user opens a URL in a
* browser window which points to {@link VaadinServlet},
- * {@link VaadinSession#getUIForRequest(WrappedRequest)} is invoked to get a UI.
+ * {@link VaadinSession#getUIForRequest(VaadinRequest)} is invoked to get a UI.
* That method does by default create a UI according to the
* {@value VaadinSession#UI_PARAMETER} parameter from web.xml.
* </p>
* <p>
* After a UI has been created by the application, it is initialized using
- * {@link #init(WrappedRequest)}. This method is intended to be overridden by
- * the developer to add components to the user interface and initialize
+ * {@link #init(VaadinRequest)}. This method is intended to be overridden by the
+ * developer to add components to the user interface and initialize
* non-component functionality. The component hierarchy is initialized by
* passing a {@link ComponentContainer} with the main layout of the view to
* {@link #setContent(ComponentContainer)}.
* </p>
*
- * @see #init(WrappedRequest)
- * @see VaadinSession#createUI(WrappedRequest)
+ * @see #init(VaadinRequest)
+ * @see VaadinSession#createUI(VaadinRequest)
*
* @since 7.0
*/
@@ -126,7 +126,7 @@ public abstract class UI extends AbstractComponentContainer implements
}
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
// Just empty
}
@@ -748,8 +748,8 @@ public abstract class UI extends AbstractComponentContainer implements
* Gets the id of the UI, used to identify this UI within its application
* when processing requests. The UI id should be present in every request to
* the server that originates from this UI.
- * {@link VaadinSession#getUIForRequest(WrappedRequest)} uses this id to
- * find the route to which the request belongs.
+ * {@link VaadinSession#getUIForRequest(VaadinRequest)} uses this id to find
+ * the route to which the request belongs.
*
* @return
*/
@@ -761,7 +761,7 @@ public abstract class UI extends AbstractComponentContainer implements
* Adds a window as a subwindow inside this UI. To open a new browser window
* or tab, you should instead use {@link open(Resource)} with an url
* pointing to this application and ensure
- * {@link VaadinSession#createUI(WrappedRequest)} returns an appropriate UI
+ * {@link VaadinSession#createUI(VaadinRequest)} returns an appropriate UI
* for the request.
*
* @param window
@@ -979,7 +979,7 @@ public abstract class UI extends AbstractComponentContainer implements
* @param uiId
* the id of the new ui
*/
- public void doInit(WrappedRequest request, int uiId) {
+ public void doInit(VaadinRequest request, int uiId) {
if (this.uiId != -1) {
throw new IllegalStateException("UI id has already been defined");
}
@@ -999,15 +999,15 @@ public abstract class UI extends AbstractComponentContainer implements
* Performing the initialization in a constructor is not suggested as the
* state of the UI is not properly set up when the constructor is invoked.
* <p>
- * The {@link WrappedRequest} can be used to get information about the
+ * The {@link VaadinRequest} can be used to get information about the
* request that caused this UI to be created. {@link BrowserDetails} will be
* available in the request.
* </p>
*
* @param request
- * the wrapped request that caused this UI to be created
+ * the Vaadin request that caused this UI to be created
*/
- protected abstract void init(WrappedRequest request);
+ protected abstract void init(VaadinRequest request);
/**
* Sets the thread local for the current UI. This method is used by the
diff --git a/server/tests/src/com/vaadin/server/TestAbstractApplicationServletStaticFilesLocation.java b/server/tests/src/com/vaadin/server/TestAbstractApplicationServletStaticFilesLocation.java
index e949df466d..0b581f2b75 100644
--- a/server/tests/src/com/vaadin/server/TestAbstractApplicationServletStaticFilesLocation.java
+++ b/server/tests/src/com/vaadin/server/TestAbstractApplicationServletStaticFilesLocation.java
@@ -80,7 +80,7 @@ public class TestAbstractApplicationServletStaticFilesLocation extends TestCase
replay(request);
String location = servlet.getVaadinService().getStaticFileLocation(
- servlet.createWrappedRequest(request));
+ servlet.createVaadinRequest(request));
return location;
}
@@ -93,7 +93,7 @@ public class TestAbstractApplicationServletStaticFilesLocation extends TestCase
replay(request);
String location = servlet.getVaadinService().getStaticFileLocation(
- servlet.createWrappedRequest(request));
+ servlet.createVaadinRequest(request));
return location;
}
diff --git a/server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java b/server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java
index 0dd7efa507..b929ce5d9d 100644
--- a/server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java
+++ b/server/tests/src/com/vaadin/tests/server/TestStreamVariableMapping.java
@@ -7,7 +7,7 @@ import org.easymock.EasyMock;
import com.vaadin.server.CommunicationManager;
import com.vaadin.server.StreamVariable;
import com.vaadin.server.VaadinSession;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.UI;
import com.vaadin.ui.Upload;
@@ -24,7 +24,7 @@ public class TestStreamVariableMapping extends TestCase {
final VaadinSession application = new VaadinSession();
final UI uI = new UI() {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
// TODO Auto-generated method stub
}
diff --git a/server/tests/src/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java b/server/tests/src/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java
index c9f579a887..693fcd0580 100644
--- a/server/tests/src/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java
+++ b/server/tests/src/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java
@@ -8,7 +8,7 @@ import com.vaadin.data.Property;
import com.vaadin.data.util.AbstractProperty;
import com.vaadin.data.util.converter.Converter.ConversionException;
import com.vaadin.server.VaadinSession;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.AbstractField;
import com.vaadin.ui.UI;
@@ -24,7 +24,7 @@ public class RemoveListenersOnDetach {
private UI uI = new UI() {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
}
diff --git a/server/tests/src/com/vaadin/tests/server/component/root/CustomUIClassLoader.java b/server/tests/src/com/vaadin/tests/server/component/root/CustomUIClassLoader.java
index b14d3dd2a8..858a18b223 100644
--- a/server/tests/src/com/vaadin/tests/server/component/root/CustomUIClassLoader.java
+++ b/server/tests/src/com/vaadin/tests/server/component/root/CustomUIClassLoader.java
@@ -9,12 +9,12 @@ import junit.framework.TestCase;
import org.easymock.EasyMock;
import com.vaadin.DefaultDeploymentConfiguration;
-import com.vaadin.server.DeploymentConfiguration;
import com.vaadin.server.DefaultUIProvider;
+import com.vaadin.server.DeploymentConfiguration;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinService;
import com.vaadin.server.VaadinSession;
import com.vaadin.server.VaadinSession.SessionStartEvent;
-import com.vaadin.server.WrappedRequest;
import com.vaadin.ui.UI;
public class CustomUIClassLoader extends TestCase {
@@ -24,7 +24,7 @@ public class CustomUIClassLoader extends TestCase {
*/
public static class MyUI extends UI {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
// Nothing to see here
}
}
@@ -58,7 +58,8 @@ public class CustomUIClassLoader extends TestCase {
createConfigurationMock(), null));
DefaultUIProvider uiProvider = new DefaultUIProvider();
- Class<? extends UI> uiClass = uiProvider.getUIClass(createRequestMock(null));
+ Class<? extends UI> uiClass = uiProvider
+ .getUIClass(createRequestMock(null));
assertEquals(MyUI.class, uiClass);
}
@@ -70,15 +71,15 @@ public class CustomUIClassLoader extends TestCase {
properties);
}
- private static WrappedRequest createRequestMock(ClassLoader classloader) {
+ private static VaadinRequest createRequestMock(ClassLoader classloader) {
// Mock a VaadinService to give the passed classloader
VaadinService configurationMock = EasyMock
.createMock(VaadinService.class);
EasyMock.expect(configurationMock.getClassLoader()).andReturn(
classloader);
- // Mock a WrappedRequest to give the mocked vaadin service
- WrappedRequest requestMock = EasyMock.createMock(WrappedRequest.class);
+ // Mock a VaadinRequest to give the mocked vaadin service
+ VaadinRequest requestMock = EasyMock.createMock(VaadinRequest.class);
EasyMock.expect(requestMock.getVaadinService()).andReturn(
configurationMock);
@@ -101,7 +102,8 @@ public class CustomUIClassLoader extends TestCase {
createConfigurationMock(), null));
DefaultUIProvider uiProvider = new DefaultUIProvider();
- Class<? extends UI> uiClass = uiProvider.getUIClass(createRequestMock(loggingClassLoader));
+ Class<? extends UI> uiClass = uiProvider
+ .getUIClass(createRequestMock(loggingClassLoader));
assertEquals(MyUI.class, uiClass);
assertEquals(1, loggingClassLoader.requestedClasses.size());
diff --git a/server/tests/src/com/vaadin/tests/server/component/window/AttachDetachWindow.java b/server/tests/src/com/vaadin/tests/server/component/window/AttachDetachWindow.java
index ec722fdffb..a41b200664 100644
--- a/server/tests/src/com/vaadin/tests/server/component/window/AttachDetachWindow.java
+++ b/server/tests/src/com/vaadin/tests/server/component/window/AttachDetachWindow.java
@@ -7,7 +7,7 @@ import org.junit.Test;
import com.vaadin.server.ClientConnector;
import com.vaadin.server.VaadinSession;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;
@@ -116,7 +116,7 @@ public class AttachDetachWindow {
}
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
// Do nothing
}
diff --git a/server/tests/src/com/vaadin/ui/LabelDataSource.java b/server/tests/src/com/vaadin/ui/LabelDataSource.java
index 3abe12535b..932e0cc8ef 100644
--- a/server/tests/src/com/vaadin/ui/LabelDataSource.java
+++ b/server/tests/src/com/vaadin/ui/LabelDataSource.java
@@ -23,7 +23,7 @@ import org.junit.Test;
import com.vaadin.data.util.ObjectProperty;
import com.vaadin.server.VaadinSession;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
public class LabelDataSource {
@@ -110,7 +110,7 @@ public class LabelDataSource {
}
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
}
}
diff --git a/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java b/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java
index c27e92626a..1323e247d9 100644
--- a/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java
+++ b/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java
@@ -38,8 +38,8 @@ import com.vaadin.server.UIProvider;
import com.vaadin.server.VaadinSession;
import com.vaadin.server.VaadinSessionInitializationListener;
import com.vaadin.server.VaadinSessionInitializeEvent;
-import com.vaadin.server.WrappedHttpServletRequest;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinServletRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.UI;
@@ -138,7 +138,7 @@ public class ApplicationRunnerServlet extends LegacyVaadinServlet {
}
}
- protected void onVaadinSessionStarted(WrappedRequest request,
+ protected void onVaadinSessionStarted(VaadinRequest request,
VaadinSession session) throws ServiceException {
try {
final Class<?> classToRun = getClassToRun();
@@ -146,7 +146,7 @@ public class ApplicationRunnerServlet extends LegacyVaadinServlet {
session.addUIProvider(new AbstractUIProvider() {
@Override
- public Class<? extends UI> getUIClass(WrappedRequest request) {
+ public Class<? extends UI> getUIClass(VaadinRequest request) {
return (Class<? extends UI>) classToRun;
}
});
@@ -166,7 +166,7 @@ public class ApplicationRunnerServlet extends LegacyVaadinServlet {
throw new ServiceException(
new InstantiationException(
"Failed to load application class: "
- + getApplicationRunnerApplicationClassName(WrappedHttpServletRequest
+ + getApplicationRunnerApplicationClassName(VaadinServletRequest
.cast(request))));
}
}
@@ -293,8 +293,8 @@ public class ApplicationRunnerServlet extends LegacyVaadinServlet {
DeploymentConfiguration deploymentConfiguration) {
return new ServletService(this, deploymentConfiguration) {
@Override
- public String getStaticFileLocation(WrappedRequest request) {
- URIS uris = getApplicationRunnerURIs(WrappedHttpServletRequest
+ public String getStaticFileLocation(VaadinRequest request) {
+ URIS uris = getApplicationRunnerURIs(VaadinServletRequest
.cast(request));
String staticFilesPath = uris.staticFilesPath;
if (staticFilesPath.equals("/")) {
@@ -307,9 +307,9 @@ public class ApplicationRunnerServlet extends LegacyVaadinServlet {
}
@Override
- protected WrappedHttpServletRequest createWrappedRequest(
+ protected VaadinServletRequest createVaadinRequest(
HttpServletRequest request) {
- return new WrappedHttpServletRequest(request, getVaadinService()) {
+ return new VaadinServletRequest(request, getVaadinService()) {
@Override
public String getRequestPathInfo() {
return ApplicationRunnerServlet.this.getRequestPathInfo(this);
diff --git a/uitest/src/com/vaadin/tests/Parameters.java b/uitest/src/com/vaadin/tests/Parameters.java
index fe5f5e14ae..300573424e 100644
--- a/uitest/src/com/vaadin/tests/Parameters.java
+++ b/uitest/src/com/vaadin/tests/Parameters.java
@@ -24,8 +24,8 @@ import java.util.Map;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.RequestHandler;
import com.vaadin.server.VaadinSession;
-import com.vaadin.server.WrappedRequest;
-import com.vaadin.server.WrappedResponse;
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.server.VaadinResponse;
import com.vaadin.ui.Label;
import com.vaadin.ui.Layout.MarginHandler;
import com.vaadin.ui.Link;
@@ -107,7 +107,7 @@ public class Parameters extends com.vaadin.LegacyApplication implements
@Override
public boolean handleRequest(VaadinSession session,
- WrappedRequest request, WrappedResponse response)
+ VaadinRequest request, VaadinResponse response)
throws IOException {
context.setValue("Context not available");
relative.setValue(request.getRequestPathInfo());
diff --git a/uitest/src/com/vaadin/tests/VerifyAssertionsEnabled.java b/uitest/src/com/vaadin/tests/VerifyAssertionsEnabled.java
index d812ea644a..8f8c339383 100644
--- a/uitest/src/com/vaadin/tests/VerifyAssertionsEnabled.java
+++ b/uitest/src/com/vaadin/tests/VerifyAssertionsEnabled.java
@@ -16,14 +16,14 @@
package com.vaadin.tests;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Label;
public class VerifyAssertionsEnabled extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
try {
assert false;
addComponent(new Label("Assertions are not enabled"));
diff --git a/uitest/src/com/vaadin/tests/application/HelloWorld.java b/uitest/src/com/vaadin/tests/application/HelloWorld.java
index c46ef7fc9f..28115c0cb9 100644
--- a/uitest/src/com/vaadin/tests/application/HelloWorld.java
+++ b/uitest/src/com/vaadin/tests/application/HelloWorld.java
@@ -1,6 +1,6 @@
package com.vaadin.tests.application;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.UI;
/**
@@ -10,7 +10,7 @@ import com.vaadin.ui.UI;
public class HelloWorld extends UI {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
// Type your code here...
}
diff --git a/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java b/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java
index 13ceceab6c..5e406a5c98 100644
--- a/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java
+++ b/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java
@@ -1,7 +1,7 @@
package com.vaadin.tests.application;
import com.vaadin.annotations.PreserveOnRefresh;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Label;
@@ -9,7 +9,7 @@ import com.vaadin.ui.Label;
public class RefreshStatePreserve extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
addComponent(new Label("window.name: "
+ request.getBrowserDetails().getWindowName()));
addComponent(new Label("UI id: " + getUIId()));
diff --git a/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java b/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java
index 688b2ea4f5..7d755a942b 100644
--- a/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java
+++ b/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java
@@ -3,7 +3,7 @@ package com.vaadin.tests.application;
import com.vaadin.server.DownloadStream;
import com.vaadin.server.PaintException;
import com.vaadin.server.VaadinSession;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.tests.integration.FlagSeResource;
import com.vaadin.tests.util.Log;
@@ -22,7 +22,7 @@ public class ThreadLocalInstances extends AbstractTestCase {
boolean paintReported = false;
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
reportCurrentStatus("root init");
}
diff --git a/uitest/src/com/vaadin/tests/application/VaadinSessionAttribute.java b/uitest/src/com/vaadin/tests/application/VaadinSessionAttribute.java
index ad48ef05ad..1b8378ea31 100644
--- a/uitest/src/com/vaadin/tests/application/VaadinSessionAttribute.java
+++ b/uitest/src/com/vaadin/tests/application/VaadinSessionAttribute.java
@@ -16,7 +16,7 @@
package com.vaadin.tests.application;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
@@ -27,7 +27,7 @@ public class VaadinSessionAttribute extends AbstractTestUI {
private static final String ATTR_NAME = "myAttribute";
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
getSession().setAttribute(ATTR_NAME, Integer.valueOf(42));
getSession().setAttribute(Integer.class, Integer.valueOf(42 * 2));
diff --git a/uitest/src/com/vaadin/tests/components/AbstractTestUI.java b/uitest/src/com/vaadin/tests/components/AbstractTestUI.java
index 6d84b85ff8..4c4dff572a 100644
--- a/uitest/src/com/vaadin/tests/components/AbstractTestUI.java
+++ b/uitest/src/com/vaadin/tests/components/AbstractTestUI.java
@@ -1,7 +1,7 @@
package com.vaadin.tests.components;
import com.vaadin.server.WebBrowser;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Component;
import com.vaadin.ui.Label;
@@ -11,7 +11,7 @@ import com.vaadin.ui.VerticalLayout;
public abstract class AbstractTestUI extends UI {
@Override
- public void init(WrappedRequest request) {
+ public void init(VaadinRequest request) {
getPage().setTitle(getClass().getName());
Label label = new Label(getTestDescription(), ContentMode.HTML);
@@ -32,7 +32,7 @@ public abstract class AbstractTestUI extends UI {
return layout;
}
- protected abstract void setup(WrappedRequest request);
+ protected abstract void setup(VaadinRequest request);
@Override
public void addComponent(Component c) {
diff --git a/uitest/src/com/vaadin/tests/components/UnknownComponentConnectorTest.java b/uitest/src/com/vaadin/tests/components/UnknownComponentConnectorTest.java
index 197408a533..45f34222e6 100644
--- a/uitest/src/com/vaadin/tests/components/UnknownComponentConnectorTest.java
+++ b/uitest/src/com/vaadin/tests/components/UnknownComponentConnectorTest.java
@@ -16,7 +16,7 @@
package com.vaadin.tests.components;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.AbstractComponent;
public class UnknownComponentConnectorTest extends AbstractTestUI {
@@ -26,7 +26,7 @@ public class UnknownComponentConnectorTest extends AbstractTestUI {
}
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
addComponent(new ComponentWithoutConnector());
}
diff --git a/uitest/src/com/vaadin/tests/components/abstractcomponent/AllComponentTooltipTest.java b/uitest/src/com/vaadin/tests/components/abstractcomponent/AllComponentTooltipTest.java
index d318afc34f..75707a7d79 100644
--- a/uitest/src/com/vaadin/tests/components/abstractcomponent/AllComponentTooltipTest.java
+++ b/uitest/src/com/vaadin/tests/components/abstractcomponent/AllComponentTooltipTest.java
@@ -15,7 +15,7 @@
*/
package com.vaadin.tests.components.abstractcomponent;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.VaadinClasses;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.AbstractComponent;
@@ -25,7 +25,7 @@ import com.vaadin.ui.GridLayout;
public class AllComponentTooltipTest extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
setContent(new GridLayout(5, 5));
for (Class<? extends Component> cls : VaadinClasses.getComponents()) {
try {
diff --git a/uitest/src/com/vaadin/tests/components/formlayout/FormLayoutErrorHover.java b/uitest/src/com/vaadin/tests/components/formlayout/FormLayoutErrorHover.java
index dc3cffffb6..c6f6e1b770 100644
--- a/uitest/src/com/vaadin/tests/components/formlayout/FormLayoutErrorHover.java
+++ b/uitest/src/com/vaadin/tests/components/formlayout/FormLayoutErrorHover.java
@@ -15,7 +15,7 @@
*/
package com.vaadin.tests.components.formlayout;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.FormLayout;
import com.vaadin.ui.PopupDateField;
@@ -23,7 +23,7 @@ import com.vaadin.ui.PopupDateField;
public class FormLayoutErrorHover extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
FormLayout formLayout = new FormLayout();
PopupDateField fromDate = new PopupDateField("Date");
fromDate.setImmediate(true);
diff --git a/uitest/src/com/vaadin/tests/components/javascriptcomponent/BasicJavaScriptComponent.java b/uitest/src/com/vaadin/tests/components/javascriptcomponent/BasicJavaScriptComponent.java
index bc17447052..aef1ef83d0 100644
--- a/uitest/src/com/vaadin/tests/components/javascriptcomponent/BasicJavaScriptComponent.java
+++ b/uitest/src/com/vaadin/tests/components/javascriptcomponent/BasicJavaScriptComponent.java
@@ -26,7 +26,7 @@ import com.vaadin.annotations.JavaScript;
import com.vaadin.server.DynamicConnectorResource;
import com.vaadin.server.Resource;
import com.vaadin.server.ResourceReference;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.shared.communication.ClientRpc;
import com.vaadin.shared.communication.ServerRpc;
import com.vaadin.shared.communication.URLReference;
@@ -122,7 +122,7 @@ public class BasicJavaScriptComponent extends AbstractTestUI {
private final Log log = new Log(5);
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
addComponent(log);
ExampleWidget c = new ExampleWidget();
diff --git a/uitest/src/com/vaadin/tests/components/label/LabelPropertySourceValue.java b/uitest/src/com/vaadin/tests/components/label/LabelPropertySourceValue.java
index c3d0d9cccd..8914daf390 100644
--- a/uitest/src/com/vaadin/tests/components/label/LabelPropertySourceValue.java
+++ b/uitest/src/com/vaadin/tests/components/label/LabelPropertySourceValue.java
@@ -1,7 +1,7 @@
package com.vaadin.tests.components.label;
import com.vaadin.data.util.ObjectProperty;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
@@ -12,7 +12,7 @@ public class LabelPropertySourceValue extends AbstractTestUI {
private Label label;
@Override
- public void setup(WrappedRequest request) {
+ public void setup(VaadinRequest request) {
label = new Label("Hello Vaadin user");
addComponent(label);
Button button = new Button("Give label a new property data source...");
diff --git a/uitest/src/com/vaadin/tests/components/label/MarginsInLabels.java b/uitest/src/com/vaadin/tests/components/label/MarginsInLabels.java
index 12fbc36fbb..f503e8966f 100644
--- a/uitest/src/com/vaadin/tests/components/label/MarginsInLabels.java
+++ b/uitest/src/com/vaadin/tests/components/label/MarginsInLabels.java
@@ -1,6 +1,6 @@
package com.vaadin.tests.components.label;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.AbstractLayout;
@@ -13,7 +13,7 @@ import com.vaadin.ui.VerticalLayout;
public class MarginsInLabels extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
AbstractLayout layout = new VerticalLayout();
layout.addComponent(new Label("<h1>Vertical layout</h1>",
ContentMode.HTML));
diff --git a/uitest/src/com/vaadin/tests/components/orderedlayout/BoxLayoutTest.java b/uitest/src/com/vaadin/tests/components/orderedlayout/BoxLayoutTest.java
index 3227676e11..1ffa1cad88 100644
--- a/uitest/src/com/vaadin/tests/components/orderedlayout/BoxLayoutTest.java
+++ b/uitest/src/com/vaadin/tests/components/orderedlayout/BoxLayoutTest.java
@@ -11,7 +11,7 @@ import com.vaadin.event.LayoutEvents.LayoutClickEvent;
import com.vaadin.event.LayoutEvents.LayoutClickListener;
import com.vaadin.server.ThemeResource;
import com.vaadin.server.UserError;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.AbstractComponent;
@@ -52,7 +52,7 @@ public class BoxLayoutTest extends AbstractTestUI {
protected CheckBox expand;
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
view = new VerticalLayout();
view.setMargin(true);
diff --git a/uitest/src/com/vaadin/tests/components/orderedlayout/OrderedLayoutCases.java b/uitest/src/com/vaadin/tests/components/orderedlayout/OrderedLayoutCases.java
index 125dfae37a..9d7d88cce7 100644
--- a/uitest/src/com/vaadin/tests/components/orderedlayout/OrderedLayoutCases.java
+++ b/uitest/src/com/vaadin/tests/components/orderedlayout/OrderedLayoutCases.java
@@ -8,7 +8,7 @@ import java.util.List;
import com.vaadin.annotations.Theme;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.tests.util.TestUtils;
import com.vaadin.ui.AbstractOrderedLayout;
@@ -117,7 +117,7 @@ public class OrderedLayoutCases extends AbstractTestUI {
private HorizontalLayout sizeBar;
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
TestUtils
.injectCSS(
getUI(),
diff --git a/uitest/src/com/vaadin/tests/components/orderedlayout/VaadinTunesLayout.java b/uitest/src/com/vaadin/tests/components/orderedlayout/VaadinTunesLayout.java
index a14f37f95e..82fc8933a0 100644
--- a/uitest/src/com/vaadin/tests/components/orderedlayout/VaadinTunesLayout.java
+++ b/uitest/src/com/vaadin/tests/components/orderedlayout/VaadinTunesLayout.java
@@ -3,7 +3,7 @@ package com.vaadin.tests.components.orderedlayout;
import com.vaadin.annotations.Theme;
import com.vaadin.server.Sizeable;
import com.vaadin.server.ThemeResource;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.shared.ui.MarginInfo;
import com.vaadin.shared.ui.slider.SliderOrientation;
import com.vaadin.tests.components.AbstractTestUI;
@@ -24,7 +24,7 @@ import com.vaadin.ui.VerticalLayout;
public class VaadinTunesLayout extends AbstractTestUI {
@Override
- public void setup(WrappedRequest request) {
+ public void setup(VaadinRequest request) {
/*
* We'll build the whole UI here, since the application will not contain
diff --git a/uitest/src/com/vaadin/tests/components/panel/PanelChangeContents.java b/uitest/src/com/vaadin/tests/components/panel/PanelChangeContents.java
index fd96b08cfb..a49fa34af0 100644
--- a/uitest/src/com/vaadin/tests/components/panel/PanelChangeContents.java
+++ b/uitest/src/com/vaadin/tests/components/panel/PanelChangeContents.java
@@ -15,7 +15,7 @@
*/
package com.vaadin.tests.components.panel;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
@@ -39,7 +39,7 @@ public class PanelChangeContents extends AbstractTestUI implements
private Panel panel;
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
VerticalLayout content = new VerticalLayout();
setSizeFull();
HorizontalLayout buttons = new HorizontalLayout();
diff --git a/uitest/src/com/vaadin/tests/components/popupview/ReopenPopupView.java b/uitest/src/com/vaadin/tests/components/popupview/ReopenPopupView.java
index d755f5961e..8447b7689e 100644
--- a/uitest/src/com/vaadin/tests/components/popupview/ReopenPopupView.java
+++ b/uitest/src/com/vaadin/tests/components/popupview/ReopenPopupView.java
@@ -15,7 +15,7 @@
*/
package com.vaadin.tests.components.popupview;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.tests.util.Log;
import com.vaadin.ui.Button;
@@ -26,7 +26,7 @@ public class ReopenPopupView extends AbstractTestUI {
private final Log log = new Log(5);
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
addComponent(log);
addComponent(new PopupView("PopupView", new Button("Button",
new Button.ClickListener() {
diff --git a/uitest/src/com/vaadin/tests/components/table/TableInTabsheet.java b/uitest/src/com/vaadin/tests/components/table/TableInTabsheet.java
index 63ff00034f..a9cecfd6b5 100644
--- a/uitest/src/com/vaadin/tests/components/table/TableInTabsheet.java
+++ b/uitest/src/com/vaadin/tests/components/table/TableInTabsheet.java
@@ -2,7 +2,7 @@ package com.vaadin.tests.components.table;
import java.net.MalformedURLException;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.AbsoluteLayout;
@@ -17,7 +17,7 @@ import com.vaadin.ui.themes.Reindeer;
public class TableInTabsheet extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
getUI().setCaption("test");
VerticalLayout vPrinc = new VerticalLayout();
vPrinc.setStyleName(Reindeer.LAYOUT_BLUE);
diff --git a/uitest/src/com/vaadin/tests/components/ui/LazyInitUIs.java b/uitest/src/com/vaadin/tests/components/ui/LazyInitUIs.java
index f8f7a16c4d..d405a4c138 100644
--- a/uitest/src/com/vaadin/tests/components/ui/LazyInitUIs.java
+++ b/uitest/src/com/vaadin/tests/components/ui/LazyInitUIs.java
@@ -2,7 +2,7 @@ package com.vaadin.tests.components.ui;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.VaadinSession;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.tests.components.AbstractTestUIProvider;
import com.vaadin.ui.Label;
@@ -14,28 +14,28 @@ public class LazyInitUIs extends AbstractTestUIProvider {
// @EagerInit
private static class EagerInitUI extends UI {
@Override
- public void init(WrappedRequest request) {
+ public void init(VaadinRequest request) {
addComponent(getRequestInfo("EagerInitUI", request));
}
}
@Override
- public UI createInstance(WrappedRequest request,
+ public UI createInstance(VaadinRequest request,
Class<? extends UI> type) {
return getUI(request);
}
@Override
- public Class<? extends UI> getUIClass(WrappedRequest request) {
+ public Class<? extends UI> getUIClass(VaadinRequest request) {
return getUI(request).getClass();
}
- private UI getUI(WrappedRequest request) {
+ private UI getUI(VaadinRequest request) {
if (request.getParameter("lazyCreate") != null) {
// UI created on second request
UI uI = new UI() {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
addComponent(getRequestInfo("LazyCreateUI", request));
}
};
@@ -47,7 +47,7 @@ public class LazyInitUIs extends AbstractTestUIProvider {
// The standard UI
UI uI = new UI() {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
addComponent(getRequestInfo("NormalUI", request));
Link lazyCreateLink = new Link("Open lazyCreate UI",
@@ -68,7 +68,7 @@ public class LazyInitUIs extends AbstractTestUIProvider {
}
}
- public static Label getRequestInfo(String name, WrappedRequest request) {
+ public static Label getRequestInfo(String name, VaadinRequest request) {
String info = name;
info += "<br />pathInfo: " + request.getRequestPathInfo();
info += "<br />parameters: " + request.getParameterMap().keySet();
diff --git a/uitest/src/com/vaadin/tests/components/ui/TestUITheme.java b/uitest/src/com/vaadin/tests/components/ui/TestUITheme.java
index ec0cdf53a2..1a5db630b3 100644
--- a/uitest/src/com/vaadin/tests/components/ui/TestUITheme.java
+++ b/uitest/src/com/vaadin/tests/components/ui/TestUITheme.java
@@ -1,7 +1,7 @@
package com.vaadin.tests.components.ui;
import com.vaadin.annotations.Theme;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Label;
@@ -9,7 +9,7 @@ import com.vaadin.ui.Label;
public class TestUITheme extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
Label label = new Label("A red label");
label.setStyleName("red");
addComponent(label);
diff --git a/uitest/src/com/vaadin/tests/components/ui/TestUIWidgetset.java b/uitest/src/com/vaadin/tests/components/ui/TestUIWidgetset.java
index 99c3c49f72..e837321b56 100644
--- a/uitest/src/com/vaadin/tests/components/ui/TestUIWidgetset.java
+++ b/uitest/src/com/vaadin/tests/components/ui/TestUIWidgetset.java
@@ -1,7 +1,7 @@
package com.vaadin.tests.components.ui;
import com.vaadin.annotations.Widgetset;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.tests.widgetset.server.MissingFromDefaultWidgetsetComponent;
@@ -9,7 +9,7 @@ import com.vaadin.tests.widgetset.server.MissingFromDefaultWidgetsetComponent;
public class TestUIWidgetset extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
addComponent(new MissingFromDefaultWidgetsetComponent());
}
diff --git a/uitest/src/com/vaadin/tests/components/ui/TestUIWidgetset2.java b/uitest/src/com/vaadin/tests/components/ui/TestUIWidgetset2.java
index b9cdb7a3dc..a68cd91a5e 100644
--- a/uitest/src/com/vaadin/tests/components/ui/TestUIWidgetset2.java
+++ b/uitest/src/com/vaadin/tests/components/ui/TestUIWidgetset2.java
@@ -1,13 +1,13 @@
package com.vaadin.tests.components.ui;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.tests.widgetset.server.MissingFromDefaultWidgetsetComponent;
public class TestUIWidgetset2 extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
addComponent(new MissingFromDefaultWidgetsetComponent());
}
diff --git a/uitest/src/com/vaadin/tests/components/ui/UIInitException.java b/uitest/src/com/vaadin/tests/components/ui/UIInitException.java
index e225ae73d8..d5f26ade29 100644
--- a/uitest/src/com/vaadin/tests/components/ui/UIInitException.java
+++ b/uitest/src/com/vaadin/tests/components/ui/UIInitException.java
@@ -1,12 +1,12 @@
package com.vaadin.tests.components.ui;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
public class UIInitException extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
throw new RuntimeException("Catch me if you can");
}
diff --git a/uitest/src/com/vaadin/tests/components/ui/UIInitTest.java b/uitest/src/com/vaadin/tests/components/ui/UIInitTest.java
index 68e6a4da34..8aa2032935 100644
--- a/uitest/src/com/vaadin/tests/components/ui/UIInitTest.java
+++ b/uitest/src/com/vaadin/tests/components/ui/UIInitTest.java
@@ -4,14 +4,14 @@
package com.vaadin.tests.components.ui;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Label;
public class UIInitTest extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
addComponent(new Label("Hello UI"));
}
diff --git a/uitest/src/com/vaadin/tests/components/ui/UIsInMultipleTabs.java b/uitest/src/com/vaadin/tests/components/ui/UIsInMultipleTabs.java
index 2d27989dd4..c5d997cfd4 100644
--- a/uitest/src/com/vaadin/tests/components/ui/UIsInMultipleTabs.java
+++ b/uitest/src/com/vaadin/tests/components/ui/UIsInMultipleTabs.java
@@ -4,7 +4,7 @@ import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicInteger;
import com.vaadin.server.VaadinSession;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUIProvider;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;
@@ -15,7 +15,7 @@ public class UIsInMultipleTabs extends AbstractTestUIProvider {
public static class TabUI extends UI {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
VaadinSession application = VaadinSession.getCurrent();
AtomicInteger count = numberOfUIsOpened.get(application);
if (count == null) {
@@ -32,7 +32,7 @@ public class UIsInMultipleTabs extends AbstractTestUIProvider {
}
@Override
- public Class<? extends UI> getUIClass(WrappedRequest request) {
+ public Class<? extends UI> getUIClass(VaadinRequest request) {
return TabUI.class;
}
diff --git a/uitest/src/com/vaadin/tests/components/ui/UriFragmentTest.java b/uitest/src/com/vaadin/tests/components/ui/UriFragmentTest.java
index 591a045e1d..b1cfffd410 100644
--- a/uitest/src/com/vaadin/tests/components/ui/UriFragmentTest.java
+++ b/uitest/src/com/vaadin/tests/components/ui/UriFragmentTest.java
@@ -2,7 +2,7 @@ package com.vaadin.tests.components.ui;
import com.vaadin.server.Page;
import com.vaadin.server.Page.FragmentChangedEvent;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
@@ -13,7 +13,7 @@ public class UriFragmentTest extends AbstractTestUI {
private final Label fragmentLabel = new Label();
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
addComponent(fragmentLabel);
updateLabel();
getPage().addListener(new Page.FragmentChangedListener() {
diff --git a/uitest/src/com/vaadin/tests/components/uitest/ThemeTestUI.java b/uitest/src/com/vaadin/tests/components/uitest/ThemeTestUI.java
index 673045af89..b9e1529fef 100644
--- a/uitest/src/com/vaadin/tests/components/uitest/ThemeTestUI.java
+++ b/uitest/src/com/vaadin/tests/components/uitest/ThemeTestUI.java
@@ -1,6 +1,6 @@
package com.vaadin.tests.components.uitest;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
@@ -15,7 +15,7 @@ public class ThemeTestUI extends AbstractTestUI {
private String customStyleName = null;
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
getLayout().setSpacing(true);
createCustomStyleStringField();
diff --git a/uitest/src/com/vaadin/tests/components/window/AttachShouldBeCalledForSubWindows.java b/uitest/src/com/vaadin/tests/components/window/AttachShouldBeCalledForSubWindows.java
index 4d0dea4f91..33eb310822 100644
--- a/uitest/src/com/vaadin/tests/components/window/AttachShouldBeCalledForSubWindows.java
+++ b/uitest/src/com/vaadin/tests/components/window/AttachShouldBeCalledForSubWindows.java
@@ -2,7 +2,7 @@ package com.vaadin.tests.components.window;
import com.vaadin.event.ShortcutAction.KeyCode;
import com.vaadin.server.VaadinService;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.tests.util.Log;
import com.vaadin.ui.Button;
@@ -23,7 +23,7 @@ public class AttachShouldBeCalledForSubWindows extends AbstractTestCase {
@Override
public void init() {
- WrappedRequest request = VaadinService.getCurrentRequest();
+ VaadinRequest request = VaadinService.getCurrentRequest();
if (request.getParameter("attachMainFirst") != null) {
addSubWindowBeforeMainWindow = false;
} else {
diff --git a/uitest/src/com/vaadin/tests/components/window/RepaintWindowContents.java b/uitest/src/com/vaadin/tests/components/window/RepaintWindowContents.java
index 847ee585f7..5a0e4d1370 100644
--- a/uitest/src/com/vaadin/tests/components/window/RepaintWindowContents.java
+++ b/uitest/src/com/vaadin/tests/components/window/RepaintWindowContents.java
@@ -1,6 +1,6 @@
package com.vaadin.tests.components.window;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
@@ -14,7 +14,7 @@ public class RepaintWindowContents extends AbstractTestUI {
@SuppressWarnings("serial")
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
final Window window = new Window("Test window");
addWindow(window);
diff --git a/uitest/src/com/vaadin/tests/components/window/TooltipInWindow.java b/uitest/src/com/vaadin/tests/components/window/TooltipInWindow.java
index 7d4efe39ce..12af6ccdae 100644
--- a/uitest/src/com/vaadin/tests/components/window/TooltipInWindow.java
+++ b/uitest/src/com/vaadin/tests/components/window/TooltipInWindow.java
@@ -16,7 +16,7 @@
package com.vaadin.tests.components.window;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.TextField;
import com.vaadin.ui.Window;
@@ -24,7 +24,7 @@ import com.vaadin.ui.Window;
public class TooltipInWindow extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
Window window = new Window("Window");
window.getContent().setSizeUndefined();
window.center();
diff --git a/uitest/src/com/vaadin/tests/extensions/BasicExtensionTest.java b/uitest/src/com/vaadin/tests/extensions/BasicExtensionTest.java
index 40856af11e..ca53427e91 100644
--- a/uitest/src/com/vaadin/tests/extensions/BasicExtensionTest.java
+++ b/uitest/src/com/vaadin/tests/extensions/BasicExtensionTest.java
@@ -17,7 +17,7 @@
package com.vaadin.tests.extensions;
import com.vaadin.annotations.Widgetset;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
@@ -28,7 +28,7 @@ import com.vaadin.ui.Label;
public class BasicExtensionTest extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
Label label = new Label();
addComponent(label);
diff --git a/uitest/src/com/vaadin/tests/extensions/HelloWorldExtensionTest.java b/uitest/src/com/vaadin/tests/extensions/HelloWorldExtensionTest.java
index 576b16fbb6..f4b95f3391 100644
--- a/uitest/src/com/vaadin/tests/extensions/HelloWorldExtensionTest.java
+++ b/uitest/src/com/vaadin/tests/extensions/HelloWorldExtensionTest.java
@@ -16,7 +16,7 @@
package com.vaadin.tests.extensions;
import com.vaadin.annotations.Widgetset;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
@@ -25,7 +25,7 @@ import com.vaadin.ui.Button.ClickEvent;
public class HelloWorldExtensionTest extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
final HelloWorldExtension extension = new HelloWorldExtension();
extension.setGreeting("Kind words");
addExtension(extension);
diff --git a/uitest/src/com/vaadin/tests/extensions/JavascriptManagerTest.java b/uitest/src/com/vaadin/tests/extensions/JavascriptManagerTest.java
index 9999925bb0..47d5f8648b 100644
--- a/uitest/src/com/vaadin/tests/extensions/JavascriptManagerTest.java
+++ b/uitest/src/com/vaadin/tests/extensions/JavascriptManagerTest.java
@@ -20,7 +20,7 @@ import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.tests.util.Log;
import com.vaadin.ui.JavaScript;
@@ -31,7 +31,7 @@ public class JavascriptManagerTest extends AbstractTestUI {
private Log log = new Log(5);
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
addComponent(log);
final JavaScript js = JavaScript.getCurrent();
js.addFunction("testing.doTest", new JavaScriptFunction() {
diff --git a/uitest/src/com/vaadin/tests/extensions/SimpleJavaScriptExtensionTest.java b/uitest/src/com/vaadin/tests/extensions/SimpleJavaScriptExtensionTest.java
index ee78a1a6a0..19c289484a 100644
--- a/uitest/src/com/vaadin/tests/extensions/SimpleJavaScriptExtensionTest.java
+++ b/uitest/src/com/vaadin/tests/extensions/SimpleJavaScriptExtensionTest.java
@@ -22,7 +22,7 @@ import org.json.JSONException;
import com.vaadin.annotations.JavaScript;
import com.vaadin.annotations.StyleSheet;
import com.vaadin.server.AbstractJavaScriptExtension;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.shared.JavaScriptExtensionState;
import com.vaadin.shared.communication.ClientRpc;
import com.vaadin.shared.communication.ServerRpc;
@@ -98,7 +98,7 @@ public class SimpleJavaScriptExtensionTest extends AbstractTestUI {
}
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
final SimpleJavascriptExtension simpleJavascriptExtension = new SimpleJavascriptExtension();
simpleJavascriptExtension.setPrefix("Prefix: ");
addExtension(simpleJavascriptExtension);
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/AutoGeneratingForm.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/AutoGeneratingForm.java
index 4e8d2f3160..4111f6c07a 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/AutoGeneratingForm.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/AutoGeneratingForm.java
@@ -19,7 +19,7 @@ package com.vaadin.tests.minitutorials.v7a1;
import com.vaadin.data.fieldgroup.BeanFieldGroup;
import com.vaadin.data.fieldgroup.FieldGroup;
import com.vaadin.data.util.BeanItem;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.UI;
/**
@@ -33,7 +33,7 @@ import com.vaadin.ui.UI;
public class AutoGeneratingForm extends UI {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
FieldGroup fieldGroup = new BeanFieldGroup<Person>(Person.class);
// We need an item data source before we create the fields to be able to
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/BasicApplication.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/BasicApplication.java
index f55377b3f4..b099b7d466 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/BasicApplication.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/BasicApplication.java
@@ -16,7 +16,7 @@
package com.vaadin.tests.minitutorials.v7a1;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;
@@ -31,7 +31,7 @@ import com.vaadin.ui.VerticalLayout;
public class BasicApplication extends UI {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
VerticalLayout view = new VerticalLayout();
view.addComponent(new Label("Hello Vaadin!"));
setContent(view);
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/CreatingPreserveState.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/CreatingPreserveState.java
index cfb24c732f..ffe1f09216 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/CreatingPreserveState.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/CreatingPreserveState.java
@@ -17,7 +17,7 @@
package com.vaadin.tests.minitutorials.v7a1;
import com.vaadin.annotations.PreserveOnRefresh;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.TextField;
import com.vaadin.ui.UI;
@@ -34,7 +34,7 @@ public class CreatingPreserveState extends UI {
private static int windowCounter = 0;
@Override
- public void init(WrappedRequest request) {
+ public void init(VaadinRequest request) {
TextField tf = new TextField("Window #" + (++windowCounter));
tf.setImmediate(true);
getContent().addComponent(tf);
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/CustomConverterFactoryUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/CustomConverterFactoryUI.java
index ff2263e208..8438135c60 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/CustomConverterFactoryUI.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/CustomConverterFactoryUI.java
@@ -1,12 +1,12 @@
package com.vaadin.tests.minitutorials.v7a1;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.TextField;
public class CustomConverterFactoryUI extends AbstractTestUI {
@Override
- public void setup(WrappedRequest request) {
+ public void setup(VaadinRequest request) {
getSession().setConverterFactory(new MyConverterFactory());
TextField tf = new TextField("This is my double field");
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/DefineUITheme.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/DefineUITheme.java
index 9da6a75a45..a06a41602a 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/DefineUITheme.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/DefineUITheme.java
@@ -17,7 +17,7 @@
package com.vaadin.tests.minitutorials.v7a1;
import com.vaadin.annotations.Theme;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;
@@ -33,7 +33,7 @@ import com.vaadin.ui.VerticalLayout;
public class DefineUITheme extends UI {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
VerticalLayout view = new VerticalLayout();
view.addComponent(new Label("Hello Vaadin"));
setContent(view);
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/DifferentFeaturesForDifferentClients.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/DifferentFeaturesForDifferentClients.java
index 821660e9e6..d6d2aa2440 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/DifferentFeaturesForDifferentClients.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/DifferentFeaturesForDifferentClients.java
@@ -18,7 +18,7 @@ package com.vaadin.tests.minitutorials.v7a1;
import com.vaadin.server.AbstractUIProvider;
import com.vaadin.server.WebBrowser;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;
@@ -33,7 +33,7 @@ import com.vaadin.ui.UI;
public class DifferentFeaturesForDifferentClients extends AbstractUIProvider {
@Override
- public Class<? extends UI> getUIClass(WrappedRequest request) {
+ public Class<? extends UI> getUIClass(VaadinRequest request) {
// could also use browser version etc.
if (request.getHeader("user-agent").contains("mobile")) {
return TouchRoot.class;
@@ -45,7 +45,7 @@ public class DifferentFeaturesForDifferentClients extends AbstractUIProvider {
// Must override as default implementation isn't allowed to
// instantiate our non-public classes
@Override
- public UI createInstance(WrappedRequest request,
+ public UI createInstance(VaadinRequest request,
Class<? extends UI> type) {
try {
return type.newInstance();
@@ -57,7 +57,7 @@ public class DifferentFeaturesForDifferentClients extends AbstractUIProvider {
class DefaultRoot extends UI {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
getContent().addComponent(
new Label("This browser does not support touch events"));
}
@@ -65,7 +65,7 @@ class DefaultRoot extends UI {
class TouchRoot extends UI {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
WebBrowser webBrowser = request.getBrowserDetails().getWebBrowser();
String screenSize = "" + webBrowser.getScreenWidth() + "x"
+ webBrowser.getScreenHeight();
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/DynamicImageUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/DynamicImageUI.java
index e17d7c2a34..8ab2796da4 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/DynamicImageUI.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/DynamicImageUI.java
@@ -10,15 +10,15 @@ import javax.imageio.ImageIO;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.RequestHandler;
import com.vaadin.server.VaadinSession;
-import com.vaadin.server.WrappedRequest;
-import com.vaadin.server.WrappedResponse;
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.server.VaadinResponse;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Embedded;
public class DynamicImageUI extends AbstractTestUI {
@Override
- public void setup(WrappedRequest request) {
+ public void setup(VaadinRequest request) {
// Add the request handler that handles our dynamic image
getSession().addRequestHandler(new DynamicImageRequestHandler());
@@ -57,7 +57,7 @@ class DynamicImageRequestHandler implements RequestHandler {
@Override
public boolean handleRequest(VaadinSession session,
- WrappedRequest request, WrappedResponse response)
+ VaadinRequest request, VaadinResponse response)
throws IOException {
String pathInfo = request.getRequestPathInfo();
if (("/" + IMAGE_URL).equals(pathInfo)) {
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/FindCurrentUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/FindCurrentUI.java
index ef0346b293..cc1bc8c77b 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/FindCurrentUI.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/FindCurrentUI.java
@@ -17,7 +17,7 @@
package com.vaadin.tests.minitutorials.v7a1;
import com.vaadin.server.VaadinSession;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
@@ -35,7 +35,7 @@ import com.vaadin.ui.UI;
public class FindCurrentUI extends UI {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
Button helloButton = new Button("Say Hello");
helloButton.addListener(new ClickListener() {
@Override
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/FormUsingExistingLayout.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/FormUsingExistingLayout.java
index a3de39c039..84f6ec26ff 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/FormUsingExistingLayout.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/FormUsingExistingLayout.java
@@ -3,7 +3,7 @@ package com.vaadin.tests.minitutorials.v7a1;
import com.vaadin.data.fieldgroup.FieldGroup;
import com.vaadin.data.fieldgroup.PropertyId;
import com.vaadin.data.util.BeanItem;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.TextArea;
@@ -73,7 +73,7 @@ public class FormUsingExistingLayout extends AbstractTestUI {
}
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
// Create the layout
MyFormLayout myFormLayout = new MyFormLayout();
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/FormatTableValue.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/FormatTableValue.java
index ae8de83e30..be2768a5f7 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/FormatTableValue.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/FormatTableValue.java
@@ -4,7 +4,7 @@ import java.text.NumberFormat;
import java.util.Locale;
import com.vaadin.data.util.converter.StringToNumberConverter;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Table;
@@ -15,7 +15,7 @@ public class FormatTableValue extends AbstractTestUI {
private static final String DEFAULT_PROPERTY = "default";
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
Table table = new Table();
table.setLocale(Locale.FRANCE);
table.addContainerProperty(PERCENT_PROPERTY, Double.class, 0);
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldDataSource.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldDataSource.java
index f0df14e158..8c38cf03b0 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldDataSource.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldDataSource.java
@@ -2,7 +2,7 @@ package com.vaadin.tests.minitutorials.v7a1;
import com.vaadin.data.Property;
import com.vaadin.data.util.BeanItem;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
@@ -26,7 +26,7 @@ public class IntegerTextFieldDataSource extends AbstractTestUI {
}
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
final MyBean myBean = new MyBean();
BeanItem<MyBean> beanItem = new BeanItem<MyBean>(myBean);
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldStandalone.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldStandalone.java
index 1e32916d0b..fd43115732 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldStandalone.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldStandalone.java
@@ -2,7 +2,7 @@ package com.vaadin.tests.minitutorials.v7a1;
import com.vaadin.data.util.converter.Converter.ConversionException;
import com.vaadin.data.util.converter.StringToIntegerConverter;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
@@ -14,7 +14,7 @@ import com.vaadin.ui.TextField;
public class IntegerTextFieldStandalone extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
final TextField textField = new TextField("Text field");
textField.setConverter(new StringToIntegerConverter());
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/MultiTabApplication.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/MultiTabApplication.java
index 2c7d6ee7ba..3ddfaa606d 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/MultiTabApplication.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/MultiTabApplication.java
@@ -17,7 +17,7 @@
package com.vaadin.tests.minitutorials.v7a1;
import com.vaadin.server.ExternalResource;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Label;
import com.vaadin.ui.Link;
import com.vaadin.ui.UI;
@@ -50,7 +50,7 @@ public class MultiTabApplication extends UI {
}
@Override
- public void init(WrappedRequest request) {
+ public void init(VaadinRequest request) {
String person = request.getParameter("editPerson");
if (person == null) {
setContent(new MainView());
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/StringMyTypeConverter.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/StringMyTypeConverter.java
index 5834f320af..9ec7a82580 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/StringMyTypeConverter.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/StringMyTypeConverter.java
@@ -4,7 +4,7 @@ import java.util.Locale;
import com.vaadin.data.util.converter.Converter;
import com.vaadin.data.util.converter.Converter.ConversionException;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
@@ -15,7 +15,7 @@ import com.vaadin.ui.TextField;
public class StringMyTypeConverter extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
Name name = new Name("Rudolph", "Reindeer");
final TextField textField = new TextField("Name");
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingBeanValidation.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingBeanValidation.java
index ea74baf111..51c7cbbe60 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingBeanValidation.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingBeanValidation.java
@@ -22,7 +22,7 @@ import javax.validation.constraints.Size;
import com.vaadin.data.util.BeanItem;
import com.vaadin.data.validator.BeanValidator;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.TextField;
import com.vaadin.ui.UI;
@@ -70,7 +70,7 @@ public class UsingBeanValidation extends UI {
}
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
Person person = new Person("John", 26);
BeanItem<Person> item = new BeanItem<Person>(person);
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java
index 19b97078d3..9d494f7858 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingUriFragments.java
@@ -18,7 +18,7 @@ package com.vaadin.tests.minitutorials.v7a1;
import com.vaadin.server.Page.FragmentChangedEvent;
import com.vaadin.server.Page.FragmentChangedListener;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
@@ -34,7 +34,7 @@ import com.vaadin.ui.UI;
public class UsingUriFragments extends UI {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
Label label = new Label("Hello, your fragment is "
+ request.getBrowserDetails().getUriFragment());
getContent().addComponent(label);
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingXyzWhenInitializing.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingXyzWhenInitializing.java
index dc6c8ce7bf..52499ffbe5 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingXyzWhenInitializing.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/UsingXyzWhenInitializing.java
@@ -16,7 +16,7 @@
package com.vaadin.tests.minitutorials.v7a1;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;
@@ -31,7 +31,7 @@ import com.vaadin.ui.UI;
public class UsingXyzWhenInitializing extends UI {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
String name = request.getParameter("name");
if (name == null) {
name = "Unknown";
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a2/ComponentInStateUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7a2/ComponentInStateUI.java
index 8ad3b037b3..da178167ed 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a2/ComponentInStateUI.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a2/ComponentInStateUI.java
@@ -1,7 +1,7 @@
package com.vaadin.tests.minitutorials.v7a2;
import com.vaadin.annotations.Widgetset;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;
@@ -16,7 +16,7 @@ import com.vaadin.ui.UI;
@Widgetset("com.vaadin.tests.widgetset.TestingWidgetSet")
public class ComponentInStateUI extends UI {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
ComponentInStateComponent component = new ComponentInStateComponent();
component.setOtherComponent(this);
addComponent(component);
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a2/MyComponentUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7a2/MyComponentUI.java
index 62088f304d..caf38077bf 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a2/MyComponentUI.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a2/MyComponentUI.java
@@ -17,7 +17,7 @@
package com.vaadin.tests.minitutorials.v7a2;
import com.vaadin.annotations.Widgetset;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.UI;
/**
@@ -36,7 +36,7 @@ import com.vaadin.ui.UI;
public class MyComponentUI extends UI {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
MyComponent component = new MyComponent();
component.setText("My component text");
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a2/ResourceInStateUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7a2/ResourceInStateUI.java
index 35062fbf0c..2a64792646 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a2/ResourceInStateUI.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a2/ResourceInStateUI.java
@@ -18,7 +18,7 @@ package com.vaadin.tests.minitutorials.v7a2;
import com.vaadin.annotations.Widgetset;
import com.vaadin.server.ThemeResource;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.UI;
/**
@@ -33,7 +33,7 @@ import com.vaadin.ui.UI;
public class ResourceInStateUI extends UI {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
ResourceInStateComponent component = new ResourceInStateComponent();
component.setIcon(new ThemeResource("../runo/icons/32/calendar.png"));
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a2/WidgetcontainerUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7a2/WidgetcontainerUI.java
index 76e332504c..f7cf6b4270 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a2/WidgetcontainerUI.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a2/WidgetcontainerUI.java
@@ -3,7 +3,7 @@ package com.vaadin.tests.minitutorials.v7a2;
import java.util.Random;
import com.vaadin.annotations.Widgetset;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
@@ -15,7 +15,7 @@ import com.vaadin.ui.UI;
@Widgetset("com.vaadin.tests.widgetset.TestingWidgetSet")
public class WidgetcontainerUI extends UI {
@Override
- public void init(WrappedRequest request) {
+ public void init(VaadinRequest request) {
Label label = new Label("Hello Vaadin user");
addComponent(label);
final WidgetContainer widgetContainer = new WidgetContainer();
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a3/AnalyticsUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7a3/AnalyticsUI.java
index 95055cd207..980d0b90b2 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a3/AnalyticsUI.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a3/AnalyticsUI.java
@@ -16,7 +16,7 @@
package com.vaadin.tests.minitutorials.v7a3;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI;
@@ -24,7 +24,7 @@ import com.vaadin.ui.UI;
public class AnalyticsUI extends UI {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
final Analytics analytics = new Analytics("UA-33036133-12");
analytics.extend(this);
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a3/CapsLockWarningUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7a3/CapsLockWarningUI.java
index c82bc91088..45ac7a94a3 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a3/CapsLockWarningUI.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a3/CapsLockWarningUI.java
@@ -17,7 +17,7 @@
package com.vaadin.tests.minitutorials.v7a3;
import com.vaadin.annotations.Widgetset;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.tests.widgetset.TestingWidgetSet;
import com.vaadin.ui.PasswordField;
@@ -26,7 +26,7 @@ import com.vaadin.ui.PasswordField;
public class CapsLockWarningUI extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
PasswordField field = new PasswordField("Enter your password");
new CapsLockWarning().extend(field);
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a3/ComplexTypesUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7a3/ComplexTypesUI.java
index b84cb5e599..792be69410 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a3/ComplexTypesUI.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a3/ComplexTypesUI.java
@@ -16,13 +16,13 @@
package com.vaadin.tests.minitutorials.v7a3;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.UI;
public class ComplexTypesUI extends UI {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
ComplexTypesComponent complexTypesComponent = new ComplexTypesComponent();
complexTypesComponent.sendComplexTypes();
addComponent(complexTypesComponent);
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a3/FlotJavaScriptUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7a3/FlotJavaScriptUI.java
index 5e519d1b7a..a3ed5fe11e 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a3/FlotJavaScriptUI.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a3/FlotJavaScriptUI.java
@@ -16,7 +16,7 @@
package com.vaadin.tests.minitutorials.v7a3;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI;
@@ -24,7 +24,7 @@ import com.vaadin.ui.UI;
public class FlotJavaScriptUI extends UI {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
final Flot flot = new Flot();
flot.setHeight("300px");
flot.setWidth("400px");
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a3/RedButtonUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7a3/RedButtonUI.java
index 793ba3dee8..18b4b1430e 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a3/RedButtonUI.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a3/RedButtonUI.java
@@ -16,12 +16,12 @@
package com.vaadin.tests.minitutorials.v7a3;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.UI;
public class RedButtonUI extends UI {
@Override
- protected void init(WrappedRequest request) {
+ protected void init(VaadinRequest request) {
addComponent(new RedButton("My red button"));
}
} \ No newline at end of file
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7b1/ReducingRoundTrips.java b/uitest/src/com/vaadin/tests/minitutorials/v7b1/ReducingRoundTrips.java
index 4ab3bc1526..56deebe95a 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7b1/ReducingRoundTrips.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7b1/ReducingRoundTrips.java
@@ -17,7 +17,7 @@
package com.vaadin.tests.minitutorials.v7b1;
import com.vaadin.annotations.Widgetset;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.tests.widgetset.TestingWidgetSet;
import com.vaadin.ui.PasswordField;
@@ -25,7 +25,7 @@ import com.vaadin.ui.PasswordField;
@Widgetset(TestingWidgetSet.NAME)
public class ReducingRoundTrips extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
PasswordField passwordField = new PasswordField("Enter password");
passwordField.setImmediate(true);
CapsLockWarningWithRpc capsLockWarningWithRpc = new CapsLockWarningWithRpc();
diff --git a/uitest/src/com/vaadin/tests/navigator/NavigatorTest.java b/uitest/src/com/vaadin/tests/navigator/NavigatorTest.java
index a3f7ce9f5b..146b4df02f 100644
--- a/uitest/src/com/vaadin/tests/navigator/NavigatorTest.java
+++ b/uitest/src/com/vaadin/tests/navigator/NavigatorTest.java
@@ -8,7 +8,7 @@ import com.vaadin.navigator.Navigator;
import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.util.Log;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
@@ -111,7 +111,7 @@ public class NavigatorTest extends UI {
}
@Override
- protected void init(WrappedRequest req) {
+ protected void init(VaadinRequest req) {
try {
navi = new Navigator(this, naviLayout);
diff --git a/uitest/src/com/vaadin/tests/resources/ConnectorResourceTest.java b/uitest/src/com/vaadin/tests/resources/ConnectorResourceTest.java
index 4da3bcef2c..580188fd9b 100644
--- a/uitest/src/com/vaadin/tests/resources/ConnectorResourceTest.java
+++ b/uitest/src/com/vaadin/tests/resources/ConnectorResourceTest.java
@@ -7,8 +7,8 @@ import java.util.HashMap;
import javax.imageio.ImageIO;
import com.vaadin.server.DynamicConnectorResource;
-import com.vaadin.server.WrappedRequest;
-import com.vaadin.server.WrappedResponse;
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.server.VaadinResponse;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Embedded;
@@ -17,7 +17,7 @@ public class ConnectorResourceTest extends AbstractTestUI {
private static final String DYNAMIC_IMAGE_NAME = "requestImage.png";
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
addComponent(new Embedded(DYNAMIC_IMAGE_NAME,
new DynamicConnectorResource(this, DYNAMIC_IMAGE_NAME)));
addComponent(new Embedded("Dynamic text", new DynamicConnectorResource(
@@ -40,8 +40,8 @@ public class ConnectorResourceTest extends AbstractTestUI {
}
@Override
- public boolean handleConnectorRequest(WrappedRequest request,
- WrappedResponse response, String path) throws IOException {
+ public boolean handleConnectorRequest(VaadinRequest request,
+ VaadinResponse response, String path) throws IOException {
if (DYNAMIC_IMAGE_NAME.equals(path)) {
// Create an image, draw the "text" parameter to it and output it to
// the browser.
diff --git a/uitest/src/com/vaadin/tests/serialization/DelegateToWidgetTest.java b/uitest/src/com/vaadin/tests/serialization/DelegateToWidgetTest.java
index 3a5dd0a326..7d5f0b8da8 100644
--- a/uitest/src/com/vaadin/tests/serialization/DelegateToWidgetTest.java
+++ b/uitest/src/com/vaadin/tests/serialization/DelegateToWidgetTest.java
@@ -17,7 +17,7 @@
package com.vaadin.tests.serialization;
import com.vaadin.annotations.Widgetset;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.tests.widgetset.TestingWidgetSet;
import com.vaadin.tests.widgetset.server.DelegateToWidgetComponent;
@@ -25,7 +25,7 @@ import com.vaadin.tests.widgetset.server.DelegateToWidgetComponent;
@Widgetset(TestingWidgetSet.NAME)
public class DelegateToWidgetTest extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
addComponent(new DelegateToWidgetComponent());
}
diff --git a/uitest/src/com/vaadin/tests/serialization/DelegateWithoutStateClassTest.java b/uitest/src/com/vaadin/tests/serialization/DelegateWithoutStateClassTest.java
index 29975dda91..5a4bc47b61 100644
--- a/uitest/src/com/vaadin/tests/serialization/DelegateWithoutStateClassTest.java
+++ b/uitest/src/com/vaadin/tests/serialization/DelegateWithoutStateClassTest.java
@@ -17,7 +17,7 @@
package com.vaadin.tests.serialization;
import com.vaadin.annotations.Widgetset;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.tests.widgetset.TestingWidgetSet;
import com.vaadin.tests.widgetset.server.DelegateWithoutStateClassComponent;
@@ -26,7 +26,7 @@ import com.vaadin.tests.widgetset.server.DelegateWithoutStateClassComponent;
public class DelegateWithoutStateClassTest extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
DelegateWithoutStateClassComponent c = new DelegateWithoutStateClassComponent();
c.setRows(10);
addComponent(c);
diff --git a/uitest/src/com/vaadin/tests/serialization/SerializerNamespaceTest.java b/uitest/src/com/vaadin/tests/serialization/SerializerNamespaceTest.java
index 0d939a3d18..5932976935 100644
--- a/uitest/src/com/vaadin/tests/serialization/SerializerNamespaceTest.java
+++ b/uitest/src/com/vaadin/tests/serialization/SerializerNamespaceTest.java
@@ -17,7 +17,7 @@
package com.vaadin.tests.serialization;
import com.vaadin.annotations.Widgetset;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.tests.widgetset.TestingWidgetSet;
import com.vaadin.tests.widgetset.server.DummyLabel;
@@ -27,7 +27,7 @@ import com.vaadin.ui.Label;
public class SerializerNamespaceTest extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
addComponent(new Label("The real label"));
addComponent(new DummyLabel("The dummy label"));
}
diff --git a/uitest/src/com/vaadin/tests/serialization/SerializerTest.java b/uitest/src/com/vaadin/tests/serialization/SerializerTest.java
index a614b99b20..e7acd3e79b 100644
--- a/uitest/src/com/vaadin/tests/serialization/SerializerTest.java
+++ b/uitest/src/com/vaadin/tests/serialization/SerializerTest.java
@@ -27,7 +27,7 @@ import java.util.Map.Entry;
import java.util.Set;
import com.vaadin.annotations.Widgetset;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.shared.Connector;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.tests.components.AbstractTestUI;
@@ -43,7 +43,7 @@ public class SerializerTest extends AbstractTestUI {
private Log log = new Log(40);
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
final SerializerTestExtension testExtension = new SerializerTestExtension();
addExtension(testExtension);
addComponent(log);
diff --git a/uitest/src/com/vaadin/tests/themes/LiferayThemeTest.java b/uitest/src/com/vaadin/tests/themes/LiferayThemeTest.java
index 6640134326..c1324a0751 100644
--- a/uitest/src/com/vaadin/tests/themes/LiferayThemeTest.java
+++ b/uitest/src/com/vaadin/tests/themes/LiferayThemeTest.java
@@ -1,7 +1,7 @@
package com.vaadin.tests.themes;
import com.vaadin.annotations.Theme;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
@@ -11,7 +11,7 @@ import com.vaadin.ui.themes.LiferayTheme;
public class LiferayThemeTest extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
Panel p = new Panel("Panel");
addComponent(p);
p.addComponent(new Label("Panel content"));
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1589.java b/uitest/src/com/vaadin/tests/tickets/Ticket1589.java
index 4c6073c7ed..2facf44268 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1589.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1589.java
@@ -15,8 +15,8 @@ import com.vaadin.server.DownloadStream;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.RequestHandler;
import com.vaadin.server.VaadinSession;
-import com.vaadin.server.WrappedRequest;
-import com.vaadin.server.WrappedResponse;
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.server.VaadinResponse;
import com.vaadin.ui.Link;
import com.vaadin.ui.UI.LegacyWindow;
@@ -53,7 +53,7 @@ class MyDynamicResource implements RequestHandler {
*/
@Override
public boolean handleRequest(VaadinSession session,
- WrappedRequest request, WrappedResponse response)
+ VaadinRequest request, VaadinResponse response)
throws IOException {
String relativeUri = request.getRequestPathInfo();
// Catch the given URI that identifies the resource, otherwise let other
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1921.java b/uitest/src/com/vaadin/tests/tickets/Ticket1921.java
index d2aa19e47d..f18406ede3 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1921.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1921.java
@@ -6,8 +6,8 @@ import java.util.Map;
import com.vaadin.LegacyApplication;
import com.vaadin.server.RequestHandler;
import com.vaadin.server.VaadinSession;
-import com.vaadin.server.WrappedRequest;
-import com.vaadin.server.WrappedResponse;
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.server.VaadinResponse;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
@@ -95,7 +95,7 @@ public class Ticket1921 extends LegacyApplication implements RequestHandler {
@Override
public boolean handleRequest(VaadinSession session,
- WrappedRequest request, WrappedResponse response)
+ VaadinRequest request, VaadinResponse response)
throws IOException {
Map<String, String[]> parameters = request.getParameterMap();
String[] s = parameters.get("state");
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2292.java b/uitest/src/com/vaadin/tests/tickets/Ticket2292.java
index 8fd1c7f883..e67e83b501 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2292.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2292.java
@@ -13,8 +13,8 @@ import com.vaadin.server.DownloadStream;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.RequestHandler;
import com.vaadin.server.VaadinSession;
-import com.vaadin.server.WrappedRequest;
-import com.vaadin.server.WrappedResponse;
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.server.VaadinResponse;
import com.vaadin.ui.Button;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.Label;
@@ -49,7 +49,7 @@ public class Ticket2292 extends com.vaadin.LegacyApplication implements
@Override
public boolean handleRequest(VaadinSession session,
- WrappedRequest request, WrappedResponse response)
+ VaadinRequest request, VaadinResponse response)
throws IOException {
String relativeUri = request.getRequestPathInfo();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket8291.java b/uitest/src/com/vaadin/tests/tickets/Ticket8291.java
index 820502afa1..8667475f14 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket8291.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket8291.java
@@ -7,7 +7,7 @@ import java.util.List;
import com.vaadin.data.Container.Filter;
import com.vaadin.data.Item;
import com.vaadin.data.util.BeanItemContainer;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.HorizontalLayout;
@@ -21,7 +21,7 @@ import com.vaadin.ui.UI;
public class Ticket8291 extends UI {
@Override
- public void init(WrappedRequest request) {
+ public void init(VaadinRequest request) {
setContent(new TestView());
}
diff --git a/uitest/src/com/vaadin/tests/vaadincontext/BootstrapModifyUI.java b/uitest/src/com/vaadin/tests/vaadincontext/BootstrapModifyUI.java
index bc3d88e2bb..35f7aeb044 100644
--- a/uitest/src/com/vaadin/tests/vaadincontext/BootstrapModifyUI.java
+++ b/uitest/src/com/vaadin/tests/vaadincontext/BootstrapModifyUI.java
@@ -16,13 +16,13 @@
package com.vaadin.tests.vaadincontext;
-import com.vaadin.server.WrappedRequest;
+import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
public class BootstrapModifyUI extends AbstractTestUI {
@Override
- protected void setup(WrappedRequest request) {
+ protected void setup(VaadinRequest request) {
// TODO Auto-generated method stub
}