tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat/src/examples/WEB-INF/classes RequestInfoExample.java
Date Fri, 07 Dec 2001 05:15:10 GMT
billbarker    01/12/06 21:15:10

  Modified:    src/examples/WEB-INF/classes RequestInfoExample.java
  Log:
  Update to include SSL Information
  
  Submitted by: Eric Rescorla  ekr@rtfm.com
  
  Revision  Changes    Path
  1.2       +14 -2     jakarta-tomcat/src/examples/WEB-INF/classes/RequestInfoExample.java
  
  Index: RequestInfoExample.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/examples/WEB-INF/classes/RequestInfoExample.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RequestInfoExample.java	1999/10/09 00:19:59	1.1
  +++ RequestInfoExample.java	2001/12/07 05:15:10	1.2
  @@ -1,4 +1,4 @@
  -/* $Id: RequestInfoExample.java,v 1.1 1999/10/09 00:19:59 duncan Exp $
  +/* $Id: RequestInfoExample.java,v 1.2 2001/12/07 05:15:10 billbarker Exp $
    *
    */
   
  @@ -69,9 +69,21 @@
           out.println(request.getPathInfo());
           out.println("</td></tr><tr><td>");
           out.println(rb.getString("requestinfo.label.remoteaddr"));
  +        out.println("</td><td>");
  + 	out.println(request.getRemoteAddr());
  + 
  + 	String cipherSuite=
  + 	    (String)request.getAttribute("javax.servlet.request.cipher_suite");
  + 
  + 	if(cipherSuite!=null){
  + 	    out.println("</td></tr><tr><td>");	
  + 	    out.println("SSLCipherSuite info");
  + 	    out.println("</td><td>");
  + 	    out.println(request.getAttribute("javax.servlet.request.cipher_suite"));
  + 	}
           out.println("</td><td>");                
           out.println(request.getRemoteAddr());
  -        out.println("</table>");
  +        out.println("</td></tr></table>");
       }
   
       public void doPost(HttpServletRequest request,
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message