axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/transport/http ServletEndpointContextImpl.java
Date Tue, 11 May 2004 07:34:05 GMT
ias         2004/05/11 00:34:05

  Modified:    java/src/org/apache/axis/transport/http
                        ServletEndpointContextImpl.java
  Log:
  Implements isUserInRole.
  
  Revision  Changes    Path
  1.9       +4 -3      ws-axis/java/src/org/apache/axis/transport/http/ServletEndpointContextImpl.java
  
  Index: ServletEndpointContextImpl.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/transport/http/ServletEndpointContextImpl.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ServletEndpointContextImpl.java	25 Mar 2004 19:30:17 -0000	1.8
  +++ ServletEndpointContextImpl.java	11 May 2004 07:34:05 -0000	1.9
  @@ -41,9 +41,10 @@
           return (srv == null) ? null : srv.getServletContext();
       }
   
  -    public boolean isUserInRole(String s) {
  -        // TODO: Not yet implemented
  -        return false;  
  +    public boolean isUserInRole(String role) {
  +        HttpServletRequest srvreq = (HttpServletRequest)
  +                getMessageContext().getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
  +        return (srvreq == null) ? false : srvreq.isUserInRole(role);
       }
   
       public Principal getUserPrincipal() {
  
  
  

Mime
View raw message