Hey Bill,
Thanks alot for this help of yours.

I will get back to you if I face problems in it.  :)

Viraj K. Turakhia

On 8/29/06, Bill Barker <[EMAIL PROTECTED]> wrote:

"Viraj Turakhia" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
> I am starting to work with Tomcat's code and have no clue where to start
> from.
> Any pointers would be very very helpful.

Well, one method is to implement your own ProtocolHandler (

http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/coyote/ProtocolHandler.html
).
This is responsible for setting up the Request and Response objects,
threading, and handling sending and receiving data on the protocol.  It
then
hands off the Request and Response to the service method of the Adapter
(
http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/coyote/Adapter.html
)
that Tomcat passed to it.  The MemoryProtocolHandler
(
http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/coyote/memory/MemoryProtocolHandler.html
)
is the easiest if you want an example.  You'll probably also want to
implement ActionHook
(
http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/coyote/ActionHook.html
)
for best results.  You tell Tomcat to use yours via:
  <Connector protocol="com.myfirm.mypackage.MyProtocolHandler" .... />

>
> To start with, I would like to know whether Tomcat is configurable to
work
> with protocols other than http/https?

Well, it comes with AJP/1.3 support ;-).  However, the servlet container
neutral to the protocol (that's the job of the ProtocolHandler :).

> I want to configure Tomcat in such a way that it gives me RAW data that
is
> posted on given port.
> Please let me know which server element is to be configured (and where..
> server.xml?) such that forming request/response from RAW data is
possible
> for me.
> This RAW data is not necessarily a http/https specific data. It could be
> specific to any other protocol like ftp://.
>
> Waiting for reply, thanks.
>
> --
> The first right of human is the right of EGO.
> --
> http://www.xperienceexperience.blogspot.com
>




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
The first right of human is the right of EGO.
--
http://www.xperienceexperience.blogspot.com

Reply via email to