|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.wurfl.core.DefaultCapabilitiesHolder
public class DefaultCapabilitiesHolder
CapabilitiesHolder default implementation.
This is the default implementation of CapabilitiesHolder, it use a Map to store capabilities and a CapabilitiesLoader implementation to lazily load capabilities values.
It is very efficient if you need getting more then one capability, and if you want getting capability from JSTL, because you can't use getCapability("name") from there but you can grab capability by doing ${device.capabilities.name}.
| Constructor Summary | |
|---|---|
DefaultCapabilitiesHolder(CapabilitiesLoader capabilitiesLoader)
|
|
| Method Summary | |
|---|---|
Map |
getAllCapabilities()
Returns all the capabilities for a single device. |
String |
getCapabilityValue(String capabilityName)
Return the capability value by capability name for single Device instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCapabilitiesHolder(CapabilitiesLoader capabilitiesLoader)
| Method Detail |
|---|
public String getCapabilityValue(String capabilityName)
throws CapabilityNotDefinedException
CapabilitiesHolder
getCapabilityValue in interface CapabilitiesHoldercapabilityName - The name of capability to get value.
CapabilityNotDefinedException - If the capability capabilityName is not defined in WURFL.public Map getAllCapabilities()
CapabilitiesHolder
getAllCapabilities in interface CapabilitiesHolder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||