|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.request.RequestParameters
public class RequestParameters
Object that abstracts common request parameters. It consists of possible optional parameters that
can be translated from e.g. servlet request parameters and serves as a strongly typed variant of
these that is to be created by the IRequestCycleProcessor
's
IRequestCodingStrategy
.
Though this object can be extended and hence more parameter options can be used, anything other
than in this implementation must be supported by specific
IRequestCycleProcessor
implementations and thus are not
supported by default implementations.
Constructor Summary | |
---|---|
RequestParameters()
Construct. |
Method Summary | |
---|---|
String |
getBehaviorId()
Gets the component registration id of any behavior. |
String |
getBookmarkablePageClass()
Gets any bookmarkable page class. |
String |
getComponentId()
Gets any id of a non-page target component. |
String |
getComponentPath()
Gets the full path to a component (might be just the page).. |
RequestListenerInterface |
getInterface()
|
String |
getInterfaceName()
Gets any callable interface name (e.g. |
String |
getPageMapName()
Gets any name of the page map. |
Map<String,?> |
getParameters()
Gets free-to-use map of non-reserved parameters. |
String |
getPath()
Gets path info. |
String |
getQueryString()
|
String |
getResourceKey()
Gets any resource key. |
int |
getUrlDepth()
Gets the depth for relative URLs. |
int |
getVersionNumber()
Gets any version information string. |
boolean |
isOnlyProcessIfPathActive()
Tells wicket whether this request should only be processed if the page + version specified are pointing to the last page the user accessed. |
boolean |
isStateless()
|
void |
setBehaviorId(String behaviorId)
Sets the component registration id of any behavior. |
void |
setBookmarkablePageClass(String bookmarkablePageClass)
Sets any bookmarkable page class. |
void |
setComponentId(String componentId)
Sets any id of a non-page target component. |
void |
setComponentPath(String componentPath)
Sets the full path to a component (might be just the page).. |
void |
setInterfaceName(String interfaceName)
Sets any callable interface name (e.g. |
void |
setOnlyProcessIfPathActive(boolean onlyProcessIfPathActive)
Sets the only-process-if-path-active flag |
void |
setPageMapName(String pageMapName)
Sets any name of the page map. |
void |
setParameters(Map<String,?> parameters)
Sets free-to-use map of non-reserved parameters. |
void |
setPath(String pathInfo)
Sets path info. |
void |
setQueryString(String queryString)
|
void |
setResourceKey(String resourceKey)
Sets any resource key. |
void |
setStateless(boolean stateless)
Sets whether or not this request can be processed without a session present. |
void |
setUrlDepth(int urlDepth)
Sets the depth for relative URLs. |
void |
setVersionNumber(int versionNumber)
Sets any version information string. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RequestParameters()
Method Detail |
---|
public String getBehaviorId()
public String getBookmarkablePageClass()
public String getComponentId()
public String getComponentPath()
public RequestListenerInterface getInterface()
public String getInterfaceName()
ILinkListener
).
ILinkListener
)public String getPageMapName()
public Map<String,?> getParameters()
public String getPath()
public String getResourceKey()
public int getVersionNumber()
public boolean isOnlyProcessIfPathActive()
WebRequestCodingStrategy.IGNORE_IF_NOT_ACTIVE_PARAMETER_NAME
public void setBehaviorId(String behaviorId)
behaviorId
- the idpublic void setBookmarkablePageClass(String bookmarkablePageClass)
bookmarkablePageClass
- any bookmarkable page classpublic void setComponentId(String componentId)
componentId
- any id of a non-page target componentpublic void setComponentPath(String componentPath)
componentPath
- the full path to a component (might be just the page).public void setInterfaceName(String interfaceName)
ILinkListener
).
interfaceName
- any callable interface name (e.g. ILinkListener
)public void setOnlyProcessIfPathActive(boolean onlyProcessIfPathActive)
onlyProcessIfPathActive
- isOnlyProcessIfPathActive()
public void setPageMapName(String pageMapName)
pageMapName
- any name of the page mappublic void setParameters(Map<String,?> parameters)
parameters
- free-to-use map of non-reserved parameterspublic void setPath(String pathInfo)
pathInfo
- path infopublic void setResourceKey(String resourceKey)
resourceKey
- any resource keypublic void setVersionNumber(int versionNumber)
versionNumber
- any version information stringpublic int getUrlDepth()
public void setUrlDepth(int urlDepth)
urlDepth
- Number of slashes deep the page is that an AJAX request is made from.public boolean isStateless()
setStateless(boolean)
public void setStateless(boolean stateless)
stateless
- public String toString()
toString
in class Object
Object.toString()
public String getQueryString()
public void setQueryString(String queryString)
queryString
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |