Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Get Request Instance ID and Request Start Time from HTTP Request

 
Natalie Kopple
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I receive a HTTP Request from web, how do I get the "request instance ID" and "requst start time" from this HTTP request? (Note: I import org.apache.http.HttpRequest;)

Thank you for your help.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
org.apache.http.HttpRequest is not part of the Servlet API. What are your intentions in using it?

If your intention is to handle the request in a servlet, then the correct interface is javax.servlet.http.HttpServletRequest.

And neither "instance id" nor "start time" are supported properties.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic