aspose file tools*
The moose likes Tomcat and the fly likes code change for apache tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "code change for apache tomcat" Watch "code change for apache tomcat" New topic
Author

code change for apache tomcat

gaurav galib
Greenhorn

Joined: Aug 29, 2012
Posts: 7
hi guys, can you please help me to figure out that if i have to make changes in tomcat source code ,where actually this source code is present in apache tomcat.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61420
    
  67

Why would you want to do that?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
gaurav galib
Greenhorn

Joined: Aug 29, 2012
Posts: 7
hi Bibeault
actually i want to intercept the incoming Http request packet.My goal is to implement reverseHTTP ,so when ever i get a http request on tomcat form client (call it xyz web server which is customized to make http request) i want to read its header and if in its header something like "PTTH" (reverseHTTP) is found then tomcat will generates a http request to the client (xyz web server)...thanks for reply
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19719
    
  20

Can't you just use a Filter?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
gaurav galib
Greenhorn

Joined: Aug 29, 2012
Posts: 7
hi, guys i have got some idea ,,,i am working on it...if some positive result comes ,i will let you know...thanks for reply
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16142
    
  21

Rob Spoor wrote:Can't you just use a Filter?


Actually, sounds like a Valve, if it's not application-specific. But I've got to admit that messing around with protocol structures sounds like an over-complicated solution. If the client knows enough about this customized Tomcat to formulate a callback request, it should also be capable for sending normal app requests to do the same thing.


Customer surveys are for companies who didn't pay proper attention to begin with.
gaurav galib
Greenhorn

Joined: Aug 29, 2012
Posts: 7
Ya tim correct but in general scenario server always give http respose to client not http request ....not all way server will expose underlying socket , so that instead of sending a respose message server let you send a request message to the client ,,,read this http://reversehttp.net/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: code change for apache tomcat