Oracle Application Server Wireless Java API Reference
B10400-01

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

Constructor Summary
DeviceIdentificationPolicy()
           

 

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

 

Constructor Detail

DeviceIdentificationPolicy

public DeviceIdentificationPolicy()
Method Detail

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
DeviceNotFoundException

findDeviceType

public static java.lang.String findDeviceType(java.lang.String userAgent)
                                       throws DeviceNotFoundException
DeviceNotFoundException

findUserAgents

public java.lang.String[] findUserAgents(java.lang.String deviceType)

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.