| 
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bea.portlet.UrlCompressionContext
public final class UrlCompressionContext
Allows URL compression to be disabled for a limited scope.
 To use UrlCompressionContext to disable URL compression
 for a limited scope, surround the code for which
 URL compression should be disabled with this code:
 
 
    try {
       UrlCompressionContext.push(request).setUrlCompressionDisabled(true);
       
          // ... code to execute with URL compression disabled
           
    }
    finally {
       UrlCompressionContext.pop(request);
    }
 
| Method Summary | |
|---|---|
static boolean | 
isUrlCompressionDisabled(javax.servlet.ServletRequest request)
Determine if URL compression is disabled for the given request.  | 
static void | 
pop(javax.servlet.ServletRequest request)
Pop the most recent UrlCompressionContext
 from the given ServletRequest. | 
static UrlCompressionContext | 
push(javax.servlet.ServletRequest request)
Push a new UrlCompressionContext into the given request. | 
 UrlCompressionContext | 
setUrlCompressionDisabled(boolean urlCompressionDisabled)
Change if URL compression is disabled.  | 
 UrlCompressionContext | 
unsetUrlCompressionDisabled()
Change if URL compression is disabled.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static UrlCompressionContext push(javax.servlet.ServletRequest request)
UrlCompressionContext into the given request.
request - the request
UrlCompressionContextpublic static void pop(javax.servlet.ServletRequest request)
UrlCompressionContext
 from the given ServletRequest.
 
 
 If the most recent UrlCompressionContext
 is not of the specified type, then an IllegalStateException
 is thrown.
request - the ServletRequestpublic static boolean isUrlCompressionDisabled(javax.servlet.ServletRequest request)
true if URL compression is disabledpublic UrlCompressionContext setUrlCompressionDisabled(boolean urlCompressionDisabled)
urlCompressionDisabled - indicates if URL compression is disabled
thispublic UrlCompressionContext unsetUrlCompressionDisabled()
urlCompressionDisabled - indicates if URL compression is disabled
this
  | 
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||