|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.sourceforge.wurfl.wurflapi.UAManager
| Method Summary | |
java.lang.String |
getDeviceIDFromUA(java.lang.String ua)
Given the UA of a device, find the device ID of the associated device. |
java.lang.String |
getDeviceIDFromUALoose(java.lang.String ua)
Given the UA of a device, find the device ID of the associated device. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public java.lang.String getDeviceIDFromUA(java.lang.String ua)
public java.lang.String getDeviceIDFromUALoose(java.lang.String ua)
MOT-T720/G_05.01.43R will match
MOT-T720/05.08.41R MIB/2.0 Profile/MIDP-1.0 Configuration/CLDC-1.0.
(assuming no better match is found).
Observe that this is more powerful than a simple substring match.
Matching UAs loosely is an expensive operation, but UAManager
implements a cache that helps a lot.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||