File mockobjects-0.09-j2ee14-MockHttpServletRequest.patch of Package mockobjects

--- src/j2ee/1.4/com/mockobjects/servlet/MockHttpServletRequest.java.sav	2006-10-05 16:37:24.000000000 +0200
+++ src/j2ee/1.4/com/mockobjects/servlet/MockHttpServletRequest.java	2006-10-05 16:38:30.000000000 +0200
@@ -26,6 +26,7 @@
     private final ReturnValue myContentTypeToReturn = new ReturnValue("content type");
     private final ReturnValue myContextPath = new ReturnValue("context path");
     private final ReturnValue myPathInfo = new ReturnValue("path info");
+    private final ReturnValue myLocalAddress = new ReturnValue("local address");
     private final ReturnValue myRemoteAddress = new ReturnValue("remote address");
     private final ReturnValue myRequestURI = new ReturnValue("request uri");
     private final ReturnValue method = new ReturnValue("method");
@@ -35,6 +36,7 @@
     private final ReturnValue myAttributesNames = new ReturnValue("attribute names");
     private final ReturnValue queryString = new ReturnValue("query string");
     private final ReturnValue scheme = new ReturnValue("scheme");
+    private final ReturnValue localName = new ReturnValue("local name");
     private final ReturnValue serverName = new ReturnValue("server name");
     private final ReturnValue reader = new ReturnValue("reader");
     private final ExpectationSet mySetAttributes = new ExpectationSet("HttpServletRequest.setAttribute");
@@ -402,4 +404,30 @@
     public Map getParameterMap() {
         return (Map) parameterMap.getValue();
     }
+
+    public int getLocalPort() {
+        notImplemented();
+        return 0;
+    }
+
+    public void setupGetLocalAddr(String localAddress) {
+        this.myLocalAddress.setValue(localAddress);
+    }
+
+    public String getLocalAddr() {
+        return (String) myLocalAddress.getValue();
+    }
+
+    public void setupLocalName(String aLocalName) {
+        localName.setValue(aLocalName);
+    }
+
+    public String getLocalName() {
+        return (String) localName.getValue();
+    }
+
+    public int getRemotePort() {
+        notImplemented();
+        return 0;
+    }
 }