当前位置: 首页>>代码示例>>Java>>正文


Java RequestParameters类代码示例

本文整理汇总了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); 
}
 
开发者ID:ontopia,项目名称:ontopia,代码行数:15,代码来源:OccurrenceImageRequestTargetUrlCodingStrategy.java

示例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);
}
 
开发者ID:warpfork,项目名称:gitblit,代码行数:19,代码来源:GitblitParamUrlCodingStrategy.java

示例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);
        }
    }
}
 
开发者ID:BassJel,项目名称:Jouve-Project,代码行数:40,代码来源:NonAjaxModalWindow.java

示例4: decode

import org.apache.wicket.request.RequestParameters; //导入依赖的package包/类
@Override
public RequestParameters decode(Request request) {
  return defaultStrategy.decode(request);
}
 
开发者ID:ontopia,项目名称:ontopia,代码行数:5,代码来源:AbsoluteUrlRequestCodingStrategy.java

示例5: targetForRequest

import org.apache.wicket.request.RequestParameters; //导入依赖的package包/类
@Override
public IRequestTarget targetForRequest(RequestParameters requestParameters) {
  return defaultStrategy.targetForRequest(requestParameters);
}
 
开发者ID:ontopia,项目名称:ontopia,代码行数:5,代码来源:AbsoluteUrlRequestCodingStrategy.java


注:本文中的org.apache.wicket.request.RequestParameters类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。