You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ms...@apache.org on 2011/02/08 17:23:11 UTC

svn commit: r1068465 - /myfaces/trinidad/branches/1.2.12.3.3-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Agent.java

Author: mstarets
Date: Tue Feb  8 16:23:11 2011
New Revision: 1068465

URL: http://svn.apache.org/viewvc?rev=1068465&view=rev
Log:
TRINIDAD-1948 - Trinidad's Agent API Should Support Detection of Web Crawlers

Modified:
    myfaces/trinidad/branches/1.2.12.3.3-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Agent.java

Modified: myfaces/trinidad/branches/1.2.12.3.3-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Agent.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/1.2.12.3.3-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Agent.java?rev=1068465&r1=1068464&r2=1068465&view=diff
==============================================================================
--- myfaces/trinidad/branches/1.2.12.3.3-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Agent.java (original)
+++ myfaces/trinidad/branches/1.2.12.3.3-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Agent.java Tue Feb  8 16:23:11 2011
@@ -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
@@ -123,6 +128,21 @@ public interface Agent
    * Constant for generic PDA device browser
    */
   public static final String PLATFORM_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 Oracle SES web crawler
+   */
+  public static final String AGENT_ORACLE_SES = "oracle_ses";
 
   /** 
    * Constant for unknown platform version