Solved

HttpServletRequest and .suspend() ?

Posted on 2008-09-29
3
514 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java exception bubble up 2 26
Java Restore security prompts not working 10 261
Java: anonymous class 4 54
Java array 10 87
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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…
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…
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…
Suggested Courses

739 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