1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package com.xpn.xwiki.stats.impl

File SearchEngineRule.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart0.png
83% of files have more coverage

Code metrics

0
6
5
1
80
27
5
0.83
1.2
5
1

Classes

Class Line # Actions
SearchEngineRule 27 6 0% 5 11
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    /*
2    * See the NOTICE file distributed with this work for additional
3    * information regarding copyright ownership.
4    *
5    * This is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU Lesser General Public License as
7    * published by the Free Software Foundation; either version 2.1 of
8    * the License, or (at your option) any later version.
9    *
10    * This software is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13    * Lesser General Public License for more details.
14    *
15    * You should have received a copy of the GNU Lesser General Public
16    * License along with this software; if not, write to the Free
17    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19    */
20    package com.xpn.xwiki.stats.impl;
21   
22    /**
23    * Matching tool able to find if a referer is a particular search engine.
24    *
25    * @version $Id: 8ed2182d85ffc342da84a882e67861d2351d6805 $
26    */
 
27    public class SearchEngineRule
28    {
29    /**
30    * The search engine server address.
31    */
32    private String host;
33   
34    /**
35    * The regular expression to match.
36    */
37    private String regEx;
38   
39    /**
40    * @param host the search engine server address.
41    * @param regEx the regular expression to match.
42    */
 
43  0 toggle public SearchEngineRule(String host, String regEx)
44    {
45  0 setRegEx(regEx);
46  0 setHost(host);
47    }
48   
49    /**
50    * @return the search engine server address.
51    */
 
52  0 toggle public String getHost()
53    {
54  0 return this.host;
55    }
56   
57    /**
58    * @param host the search engine server address.
59    */
 
60  0 toggle public void setHost(String host)
61    {
62  0 this.host = host;
63    }
64   
65    /**
66    * @return the regular expression to match.
67    */
 
68  0 toggle public String getRegEx()
69    {
70  0 return this.regEx;
71    }
72   
73    /**
74    * @param regEx the regular expression to match.
75    */
 
76  0 toggle public void setRegEx(String regEx)
77    {
78  0 this.regEx = regEx;
79    }
80    }