oracle.panama.rt.hook
Class DeviceIdentificationPolicy
java.lang.Object
oracle.panama.rt.hook.DeviceIdentificationPolicy
- public final class DeviceIdentificationPolicy
- extends java.lang.Object
The device identification policy based on user agent attribute in the http header and other information about user and address of the user.
- Since:
- Oracle9i Application Server Wireless Edition
Method Summary |
static java.lang.String |
findDeviceType(java.lang.String userAgent)
|
java.lang.String[] |
findUserAgents(java.lang.String deviceType)
|
static java.lang.String |
getDeviceType(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Determine the device model using the user-agent attribute in the http header and other information about the user and address of the user. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeviceIdentificationPolicy
public DeviceIdentificationPolicy()
findDeviceType
public static java.lang.String findDeviceType(java.lang.String userAgent)
throws DeviceNotFoundException
-
- Throws:
DeviceNotFoundException
findUserAgents
public java.lang.String[] findUserAgents(java.lang.String deviceType)
getDeviceType
public static java.lang.String getDeviceType(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws DeviceNotFoundException
- Determine the device model using the user-agent attribute in the http header and other information about the user and address of the user.
-
- Parameters:
request
- the incoming request that contains information about device
- Returns:
- the name of the device model, null if the device is undetermined
- Throws:
DeviceNotFoundException
Copyright © 2004 Oracle Corporation. All Rights Reserved.