You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ia...@apache.org on 2004/05/11 09:34:05 UTC

cvs commit: ws-axis/java/src/org/apache/axis/transport/http ServletEndpointContextImpl.java

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() {