|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
com.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 requestUrlCompressionContextpublic 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 disabledthispublic UrlCompressionContext unsetUrlCompressionDisabled()
this
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2010, Oracle. All rights reserved.