本文整理汇总了Java中org.apache.wicket.request.RequestParameters类的典型用法代码示例。如果您正苦于以下问题:Java RequestParameters类的具体用法?Java RequestParameters怎么用?Java RequestParameters使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RequestParameters类属于org.apache.wicket.request包,在下文中一共展示了RequestParameters类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: decode
import org.apache.wicket.request.RequestParameters; //导入依赖的package包/类
@Override
public IRequestTarget decode(RequestParameters requestParameters) {
//String name = requestParameters.getPath().substring(getMountPath().length());
Map<String,?> params = requestParameters.getParameters();
String topicMapId = ((String[])params.get("topicMapId"))[0];
TopicMap topicMap = OntopolyContext.getTopicMap(topicMapId);
String occurrenceId = ((String[])params.get("occurrenceId"))[0];
OccurrenceIF occ = (OccurrenceIF) topicMap.getTopicMapIF().getObjectById(occurrenceId);
return new OccurrenceResourceStreamRequestTarget(OccurrenceWebResource.getResourceStream(occ), topicMapId, occurrenceId);
}
示例2: decode
import org.apache.wicket.request.RequestParameters; //导入依赖的package包/类
/**
* Gets the decoded request target.
*
* @param requestParameters
* the request parameters
* @return the decoded request target
*/
@Override
public IRequestTarget decode(RequestParameters requestParameters) {
final String parametersFragment = requestParameters.getPath().substring(
getMountPath().length());
logger.debug(MessageFormat
.format("REQ: {0} PARAMS {1}", getMountPath(), parametersFragment));
final PageParameters parameters = new PageParameters(decodeParameters(parametersFragment,
requestParameters.getParameters()));
return super.decode(requestParameters);
}
示例3: createPage
import org.apache.wicket.request.RequestParameters; //导入依赖的package包/类
/**
* Creates the page.
*
* @return Page instance or null if page couldn't be created.
*/
private Page createPage()
{
if (pageCreator == null)
{
return null;
}
else
{
RequestParameters parameters = RequestCycle.get().getRequest().getRequestParameters();
String oldPageMapName = parameters.getPageMapName();
// if there is a pagemap name specified and multiwindow support is
// on
if (getPageMapName() != null)
{
// try to find out whether the pagemap already exists
Session session = Session.get();
if (session.pageMapForName(getPageMapName(), false) == null)
{
deletePageMap = true;
}
parameters.setPageMapName(getPageMapName());
}
try
{
Page page = pageCreator.createPage();
return page;
}
finally
{
parameters.setPageMapName(oldPageMapName);
}
}
}
示例4: decode
import org.apache.wicket.request.RequestParameters; //导入依赖的package包/类
@Override
public RequestParameters decode(Request request) {
return defaultStrategy.decode(request);
}
示例5: targetForRequest
import org.apache.wicket.request.RequestParameters; //导入依赖的package包/类
@Override
public IRequestTarget targetForRequest(RequestParameters requestParameters) {
return defaultStrategy.targetForRequest(requestParameters);
}