config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java
public boolean detectIphone()
   {
      if ((this.initCompleted == true) ||
               (this.isIphone == true))
         return this.isIphone;

      // The iPad and iPod touch say they're an iPhone! So let's disambiguate.
      if (userAgent.indexOf(deviceIphone) != -1 &&
               !detectIpad() &&
               !detectIpod()) {
         return true;
      }
      return false;
   }
public boolean detectIphone()
   {
      if ((this.initCompleted == true) ||
               (this.isIphone == true))
         return this.isIphone;

      // The iPad and iPod touch say they're an iPhone! So let's disambiguate.
      if (userAgent.indexOf(deviceIphone) != -1 &&
               !detectIpad() &&
               !detectIpod()) {
         return true;
      }
      return false;
   }
Detects if the current device is an iPhone.

@return detection of an iPhone