Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

Commit

Permalink
GTNPORTAL-3309 - Added possibility for resource overriding for favicons.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkrohling authored and ppalaga committed Nov 29, 2013
1 parent 9c5d728 commit a217926
Showing 1 changed file with 28 additions and 3 deletions.
Expand Up @@ -2,17 +2,17 @@
<!--
Copyright (C) 2009 eXo Platform SAS.
This is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of
the License, or (at your option) any later version.
This software is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this software; if not, write to the Free
Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
Expand Down Expand Up @@ -82,4 +82,29 @@
</component-plugins>
</component>

<external-component-plugins>
<target-component>org.exoplatform.web.filter.ExtensibleFilter</target-component>
<component-plugin>
<name>Favicon filter Plugin</name>
<set-method>addFilterDefinitions</set-method>
<type>org.exoplatform.web.filter.FilterDefinitionPlugin</type>
<init-params>
<object-param>
<name>Favicon Filter</name>
<object type="org.exoplatform.web.filter.FilterDefinition">
<field name="filter"><object type="org.exoplatform.web.filter.RedefinableResourceFilter"/></field>
<field name="patterns">
<!-- WARNING: the mapping is expressed with regular expressions -->
<collection type="java.util.ArrayList" item-type="java.lang.String">
<value>
<string>.*/favicon\.ico</string>
</value>
</collection>
</field>
</object>
</object-param>
</init-params>
</component-plugin>
</external-component-plugins>

</configuration>

0 comments on commit a217926

Please sign in to comment.