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 2010/10/28 22:42:35 UTC

svn commit: r1028465 - /myfaces/trinidad/branches/mstarets_webcrawler/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Agent.java

Author: mstarets
Date: Thu Oct 28 20:42:35 2010
New Revision: 1028465

URL: http://svn.apache.org/viewvc?rev=1028465&view=rev
Log:
Agent support for web crawlers

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

Modified: myfaces/trinidad/branches/mstarets_webcrawler/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Agent.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/mstarets_webcrawler/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Agent.java?rev=1028465&r1=1028464&r2=1028465&view=diff
==============================================================================
--- myfaces/trinidad/branches/mstarets_webcrawler/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Agent.java (original)
+++ myfaces/trinidad/branches/mstarets_webcrawler/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Agent.java Thu Oct 28 20:42:35 2010
@@ -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