File jakarta-commons-fileupload-1.1.1-servletapi5.patch of Package jakarta-commons-fileupload.28093
--- src/test/org/apache/commons/fileupload/MockHttpServletRequest.java.orig 2007-01-10 13:43:37.000000000 -0500
+++ src/test/org/apache/commons/fileupload/MockHttpServletRequest.java 2007-01-10 13:47:42.000000000 -0500
@@ -381,6 +381,14 @@
}
/**
+ * @see javax.servlet.ServletRequest#getLocalName()
+ */
+ public String getLocalName()
+ {
+ return null;
+ }
+
+ /**
* @see javax.servlet.ServletRequest#getServerPort()
*/
public int getServerPort()
@@ -389,6 +397,22 @@
}
/**
+ * @see javax.servlet.ServletRequest#getRemotePort()
+ */
+ public int getRemotePort()
+ {
+ return 0;
+ }
+
+ /**
+ * @see javax.servlet.ServletRequest#getLocalPort()
+ */
+ public int getLocalPort()
+ {
+ return 0;
+ }
+
+ /**
* @see javax.servlet.ServletRequest#getReader()
*/
public BufferedReader getReader() throws IOException
@@ -397,6 +421,14 @@
}
/**
+ * @see javax.servlet.ServletRequest#getLocalAddr()
+ */
+ public String getLocalAddr()
+ {
+ return null;
+ }
+
+ /**
* @see javax.servlet.ServletRequest#getRemoteAddr()
*/
public String getRemoteAddr()