java类javax.portlet.filter.FilterConfig的实例源码

OAuthPortletFilter.java 文件源码 项目:docs-samples 阅读 15 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {
    this.filterConfig = filterConfig;

    String accessTokenValidation = filterConfig.getInitParameter(INIT_PARAM_ACCESS_TOKEN_VALIDATION);
    if (AccessTokenValidation.ALWAYS.name().equals(accessTokenValidation)) {
        this.accessTokenValidation = AccessTokenValidation.ALWAYS;
    } else if (AccessTokenValidation.SKIP.name().equals(accessTokenValidation)) {
        this.accessTokenValidation = AccessTokenValidation.SKIP;
    } else {
        // SESSION is default validation type
        this.accessTokenValidation = AccessTokenValidation.SESSION;
    }

    this.oauthProviderKey = filterConfig.getInitParameter(INIT_PARAM_OAUTH_PROVIDER_KEY);
    if (oauthProviderKey == null) {
        throw new PortletException("Init parameter '" + INIT_PARAM_OAUTH_PROVIDER_KEY + "' needs to be provided");
    }
}
BaseFilter.java 文件源码 项目:portals-pluto 阅读 22 收藏 0 点赞 0 评论 0
/**
 * Stores the FilterConfig instance to be retrieved with getFilterConfig()
 */
public void init(FilterConfig filterConfig) throws PortletException {
    LOG.debug("Initializing " + filterConfig.getFilterName() 
            + "(" + getClass() + ")");
    this.filterConfig = filterConfig;
    this.init();
}
AddlFilterTests_SPEC2_20_FilterMultiple.java 文件源码 项目:portals-pluto 阅读 13 收藏 0 点赞 0 评论 0
public void init(FilterConfig config) throws PortletException {
  String portletNameAction =
      (String) config.getPortletContext().getAttribute("PortletNameAction");
  String filterName = config.getFilterName();

  /* TestCase: V2AddlFilterTests_SPEC2_20_Action_filter10 */
  /* Details: "For multiple filter declarations for a single filter */
  /* class, the filter instance must receive all initialization */
  /* parameters defined in the filter declaration" */
  if (portletNameAction != null && portletNameAction.equals("AddlFilterTests_SPEC2_20_Action")
      && filterName.equals("AddlFilterTests_SPEC2_20_Filter1a")) {
    Enumeration<String> initParams = config.getInitParameterNames();
    if (initParams.nextElement().equals("tr4") && initParams.nextElement().equals("tr5")) {
      AddlFilterTests_SPEC2_20_ActionFilter_TestVariables.actionTr5b_success = true;
      AddlFilterTests_SPEC2_20_ActionFilter_TestVariables.actionTr6b_success = true;
    } else {
      AddlFilterTests_SPEC2_20_ActionFilter_TestVariables.actionTr5b_success = false;
      AddlFilterTests_SPEC2_20_ActionFilter_TestVariables.actionTr6b_success = false;
    }
  }

  /* TestCase: V2AddlFilterTests_SPEC2_20_Action_filter15 */
  /* Details: "The order the container uses in building the chain of */
  /* filters to be applied for a particular request is the order in */
  /* which the &lt;portlet-name&gt; matching filter mappings appear in */
  /* the deployment descriptor" */
  if (portletNameAction != null && portletNameAction.equals("AddlFilterTests_SPEC2_20_Action")
      && filterName.equals("AddlFilterTests_SPEC2_20_Filter1a")
      && AddlFilterTests_SPEC2_20_ActionFilter_TestVariables.actionTr10a_success) {
    AddlFilterTests_SPEC2_20_ActionFilter_TestVariables.actionTr10b_success = true;
  }

}
ExampleRenderFilter.java 文件源码 项目:liferay-blade-samples 阅读 16 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {
}
ExampleRenderFilter.java 文件源码 项目:liferay-blade-samples 阅读 16 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {
}
ExampleRenderFilter.java 文件源码 项目:liferay-blade-samples 阅读 19 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {
}
CDIFilter.java 文件源码 项目:docs-samples 阅读 14 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {
}
ResponseFilter.java 文件源码 项目:portlet-pack 阅读 19 收藏 0 点赞 0 评论 0
public void init(FilterConfig filterConfig) throws PortletException
{
}
ResponseFilter.java 文件源码 项目:portlet-pack 阅读 18 收藏 0 点赞 0 评论 0
public void init(FilterConfig filterConfig) throws PortletException
{
}
ResponseFilter.java 文件源码 项目:portlet-pack 阅读 21 收藏 0 点赞 0 评论 0
public void init(FilterConfig filterConfig) throws PortletException
{
}
BaseFilter.java 文件源码 项目:portals-pluto 阅读 20 收藏 0 点赞 0 评论 0
/**
 * Returns the FilterConfig instance.
 */
public FilterConfig getFilterConfig() {
    return filterConfig;
}
AsyncFilter.java 文件源码 项目:portals-pluto 阅读 18 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {
}
SigTestsFilter_FilterChain_SIGRender_filter.java 文件源码 项目:portals-pluto 阅读 19 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
SigTestsFilter_FilterConfig_SIGRender_filter.java 文件源码 项目:portals-pluto 阅读 16 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
}
FilterTests_ResourceFilter_ApiResourceFilter_filter2.java 文件源码 项目:portals-pluto 阅读 14 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
FilterTests_FilterChain_ApiActionFilter_filter2.java 文件源码 项目:portals-pluto 阅读 16 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
FilterTests_FilterChain_ApiEventFilter_filter2.java 文件源码 项目:portals-pluto 阅读 13 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
FilterTests_FilterChain_ApiResourceFilter_filter.java 文件源码 项目:portals-pluto 阅读 17 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
FilterTests_PortletFilter_ApiResourceFilter_filter.java 文件源码 项目:portals-pluto 阅读 18 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
  initCalled = true;
}
FilterTests_PortletFilter_ApiEventFilter_filter.java 文件源码 项目:portals-pluto 阅读 15 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
  initCalled = true;
}
FilterTests_PortletFilter_ApiActionFilter_filter.java 文件源码 项目:portals-pluto 阅读 15 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
  initCalled = true;
}
FilterTests_FilterChain_ApiActionFilter_filter.java 文件源码 项目:portals-pluto 阅读 15 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
FilterTests_FilterChain_ApiRenderFilter_filter.java 文件源码 项目:portals-pluto 阅读 18 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
}
FilterTests_FilterConfig_ApiRenderFilter_filter.java 文件源码 项目:portals-pluto 阅读 15 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
}
FilterTests_ResourceFilter_ApiResourceFilter_filter.java 文件源码 项目:portals-pluto 阅读 17 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
}
FilterTests_RenderFilter_ApiRenderFilter_filter.java 文件源码 项目:portals-pluto 阅读 15 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
}
FilterTests_FilterChain_ApiResourceFilter_filter2.java 文件源码 项目:portals-pluto 阅读 17 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
FilterTests_RenderFilter_ApiRenderFilter_filter2.java 文件源码 项目:portals-pluto 阅读 17 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
FilterTests_ActionFilter_ApiActionFilter_filter2.java 文件源码 项目:portals-pluto 阅读 14 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
FilterTests_EventFilter_ApiEventFilter_filter3.java 文件源码 项目:portals-pluto 阅读 14 收藏 0 点赞 0 评论 0
@Override
public void init(FilterConfig filterConfig) throws PortletException {}


问题


面经


文章

微信
公众号

扫码关注公众号