MockPortletRequest.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:spring4-understanding 作者:
/**
 * Create a new MockPortletRequest.
 *
 * @param portalContext the PortalContext that the request runs in
 * @param portletContext the PortletContext that the request runs in
 */
public MockPortletRequest(PortalContext portalContext, PortletContext portletContext) {
    this.portalContext = (portalContext != null ? portalContext : new MockPortalContext());
    this.portletContext = (portletContext != null ? portletContext : new MockPortletContext());
    this.responseContentTypes.add("text/html");
    this.locales.add(Locale.ENGLISH);
    this.attributes.put(LIFECYCLE_PHASE, getLifecyclePhase());
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号