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

is there error in servlet 3.0 specification ?

 
gurpeet singh
Ranch Hand
Posts: 924
1
Fedora Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please have a look at page 12 where the specification talks about asynchronous servlet processing. following is a quote from the specs

public AsyncContext startAsync(ServletRequest req,
ServletResponse res). This method puts the request into asynchronous
mode and initializes it’s AsyncContext with the given request and response
objects and the time out returned by getAsyncTimeout


i have checked the api docs for AsyncContext and there is no method like getAsyncTimeout instead there is getTimeout. also i'm using latest maintainence release of the specifications. please confirm ?

Regards
Gurpreet
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2418
95
Android Chrome Eclipse IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that is indeed a mistake it should have been getTimeout()

Regards,
Frits
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic