|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.xsp.context.RequestParameters
public class RequestParameters
Request parameter. This class allows request based customization.
Nested Class Summary | |
---|---|
static interface |
RequestParameters.ResourceProvider
Gives the opportunity to add dynamic resources to the page. |
static interface |
RequestParameters.ResponseCacheHeader
Set the cache strategy for the page. |
static interface |
RequestParameters.RunningContextProvider
Check if the request is running in a particular context. |
static interface |
RequestParameters.UrlProcessor
Process the URL when running in a particular context. |
Field Summary | |
---|---|
static int |
DOJOLOADER_AMD
|
static int |
DOJOLOADER_LAZY
|
static int |
DOJOLOADER_LEGACY
|
static int |
JS_DOJO
|
static int |
JS_LITE
|
static int |
JS_NONE
|
Constructor Summary | |
---|---|
RequestParameters(FacesContextEx context)
|
Method Summary | |
---|---|
java.lang.String |
getCompressMode()
|
java.lang.String |
getDebugAgent()
|
DojoLibrary |
getDojoLibrary()
|
int |
getDojoLoader()
|
int |
getJsLibrary()
|
java.lang.String |
getLibraryPath()
Deprecated. |
java.lang.String |
getLibraryVersion()
|
java.lang.String |
getProperty(java.lang.String key)
|
java.lang.String |
getRenderKitId()
|
java.util.List<RequestParameters.ResourceProvider> |
getResourcesProviders()
|
RequestParameters.ResponseCacheHeader |
getResponseCacheHeader()
|
java.util.List<RequestParameters.RunningContextProvider> |
getRunningContextProviders()
|
java.lang.String |
getStyleKitId()
|
RequestParameters.UrlProcessor |
getUrlProcessor()
|
boolean |
isClientSideValidation()
|
boolean |
isDojoHTML5Attr()
|
boolean |
isReadonlyRenderer()
|
boolean |
isRedirect()
|
boolean |
isUncompressedResources()
|
static java.lang.String |
readLibraryPath(ApplicationEx app)
Deprecated. returns "", no longer supported since 8.5.3. |
static java.lang.String |
readLibraryVersion(ApplicationEx app)
|
void |
removeProperty(java.lang.String key,
java.lang.String value)
Wrong method name or impl. |
void |
setClientSideValidation(boolean clientSideValidation)
Set if the request is a client side validation |
void |
setCompressMode(java.lang.String compressMode)
Set the value of the Compression Mode |
void |
setDebugAgent(java.lang.String debugAgent)
|
void |
setDojoLibrary(DojoLibrary dojoLibrary)
|
void |
setJsLibrary(int jsLibrary)
|
void |
setLibraryPath(java.lang.String libraryPath)
Deprecated. |
void |
setLibraryVersion(java.lang.String libraryVersion)
|
void |
setProperty(java.lang.String key,
java.lang.String value)
Set the value of the key property to value |
void |
setReadonlyRenderer(boolean readonlyRenderer)
Set if the request is a client side validation |
void |
setRedirect(boolean redirect)
Set this is a redirect |
void |
setRenderKitId(java.lang.String renderKitId)
Set the value of the Render Kit Id |
void |
setResourcesProvider(RequestParameters.ResourceProvider resourcesProvider)
Add a new ResourceProvider |
void |
setResponseCacheHeader(RequestParameters.ResponseCacheHeader responseCacheHeader)
Set the ResponseCacheHeader |
void |
setRunningContextProvider(RequestParameters.RunningContextProvider runningContextProvider)
Add a new RunningCOntextProvider |
void |
setStyleKitId(java.lang.String styleKitId)
set the value of the Style Kit Id |
void |
setUrlProcessor(RequestParameters.UrlProcessor urlProcessor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int JS_NONE
public static final int JS_DOJO
public static final int JS_LITE
public static final int DOJOLOADER_LEGACY
public static final int DOJOLOADER_LAZY
public static final int DOJOLOADER_AMD
Constructor Detail |
---|
public RequestParameters(FacesContextEx context)
Method Detail |
---|
public boolean isUncompressedResources()
public boolean isDojoHTML5Attr()
public int getDojoLoader()
public static java.lang.String readLibraryVersion(ApplicationEx app)
app
-
xsp.client.script.dojo.version
property.
Default return value is UNKNOWN_DOJO_VERSION
if no dojo directory exists.public static java.lang.String readLibraryPath(ApplicationEx app)
app
-
xsp.client.script.dojo.path
property
from xsp.properties
. If not present, compute value based on dojo
install directories. Returns /domjs/dojo-1.3.1/
if not dojo directories exits.public java.lang.String getProperty(java.lang.String key)
key
-
public void setProperty(java.lang.String key, java.lang.String value)
key
property to value
key
- value
- public void removeProperty(java.lang.String key, java.lang.String value)
key
property with value
key
- value
- public int getJsLibrary()
S_NONE
, JS_DOJO
or JS_LITE
public void setJsLibrary(int jsLibrary)
jsLibrary
- Set the value of the JavaScript Librarypublic boolean isClientSideValidation()
xsp.client.validation
FacesContext propertypublic void setClientSideValidation(boolean clientSideValidation)
clientSideValidation
- public boolean isReadonlyRenderer()
xsp.client.validation
FacesContext propertypublic void setReadonlyRenderer(boolean readonlyRenderer)
clientSideValidation
- public boolean isRedirect()
public void setRedirect(boolean redirect)
redirect
- public java.lang.String getCompressMode()
public void setCompressMode(java.lang.String compressMode)
compressMode
- public void setDebugAgent(java.lang.String debugAgent)
public java.lang.String getDebugAgent()
public java.lang.String getRenderKitId()
public void setRenderKitId(java.lang.String renderKitId)
renderKitId
- public java.lang.String getStyleKitId()
public void setStyleKitId(java.lang.String styleKitId)
styleKitId
- public java.util.List<RequestParameters.RunningContextProvider> getRunningContextProviders()
public void setRunningContextProvider(RequestParameters.RunningContextProvider runningContextProvider)
runningContextProvider
- public RequestParameters.UrlProcessor getUrlProcessor()
public void setUrlProcessor(RequestParameters.UrlProcessor urlProcessor)
urlProcessor
- public RequestParameters.ResponseCacheHeader getResponseCacheHeader()
ResponseCacheHeader
public void setResponseCacheHeader(RequestParameters.ResponseCacheHeader responseCacheHeader)
ResponseCacheHeader
responseCacheHeader
- public java.util.List<RequestParameters.ResourceProvider> getResourcesProviders()
ResourceProvider
spublic void setResourcesProvider(RequestParameters.ResourceProvider resourcesProvider)
resourcesProvider
- public java.lang.String getLibraryPath()
public void setLibraryPath(java.lang.String libraryPath)
libraryPath
- the libraryPath to setpublic java.lang.String getLibraryVersion()
public void setLibraryVersion(java.lang.String libraryVersion)
libraryVersion
- the libraryVersion to setpublic DojoLibrary getDojoLibrary()
public void setDojoLibrary(DojoLibrary dojoLibrary)
dojoLibrary
- the dojo library to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |