What is the Container implementation for HttpConnector

2002-06-14 Thread Chandra Talluri

Hi,

I am having trouble fading out the Container implementation for
HttpConnector or any connector. Can some one tell me which is the Container
and where the connector.setContainer being called

-Thanks
Chandra


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: What is the Container implementation for HttpConnector

2002-06-14 Thread Christopher K. St. John

Chandra Talluri wrote:
 
 I am having trouble finding out the Container implementation for
 HttpConnector or any connector.


 I'm not sure what you mean. Connector doesn't implement 
Container. Or are you asking something else?


 Can some one tell me which is the Container and where the
 connector.setContainer being called
 

 org.apache.catalina.core.StandardService.setContainer()
calls setContainer() on all its Connector children. 
Grep+xarg is a good combo if you're on Unix, or there
are IDE's that will let you search the code. But that
may just move your question up a level, how does 
StandardService.setContainer() get called, etc, etc.

 It's all driven off conf/server.xml using code based
in org.apache.catalina.startup. The server.xml docs
are a good intro to how it all fits together:

 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html

 In theory, you can set up server.xml with any sort of
Container hierarchy you want. In practice, your object
structure is going to look like the examples in the
config docs.

-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: What is the Container implementation for HttpConnector

2002-06-14 Thread Anand Bashyam Narasimhan

Chadra,

It's in the org.apache.catalina.startup.Catalina class in the
createStartMapper method. The various element types like
Service,Engine,Connector,Valves etc are defined in this method. The various
XML parsing handlers are also called indirectly based on the definitions
here as follows:-

mapper.addRule(Server/Service/Connector, mapper.objectCreate
   (org.apache.catalina.connector.http.HttpConnector,
className));
mapper.addRule(Server/Service/Connector, mapper.setProperties());
mapper.addRule(Server/Service/Connector, mapper.addChild
   (addConnector, org.apache.catalina.Connector));

Line 1. Creates the HttpConnector Instance class. 
Line 2. Set the properties for the connector specified attributes of the
Connector element in the server.xml
Line 3. This is the place that the Connector get's attached to it's parent.
In this case it would be the StandardService. It's in the addConnector of
the Standard Service get's called, whose code looks something like this:-

public void addConnector(Connector connector) {

synchronized (connectors) {
connector.setContainer(this.container);

So I guess u have an answer to where the setContainer is called.

Cheers,

Anand

-Original Message-
From: Chandra Talluri [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 15, 2002 12:10 AM
To: 'Tomcat Developers List'
Subject: What is the Container implementation for HttpConnector


Hi,

I am having trouble fading out the Container implementation for
HttpConnector or any connector. Can some one tell me which is the Container
and where the connector.setContainer being called

-Thanks
Chandra


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]