This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

code change for apache tomcat  RSS feed

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Marshal
Posts: 67192
169
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would you want to do that?
 
gaurav galib
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 21553
100
Chrome Eclipse IDE Java Spring Ubuntu VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't you just use a Filter?
 
gaurav galib
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 20107
101
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
gaurav galib
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/
 
Happily living in the valley of the dried frogs with a few tiny ads.
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!