Solved

HttpServletRequest and .suspend() ?

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
eclipse package explorer vs project explorer view 2 134
ArrayIndexOutOfBoundException 9 83
rhino JavaScript import, load 25 84
Java: The Public Class Main 4 17
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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…
The viewer will learn how to implement Singleton Design Pattern in Java.

803 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