| 
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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
AsyncContentContextpublic 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 ServletRequestpublic static boolean isAsyncContentDisabled(javax.servlet.ServletRequest request)
true if async content is disabledpublic AsyncContentContext setAsyncContentDisabled(boolean asyncContentDisabled)
asyncContentDisabled - indicates if async content is disabled
thispublic AsyncContentContext unsetAsyncContentDisabled()
this
  | 
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||