Class RobotDecoratorMapper

  • All Implemented Interfaces:
    DecoratorMapper

    public class RobotDecoratorMapper
    extends AbstractDecoratorMapper
    The RobotDecoratorMapper will use the specified decorator when the requester is identified as a robot (also known as spider, crawler, ferret) of a search engine.

    The name of this decorator should be supplied in the decorator property.

    Version:
    $Revision: 1.3 $
    Author:
    Mathias Bogaert
    See Also:
    DecoratorMapper
    • Field Detail

      • decoratorName

        private String decoratorName
      • botHosts

        private static final String[] botHosts
        All known robot hosts (list can be found here).
      • botAgents

        private static final String[] botAgents
        All known robot user-agent headers (list can be found here).

        NOTE: To avoid bad detection:

        • Robots with ID of 2 letters only were removed
        • Robot called "webs" were removed
        • directhit was changed in direct_hit (its real id)
    • Constructor Detail

      • RobotDecoratorMapper

        public RobotDecoratorMapper()