You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by de...@apache.org on 2017/09/17 12:29:28 UTC
[myfaces-trinidad] 02/03: Agent support for web crawlers
This is an automated email from the ASF dual-hosted git repository.
deki pushed a commit to branch mstarets_webcrawler
in repository https://gitbox.apache.org/repos/asf/myfaces-trinidad.git
commit 7958e92cc58caf4cf82479baac49f11e513e6342
Author: Max Starets <ms...@apache.org>
AuthorDate: Thu Oct 28 20:42:35 2010 +0000
Agent support for web crawlers
---
.../java/org/apache/myfaces/trinidad/context/Agent.java | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Agent.java b/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Agent.java
index ee4d12c..300d069 100644
--- a/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Agent.java
+++ b/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Agent.java
@@ -60,6 +60,11 @@ public interface Agent
* Constant for Phone sized devices
*/
public static final Object TYPE_PHONE = "phone";
+
+ /**
+ * Constant for Web Crawlers
+ */
+ public static final Object TYPE_WEBCRAWLER = "webcrawler";
/**
* Constant for unknown platform
@@ -183,6 +188,16 @@ public interface Agent
* Constant for basic HTML (without JavaScript) Browser agent.
*/
public static final String AGENT_GENERICPDA = "genericpda";
+
+ /**
+ * Constant for MSN web crawler (currently used by Bing and Yahoo)
+ */
+ public static final String AGENT_MSNBOT = "msnbot";
+
+ /**
+ * Constant for Google web crawler
+ */
+ public static final String AGENT_GOOGLEBOT = "googlebot";
/**
* Constant for unknown Agent version
--
To stop receiving notification emails like this one, please contact
"commits@myfaces.apache.org" <co...@myfaces.apache.org>.