cvs commit: jakarta-servletapi-5/jsr154/src/share/javax/servlet ServletRequest.java

2003-10-01 Thread jfarcand
jfarcand2003/10/01 06:42:55

  Modified:jsr154/src/share/javax/servlet ServletRequest.java
  Log:
  Fix the confusing description in getServerName() and getServerPort() - change "host 
header" to "host header value".
  
  Submitted by: Yutaka Yoshida
  
  Revision  ChangesPath
  1.9   +2 -2  
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.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ServletRequest.java   30 Sep 2003 19:49:00 -  1.8
  +++ ServletRequest.java   1 Oct 2003 13:42:55 -   1.9
  @@ -351,7 +351,7 @@
   /**
* Returns the host name of the server to which the request was sent.
* It is the value of the part before ":" in the Host
  - * header, if any, or the resolved server name, or the server IP address.
  + * header value, if any, or the resolved server name, or the server IP address.
*
* @return   a String containing the name 
*   of the server
  @@ -365,7 +365,7 @@
   /**
* Returns the port number to which the request was sent.
* It is the value of the part after ":" in the Host
  - * header, if any, or the server port where the client connection
  + * header value, if any, or the server port where the client connection
* was accepted on.
*
* @return   an integer specifying the port number
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: jakarta-servletapi-5/jsr154/src/share/javax/servlet ServletRequest.java ServletRequestWrapper.java

2003-03-04 Thread jfarcand
jfarcand2003/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  ChangesPath
  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 -  1.1
  +++ ServletRequest.java   5 Mar 2003 02:20:46 -   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.java13 Aug 2002 16:21:43 -  1.1
  +++ ServletRequestWrapper.java5 Mar 2003 02:20:46 -   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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]