Java 类javax.portlet.filter.FilterConfig 实例源码

项目:docs-samples    文件:OAuthPortletFilter.java   
@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");
    }
}
项目:portals-pluto    文件:BaseFilter.java   
/**
 * 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();
}
项目:portals-pluto    文件:AddlFilterTests_SPEC2_20_FilterMultiple.java   
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;
  }

}
项目:liferay-blade-samples    文件:ExampleRenderFilter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
}
项目:liferay-blade-samples    文件:ExampleRenderFilter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
}
项目:liferay-blade-samples    文件:ExampleRenderFilter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
}
项目:docs-samples    文件:CDIFilter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
}
项目:portlet-pack    文件:ResponseFilter.java   
public void init(FilterConfig filterConfig) throws PortletException
{
}
项目:portlet-pack    文件:ResponseFilter.java   
public void init(FilterConfig filterConfig) throws PortletException
{
}
项目:portlet-pack    文件:ResponseFilter.java   
public void init(FilterConfig filterConfig) throws PortletException
{
}
项目:portals-pluto    文件:BaseFilter.java   
/**
 * Returns the FilterConfig instance.
 */
public FilterConfig getFilterConfig() {
    return filterConfig;
}
项目:portals-pluto    文件:AsyncFilter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
}
项目:portals-pluto    文件:SigTestsFilter_FilterChain_SIGRender_filter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
项目:portals-pluto    文件:SigTestsFilter_FilterConfig_SIGRender_filter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
}
项目:portals-pluto    文件:FilterTests_ResourceFilter_ApiResourceFilter_filter2.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
项目:portals-pluto    文件:FilterTests_FilterChain_ApiActionFilter_filter2.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
项目:portals-pluto    文件:FilterTests_FilterChain_ApiEventFilter_filter2.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
项目:portals-pluto    文件:FilterTests_FilterChain_ApiResourceFilter_filter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
项目:portals-pluto    文件:FilterTests_PortletFilter_ApiResourceFilter_filter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
  initCalled = true;
}
项目:portals-pluto    文件:FilterTests_PortletFilter_ApiEventFilter_filter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
  initCalled = true;
}
项目:portals-pluto    文件:FilterTests_PortletFilter_ApiActionFilter_filter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
  initCalled = true;
}
项目:portals-pluto    文件:FilterTests_FilterChain_ApiActionFilter_filter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
项目:portals-pluto    文件:FilterTests_FilterChain_ApiRenderFilter_filter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
}
项目:portals-pluto    文件:FilterTests_FilterConfig_ApiRenderFilter_filter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
}
项目:portals-pluto    文件:FilterTests_ResourceFilter_ApiResourceFilter_filter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
}
项目:portals-pluto    文件:FilterTests_RenderFilter_ApiRenderFilter_filter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
}
项目:portals-pluto    文件:FilterTests_FilterChain_ApiResourceFilter_filter2.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
项目:portals-pluto    文件:FilterTests_RenderFilter_ApiRenderFilter_filter2.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
项目:portals-pluto    文件:FilterTests_ActionFilter_ApiActionFilter_filter2.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
项目:portals-pluto    文件:FilterTests_EventFilter_ApiEventFilter_filter3.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
项目:portals-pluto    文件:FilterTests_PortletFilter_ApiRenderFilter_filter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
  initCalled = true;
}
项目:portals-pluto    文件:FilterTests_FilterChain_ApiEventFilter_filter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
项目:portals-pluto    文件:FilterTests_EventFilter_ApiEventFilter_filter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
}
项目:portals-pluto    文件:FilterTests_FilterConfig_ApiRenderFilter_filter2.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
}
项目:portals-pluto    文件:FilterTests_ActionFilter_ApiActionFilter_filter3.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
项目:portals-pluto    文件:FilterTests_EventFilter_ApiEventFilter_filter2.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {}
项目:portals-pluto    文件:FilterTests_ActionFilter_ApiActionFilter_filter.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
}
项目:portals-pluto    文件:FilterTests_FilterChain_ApiRenderFilter_filter2.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
  this.filterConfig = filterConfig;
}
项目:portals-pluto    文件:MultipleAnnotatedFilters2.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
}
项目:portals-pluto    文件:TestAnnotatedFilterMultiple.java   
@Override
public void init(FilterConfig filterConfig) throws PortletException {
}