aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2011-11-08 13:28:06 +0200
committerLeif Åstrand <leif@vaadin.com>2011-11-08 13:28:06 +0200
commit05ec251105b50fa8654df0d29fa266208303a68a (patch)
treebb1183cdad34674fa3ac62aa62ff289322e6552e
parent14c7c17ffa25f6f3e48695927d24d21008b1b089 (diff)
downloadvaadin-framework-05ec251105b50fa8654df0d29fa266208303a68a.tar.gz
vaadin-framework-05ec251105b50fa8654df0d29fa266208303a68a.zip
Remove wrapped request and response as existing classes are used
-rw-r--r--src/com/vaadin/terminal/gwt/server/WrappedHttpServletRequest.java71
-rw-r--r--src/com/vaadin/terminal/gwt/server/WrappedHttpServletResponse.java43
2 files changed, 0 insertions, 114 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/WrappedHttpServletRequest.java b/src/com/vaadin/terminal/gwt/server/WrappedHttpServletRequest.java
deleted file mode 100644
index 96f031a530..0000000000
--- a/src/com/vaadin/terminal/gwt/server/WrappedHttpServletRequest.java
+++ /dev/null
@@ -1,71 +0,0 @@
-package com.vaadin.terminal.gwt.server;
-
-import java.util.Enumeration;
-import java.util.Iterator;
-import java.util.Map;
-
-import javax.servlet.http.Cookie;
-import javax.servlet.http.HttpServletRequest;
-
-import com.vaadin.terminal.WrappedRequest;
-
-public class WrappedHttpServletRequest implements WrappedRequest {
-
- private final HttpServletRequest request;
-
- public WrappedHttpServletRequest(HttpServletRequest request) {
- this.request = request;
- }
-
- public HttpServletRequest getHttpServletRequest() {
- return request;
- }
-
- public String getParameter(String parameter) {
- return request.getParameter(parameter);
- }
-
- public Iterable<String> getParameterNames() {
- return new Iterable<String>() {
- public Iterator<String> iterator() {
- final Enumeration<String> parameterNames = request
- .getParameterNames();
- return new Iterator<String>() {
-
- public boolean hasNext() {
- return parameterNames.hasMoreElements();
- }
-
- public String next() {
- return parameterNames.nextElement();
- }
-
- public void remove() {
- throw new UnsupportedOperationException();
- }
- };
- }
- };
- }
-
- public String[] getParameterValues(String parameter) {
- return request.getParameterValues(parameter);
- }
-
- public Map<String, String[]> getParameterMap() {
- return request.getParameterMap();
- }
-
- public String getRelativePath() {
- return request.getPathInfo();
- }
-
- public String getFullPath() {
- return request.getRequestURI();
- }
-
- public Cookie[] getCookies() {
- return request.getCookies();
- }
-
-}
diff --git a/src/com/vaadin/terminal/gwt/server/WrappedHttpServletResponse.java b/src/com/vaadin/terminal/gwt/server/WrappedHttpServletResponse.java
deleted file mode 100644
index 12c763c609..0000000000
--- a/src/com/vaadin/terminal/gwt/server/WrappedHttpServletResponse.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package com.vaadin.terminal.gwt.server;
-
-import java.io.IOException;
-import java.io.OutputStream;
-import java.io.PrintWriter;
-
-import javax.servlet.http.HttpServletResponse;
-
-import com.vaadin.terminal.WrappedResponse;
-
-public class WrappedHttpServletResponse implements WrappedResponse {
-
- private final HttpServletResponse response;
-
- public WrappedHttpServletResponse(HttpServletResponse response) {
- this.response = response;
- }
-
- public HttpServletResponse getHttpServletResponse() {
- return response;
- }
-
- public void setStatus(int statusCode) {
- response.setStatus(statusCode);
- }
-
- public void setContentType(String contentType) {
- response.setContentType(contentType);
- }
-
- public void setContentLenght(int contentLength) {
- response.setContentLength(contentLength);
- }
-
- public OutputStream getOutputStream() throws IOException {
- return response.getOutputStream();
- }
-
- public PrintWriter getWriter() throws IOException {
- return response.getWriter();
- }
-
-}