|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.portlet.AsyncContentContext
public final class AsyncContentContext
Allows async content to be disabled for a limited scope.
To use AsyncContentContext
to disable async
content for a limited scope, surround the code for which
async content should be disabled with this code:
try { AsyncContentContext.push(request).setAsyncContentDisabled(true); // ... code to execute with async content disabled ... } finally { AsyncContentContext.pop(request); }
Method Summary | |
---|---|
static boolean |
isAsyncContentDisabled(javax.servlet.ServletRequest request)
Determine if async content is disabled for the given request. |
static void |
pop(javax.servlet.ServletRequest request)
Pop the most recent AsyncContentContext
from the given ServletRequest . |
static AsyncContentContext |
push(javax.servlet.ServletRequest request)
Push a new AsyncContentContext into the given request. |
AsyncContentContext |
setAsyncContentDisabled(boolean asyncContentDisabled)
Change if async content is disabled. |
AsyncContentContext |
unsetAsyncContentDisabled()
Change if async content is disabled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AsyncContentContext push(javax.servlet.ServletRequest request)
AsyncContentContext
into the given request.
request
- the request
AsyncContentContext
public static void pop(javax.servlet.ServletRequest request)
AsyncContentContext
from the given ServletRequest
.
If the most recent AsyncContentContext
is not of the specified type, then an IllegalStateException
is thrown.
request
- the ServletRequest
public static boolean isAsyncContentDisabled(javax.servlet.ServletRequest request)
true
if async content is disabledpublic AsyncContentContext setAsyncContentDisabled(boolean asyncContentDisabled)
asyncContentDisabled
- indicates if async content is disabled
this
public AsyncContentContext unsetAsyncContentDisabled()
this
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |