Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2014-10-08 14:12:05 +0000
committerThomas Watson2014-10-08 14:26:32 +0000
commitdc03a2df7ee5c0e2cca05ae1a194e9839ae91b0a (patch)
treefec15ce88612f885befc72553756062d6679d747 /org.eclipse.ua.tests/help/org/eclipse/ua/tests
parent55bcbcc877edc933d4c7dac707c8131d532221c8 (diff)
downloadeclipse.platform.ua-dc03a2df7ee5c0e2cca05ae1a194e9839ae91b0a.tar.gz
eclipse.platform.ua-dc03a2df7ee5c0e2cca05ae1a194e9839ae91b0a.tar.xz
eclipse.platform.ua-dc03a2df7ee5c0e2cca05ae1a194e9839ae91b0a.zip
- updates to help to support servlet 3.1 Change-Id: I6a2f395c43a2e47eaf785e4f198835fd2c78706a Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
Diffstat (limited to 'org.eclipse.ua.tests/help/org/eclipse/ua/tests')
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp/MockServletRequest.java18
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp/MockServletResponse.java7
2 files changed, 23 insertions, 2 deletions
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp/MockServletRequest.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp/MockServletRequest.java
index 1aea35af3..1d8aa67a7 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp/MockServletRequest.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp/MockServletRequest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2011 IBM Corporation and others.
+ * Copyright (c) 2008, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -33,6 +33,7 @@ import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
+import javax.servlet.http.HttpUpgradeHandler;
import javax.servlet.http.Part;
/**
@@ -390,4 +391,19 @@ public class MockServletRequest implements HttpServletRequest {
return null;
}
+ public long getContentLengthLong() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ public String changeSessionId() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public <T extends HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, ServletException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
}
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp/MockServletResponse.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp/MockServletResponse.java
index a31274cd7..9bddaf858 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp/MockServletResponse.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp/MockServletResponse.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2011 IBM Corporation and others.
+ * Copyright (c) 2008, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -222,6 +222,11 @@ public class MockServletResponse implements HttpServletResponse {
// TODO Auto-generated method stub
return null;
}
+
+ public void setContentLengthLong(long len) {
+ // TODO Auto-generated method stub
+
+ }
}

Back to the top