tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Tomcat 7 LifecycleBase.init
Date Mon, 01 Nov 2010 17:24:59 GMT
On 01/11/2010 12:34, dB. wrote:
> Sorry for the noise. 
> 
> Once I got the right source code, it was pretty easy to track under a debugger. I needed
to implement Context.getName(), getPath, an Engine and a Pipeline.
> 
> 		_authenticator = new NegotiateAuthenticator();
> 		SimpleContext ctx = new SimpleContext();
> 		Realm realm = new SimpleRealm();
> 		ctx.setRealm(realm);
> 		SimpleEngine engine = new SimpleEngine();
> 		ctx.setParent(engine);
> 		SimplePipeline pipeline = new SimplePipeline();
> 		engine.setPipeline(pipeline);
> 		ctx.setPipeline(pipeline);
> 		_authenticator.setContainer(ctx);		
> 		_authenticator.start(); 
> 
> It would be nice if Tomcat's code was a bit more defensive in terms of nulls.

Fair point.

http://svn.apache.org/viewvc?rev=1029755&view=rev should help.

Mark




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message