001/* 002 * (C) Copyright 2006-2011 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 * 016 * Contributors: 017 * Thomas Roger <[email protected]> 018 */ 019 020package org.nuxeo.ecm.platform.web.common; 021 022/** 023 * Helper class to detect Html5 Dnd compliant browsers based on the User Agent string 024 * 025 * @author Tiry ([email protected]) 026 * @author <a href="mailto:[email protected]">Thomas Roger</a> 027 * @deprecated since 7.1, use {@link org.nuxeo.common.utils.UserAgentMatcher} instead. 028 */ 029@Deprecated 030public class UserAgentMatcher { 031 032 private UserAgentMatcher() { 033 // Helper class 034 } 035 036 public static boolean isFirefox3(String UA) { 037 return org.nuxeo.common.utils.UserAgentMatcher.isFirefox3(UA); 038 } 039 040 public static boolean isFirefox4OrMore(String UA) { 041 return org.nuxeo.common.utils.UserAgentMatcher.isFirefox4OrMore(UA); 042 } 043 044 public static boolean isSafari5(String UA) { 045 return org.nuxeo.common.utils.UserAgentMatcher.isSafari5(UA); 046 } 047 048 public static boolean isChrome(String UA) { 049 return org.nuxeo.common.utils.UserAgentMatcher.isChrome(UA); 050 } 051 052 public static boolean html5DndIsSupported(String UA) { 053 return org.nuxeo.common.utils.UserAgentMatcher.html5DndIsSupported(UA); 054 } 055 056 public static boolean isMSIE6or7(String UA) { 057 return org.nuxeo.common.utils.UserAgentMatcher.isMSIE6or7(UA); 058 } 059 060 /** 061 * @since 5.9.5 062 */ 063 public static boolean isMSIE10OrMore(String UA) { 064 return org.nuxeo.common.utils.UserAgentMatcher.isMSIE10OrMore(UA); 065 } 066 067 public static boolean isHistoryPushStateSupported(String UA) { 068 return org.nuxeo.common.utils.UserAgentMatcher.isHistoryPushStateSupported(UA); 069 } 070}