You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by jf...@apache.org on 2003/03/05 03:20:46 UTC
cvs commit: jakarta-servletapi-5/jsr154/src/share/javax/servlet ServletRequest.java ServletRequestWrapper.java
jfarcand 2003/03/04 18:20:46
Modified: jsr154/src/share/javax/servlet ServletRequest.java
ServletRequestWrapper.java
Log:
Servlet 2.4 spec changes:
Adding the following methods in ServletRequest, SRV.14.2.16.1
===================================================
Add the following methods in ServletRequest, SRV.14.2.16.1.
public int getRemotePort()
Returns the Internet Protocol (IP) source port of the client
or last proxy that sent the request.
public java.lang.String getLocalName()
Returns the host name of the Internet Protocol (IP) interface on
which the request was received.
public java.lang.String getLocalAddr()
Returns the Internet Protocol (IP) address of the interface on
which the request was received.
public int getLocalPort()
Returns the Internet Protocol (IP) port number of the interface
on which the request was received.
===================================================
Revision Changes Path
1.2 +26 -0 jakarta-servletapi-5/jsr154/src/share/javax/servlet/ServletRequest.java
Index: ServletRequest.java
===================================================================
RCS file: /home/cvs/jakarta-servletapi-5/jsr154/src/share/javax/servlet/ServletRequest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ServletRequest.java 13 Aug 2002 16:21:43 -0000 1.1
+++ ServletRequest.java 5 Mar 2003 02:20:46 -0000 1.2
@@ -585,5 +585,31 @@
public String getRealPath(String path);
+ /**
+ * Returns the Internet Protocol (IP) source port of the client
+ * or last proxy that sent the request.
+ */
+ public int getRemotePort();
+
+
+ /**
+ * Returns the host name of the Internet Protocol (IP) interface on
+ * which the request was received.
+ */
+ public String getLocalName();
+
+ /**
+ * Returns the Internet Protocol (IP) address of the interface on
+ * which the request was received.
+ */
+ public String getLocalAddr();
+
+
+ /**
+ * Returns the Internet Protocol (IP) port number of the interface
+ * on which the request was received.
+ */
+ public int getLocalPort();
+
}
1.2 +33 -0 jakarta-servletapi-5/jsr154/src/share/javax/servlet/ServletRequestWrapper.java
Index: ServletRequestWrapper.java
===================================================================
RCS file: /home/cvs/jakarta-servletapi-5/jsr154/src/share/javax/servlet/ServletRequestWrapper.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ServletRequestWrapper.java 13 Aug 2002 16:21:43 -0000 1.1
+++ ServletRequestWrapper.java 5 Mar 2003 02:20:46 -0000 1.2
@@ -400,6 +400,39 @@
return this.request.getRealPath(path);
}
+ /**
+ * Returns the Internet Protocol (IP) source port of the client
+ * or last proxy that sent the request.
+ */
+ public int getRemotePort(){
+ return this.request.getRemotePort();
+ }
+
+
+ /**
+ * Returns the host name of the Internet Protocol (IP) interface on
+ * which the request was received.
+ */
+ public String getLocalName(){
+ return this.request.getLocalName();
+ }
+
+ /**
+ * Returns the Internet Protocol (IP) address of the interface on
+ * which the request was received.
+ */
+ public String getLocalAddr(){
+ return this.request.getLocalAddr();
+ }
+
+
+ /**
+ * Returns the Internet Protocol (IP) port number of the interface
+ * on which the request was received.
+ */
+ public int getLocalPort(){
+ return this.request.getLocalPort();
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org