Solved

HttpServletRequest and .suspend() ?

Posted on 2008-09-29
3
491 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
powerN  challenge 3 47
changePi Challenge 15 76
mapBully challenge 6 89
Unable to start eclipse ? 17 84
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
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 will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

705 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

18 Experts available now in Live!

Get 1:1 Help Now