diff options
-rw-r--r-- | src/com/vaadin/Application.java | 3 | ||||
-rw-r--r-- | src/com/vaadin/terminal/ParameterHandler.java | 59 | ||||
-rw-r--r-- | src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java | 31 |
3 files changed, 0 insertions, 93 deletions
diff --git a/src/com/vaadin/Application.java b/src/com/vaadin/Application.java index 153906ed01..54846c0653 100644 --- a/src/com/vaadin/Application.java +++ b/src/com/vaadin/Application.java @@ -24,7 +24,6 @@ import java.util.logging.Logger; import com.vaadin.service.ApplicationContext; import com.vaadin.terminal.ApplicationResource; import com.vaadin.terminal.ErrorMessage; -import com.vaadin.terminal.ParameterHandler; import com.vaadin.terminal.RequestHandler; import com.vaadin.terminal.SystemError; import com.vaadin.terminal.Terminal; @@ -741,8 +740,6 @@ public abstract class Application implements Terminal.ErrorListener, Object owner = null; if (event instanceof VariableOwner.ErrorEvent) { owner = ((VariableOwner.ErrorEvent) event).getVariableOwner(); - } else if (event instanceof ParameterHandler.ErrorEvent) { - owner = ((ParameterHandler.ErrorEvent) event).getParameterHandler(); } else if (event instanceof ChangeVariablesErrorEvent) { owner = ((ChangeVariablesErrorEvent) event).getComponent(); } diff --git a/src/com/vaadin/terminal/ParameterHandler.java b/src/com/vaadin/terminal/ParameterHandler.java deleted file mode 100644 index be124d4bbd..0000000000 --- a/src/com/vaadin/terminal/ParameterHandler.java +++ /dev/null @@ -1,59 +0,0 @@ -/* -@ITMillApache2LicenseForJavaFiles@ - */ - -package com.vaadin.terminal; - -import java.io.Serializable; -import java.util.Map; - -import com.vaadin.ui.Window; - -/** - * {@code ParameterHandler} is implemented by classes capable of handling - * external parameters. - * - * <p> - * What parameters are provided depend on what the {@link Terminal} provides and - * if the application is deployed as a servlet or portlet. URL GET parameters - * are typically provided to the {@link #handleParameters(Map)} method. - * </p> - * <p> - * A {@code ParameterHandler} must be registered to a {@code Window} using - * {@link Window#addParameterHandler(ParameterHandler)} to be called when - * parameters are available. - * </p> - * - * @author IT Mill Ltd. - * @version - * @VERSION@ - * @since 3.0 - */ -public interface ParameterHandler extends Serializable { - - /** - * Handles the given parameters. All parameters names are of type - * {@link String} and the values are {@link String} arrays. - * - * @param parameters - * an unmodifiable map which contains the parameter names and - * values - * - */ - public void handleParameters(Map<String, String[]> parameters); - - /** - * An ErrorEvent implementation for ParameterHandler. - */ - public interface ErrorEvent extends Terminal.ErrorEvent { - - /** - * Gets the ParameterHandler that caused the error. - * - * @return the ParameterHandler that caused the error - */ - public ParameterHandler getParameterHandler(); - - } - -} diff --git a/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java b/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java index f86e2723ee..42f2658a40 100644 --- a/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java +++ b/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java @@ -37,7 +37,6 @@ import javax.servlet.http.HttpSession; import com.vaadin.Application; import com.vaadin.Application.SystemMessages; -import com.vaadin.terminal.ParameterHandler; import com.vaadin.terminal.Terminal; import com.vaadin.terminal.ThemeResource; import com.vaadin.terminal.WrappedRequest; @@ -2272,36 +2271,6 @@ public abstract class AbstractApplicationServlet extends HttpServlet implements return WebApplicationContext.getApplicationContext(session); } - /** - * Implementation of ParameterHandler.ErrorEvent interface. - */ - public class ParameterHandlerErrorImpl implements - ParameterHandler.ErrorEvent, Serializable { - - private ParameterHandler owner; - - private Throwable throwable; - - /** - * Gets the contained throwable. - * - * @see com.vaadin.terminal.Terminal.ErrorEvent#getThrowable() - */ - public Throwable getThrowable() { - return throwable; - } - - /** - * Gets the source ParameterHandler. - * - * @see com.vaadin.terminal.ParameterHandler.ErrorEvent#getParameterHandler() - */ - public ParameterHandler getParameterHandler() { - return owner; - } - - } - public class RequestError implements Terminal.ErrorEvent, Serializable { private final Throwable throwable; |