From dc03a2df7ee5c0e2cca05ae1a194e9839ae91b0a Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Wed, 8 Oct 2014 09:12:05 -0500 Subject: Bug 401784 - Support jetty 9 - updates to help to support servlet 3.1 Change-Id: I6a2f395c43a2e47eaf785e4f198835fd2c78706a Signed-off-by: Thomas Watson --- .../ua/tests/help/webapp/MockServletRequest.java | 18 +++++++++++++++++- .../ua/tests/help/webapp/MockServletResponse.java | 7 ++++++- 2 files changed, 23 insertions(+), 2 deletions(-) (limited to 'org.eclipse.ua.tests/help/org/eclipse/ua') 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 upgrade(Class 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 + + } } -- cgit v1.2.3