mx4j/src/tools/mx4j/tools/remote/http HTTPSubjectInvoker.java,1.1,1.2

Simone Bordet <[email protected]>
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/remote/http
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7716/src/tools/mx4j/tools/remote/http

Modified Files:
	HTTPSubjectInvoker.java 
Log Message:
Passing the environment to the subject invoker, so that it can configure itself

Index: HTTPSubjectInvoker.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/remote/http/HTTPSubjectInvoker.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** HTTPSubjectInvoker.java	10 Aug 2004 08:42:10 -0000	1.1
--- HTTPSubjectInvoker.java	27 Aug 2004 22:04:27 -0000	1.2
***************
*** 12,15 ****
--- 12,16 ----
  import java.lang.reflect.Proxy;
  import java.security.AccessControlContext;
+ import java.util.Map;
  import javax.security.auth.Subject;
  
***************
*** 22,34 ****
  public class HTTPSubjectInvoker extends SubjectInvoker
  {
!    public static HTTPConnection newInstance(HTTPConnection target, Subject subject, AccessControlContext context)
     {
!       HTTPSubjectInvoker handler = new HTTPSubjectInvoker(target, subject, context);
        return (HTTPConnection)Proxy.newProxyInstance(target.getClass().getClassLoader(), new Class[]{HTTPConnection.class}, handler);
     }
  
!    private HTTPSubjectInvoker(HTTPConnection target, Subject subject, AccessControlContext context)
     {
!       super(target, subject, context);
     }
  
--- 23,35 ----
  public class HTTPSubjectInvoker extends SubjectInvoker
  {
!    public static HTTPConnection newInstance(HTTPConnection target, Subject subject, AccessControlContext context, Map environment)
     {
!       HTTPSubjectInvoker handler = new HTTPSubjectInvoker(target, subject, context, environment);
        return (HTTPConnection)Proxy.newProxyInstance(target.getClass().getClassLoader(), new Class[]{HTTPConnection.class}, handler);
     }
  
!    private HTTPSubjectInvoker(HTTPConnection target, Subject subject, AccessControlContext context, Map environment)
     {
!       super(target, subject, context, environment);
     }
  



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.