Solved

HttpServletRequest and .suspend() ?

Posted on 2008-09-29
3
499 Views
Last Modified: 2013-11-24
Hi,

I'm looking to use Jetty and GWT. In the Jetty docs, they have an example of using HttpServletRequest, but call two methods on it that I cannot find in the docs. The usage example is at the bottom of this page:

    http://docs.codehaus.org/display/JETTY/GWT+RPC+Examples

and it is used like:


    HttpServletRequest request = getThreadLocalRequest();
    HttpServletResponse response = getThreadLocalResponse();
    System.err.println("HANDLING: " + request + " | " + request.hashCode() + " | " + response.hashCode());

    if(request.isInitial())
    {
        request.setAttribute("ts", Long.valueOf(System.currentTimeMillis()));
        request.suspend(5000);
        return null;
    }

I can''t find a suspend() or isInitial() method of HttpServletRequest. What am I missing?

I contacted Jetty and am waiting for some info on it, but since HttpServletRequest is a javax class I was hoping someone might have some insight onto what I did wrong here,

Thanks
0
Comment
Question by:DJ_AM_Juicebox
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
cmalakar earned 500 total points
ID: 22598158
suspend() and resume() are the new method that will be part of servlet-3.0 version.

I think.. it's still under development..

Dont know.. why jetty has already giving examples with that..
0
 

Author Comment

by:DJ_AM_Juicebox
ID: 22604604
Ah ok that makes sense.

Who is developing the servlet 3.0 standard, Sun?

When will it be released - does it come part of a new JDK?

Thanks
0
 
LVL 23

Expert Comment

by:cmalakar
ID: 22607140
It will be released as a part of j2ee 6 not jdk.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
topping1 challenge 7 73
Unable to start eclipse ? 17 132
Java / Linux and Regular Expressions 11 71
fibonacci ten numbers 4 28
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now