You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by N V Hari Krishna <ha...@gmail.com> on 2012/05/28 15:07:14 UTC

A small question regarding connector.Request.getCoyoteRequest method

Hello all,

I had few questions regarding
org.apache.connector.Request.getCoyoteRequest() method.

My questions are:

Request.getCoyoteRequest() method's corresponding response method
org.apache.catalina.connector.Response.getCoyoteResponse method
is deprecated. I believe the intention behind that is to hide the coyote
response object out of Tomcat. Is it correct?

If yes, but the Request.getCoyoteRequest() method is not deprecated. Does
the coyote.Request class is allowed out of Tomcat (i.e. in my valve)? Is it
intended for external use? Can I use coyote.Request object directly in my
valve?

In other words: Why Response.getCoyoteResponse() method is deprecated and
Request.getCoyoteRequest() is not deprecated?

Thanks
Hari

Re: A small question regarding connector.Request.getCoyoteRequest method

Posted by Mark Thomas <ma...@apache.org>.
On 28/05/2012 14:07, N V Hari Krishna wrote:
> Hello all,
> 
> I had few questions regarding
> org.apache.connector.Request.getCoyoteRequest() method.
> 
> My questions are:
> 
> Request.getCoyoteRequest() method's corresponding response method
> org.apache.catalina.connector.Response.getCoyoteResponse method
> is deprecated. I believe the intention behind that is to hide the coyote
> response object out of Tomcat. Is it correct?

No.

> If yes, but the Request.getCoyoteRequest() method is not deprecated. Does
> the coyote.Request class is allowed out of Tomcat (i.e. in my valve)? Is it
> intended for external use? Can I use coyote.Request object directly in my
> valve?

Not applicable. Premise of the questions is incorrect (see above).

> In other words: Why Response.getCoyoteResponse() method is deprecated and
> Request.getCoyoteRequest() is not deprecated?

The answer may be found in the svn logs. Look in tomact/tc7.0.x/trunk to
see why the method was deprecated.

Follow-up questions belong on the users mailing list.

Mark

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