|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A DeviceV2 is the definition of the target logical device protocol. It replaced the old Device interface. It can for example be WML11 for WML specific devices, but also WML_Nokia7110 for more Nokia specific WML. Other examples are SMS, EMAIL etc.
Observe that the same physical device can support multiple logical Devices, a phone for example can support both the SMS and the WAP protocols.
Device| Method Summary | |
void |
addDeviceGroup(DeviceGroup group)Add a device to the device group, i.e., associate the device with the given device group. |
void |
addDynamicAttribute(java.lang.String name, java.lang.String value)Adds an dynamic attribute to the device. |
void |
addMeta(java.lang.String name, java.lang.String value)Add a new meta |
void |
addProperty(java.lang.String name, java.lang.String value)Add a new property |
Transformer |
findTransformer(java.lang.String languageVersion, MarkupLanguage markupLanguage)Returns the transformer which can be used for transforming documents |
java.util.HashMap |
getAllDynamicAttributes()Return all the attributes for this device. |
boolean |
getDeliveryContextAttributeBoolean(java.lang.String name)This method can be used to get the device's delivery context attribute in boolean format. |
int |
getDeliveryContextAttributeInt(java.lang.String name)This method can be used to get the device's delivery context attribute in integer format. |
java.lang.String[] |
getDeliveryContextAttributeLov(java.lang.String name)This method can be used to get the device's delivery context attribute in string array format. |
java.lang.String |
getDeliveryContextAttributeString(java.lang.String name)This method can be used to get the device's delivery context attribute in string format. |
Device |
getDevice()This method returns an instance of the Device that's compatible with the old "Device" interface. |
DeviceGroup[] |
getDeviceGroups()Returns an array of the device groups that the device is associated with. |
java.lang.String |
getDynamicAttribute(java.lang.String name)Get the dynamic attribute's value given it's name. |
MediaQueriable |
getMediaQueriable()Return the MediaQueriable interface for the Device. |
java.lang.String |
getMeta(java.lang.String name)Returns the value of a named meta or null if the meta does not exist |
java.util.HashMap |
getMetas()Returns all Metas of this object as a name value pair. |
java.lang.String |
getName()Return the name of the device. |
java.util.HashMap |
getProperties()Returns all Properties of this object as a name value pair. |
java.lang.String |
getProperty(java.lang.String name)Returns the value of a named property or null if the property does not exist |
RtDevice |
getRtDevice()This method returns an instance of the RtDevice that can be used to add dynamic attributes to the device for use of that particular request. |
RtDevice |
getRtDevice(javax.servlet.http.HttpServletRequest request)This method returns an instance of the RtDevice that have the attributes from Http Headers prefilled and can be further extended by adding dynamic attributes to it. |
java.lang.String[] |
getSupportedLanguageVersions(MarkupLanguage markupLanguage)Returns markup language versions supported by the device |
Transformer |
getTransformer(java.lang.String languageVersion, MarkupLanguage markupLanguage)Returns transformer for a markup language version. |
java.lang.String[] |
getUserAgents()Gets the list of User Agent Strings which will be used to detect the device |
XDevice |
getXDevice()Return the XDevice interface for the device. |
org.w3c.dom.Element |
getXMLErrorPage()Gets the errorPage property value. |
org.w3c.dom.Element |
getXMLLoginPage()Gets the loginPage property value. |
void |
removeDeviceGroup(DeviceGroup group)Remove a device from the device group, i.e., un-associate the device with the given device group. |
void |
removeDynamicAttribute(java.lang.String name)Remove the dynamic attribute. |
void |
removeMeta(java.lang.String name)Remove a meta |
void |
removeProperty(java.lang.String name)Remove a property |
| Methods inherited from interface oracle.panama.model.AttributeQueriable |
getDeliveryContextAttribute |
| Method Detail |
public void addDeviceGroup(DeviceGroup group)
group - The device group for the device to be associated with.java.lang.IllegalArgumentException - in case of group parameter is null.
public void addDynamicAttribute(java.lang.String name,
java.lang.String value)
name - The name of the attribute. The name has to be unique per device!value - The value of the attribute.
public void addMeta(java.lang.String name,
java.lang.String value)
throws java.lang.IllegalArgumentException
name - the name of the metavalue - the value of the metajava.lang.IllegalArgumentException - if either the name of the value are null
public void addProperty(java.lang.String name,
java.lang.String value)
throws java.lang.IllegalArgumentException
name - the name of the propertyvalue - the value of the propertyjava.lang.IllegalArgumentException - if either the name of the value are null
public Transformer findTransformer(java.lang.String languageVersion,
MarkupLanguage markupLanguage)
throws PanamaRuntimeException
languageVersion - the markup language versionmarkupLanguage - the markup languagePanamaRuntimeException - when a transformer is not foundgetTransformer(String, MarkupLanguage)public java.util.HashMap getAllDynamicAttributes()
public boolean getDeliveryContextAttributeBoolean(java.lang.String name)
name - The name of the delivery context attributepublic int getDeliveryContextAttributeInt(java.lang.String name)
name - The name of the delivery context attributepublic java.lang.String[] getDeliveryContextAttributeLov(java.lang.String name)
name - The name of the delivery context attributepublic java.lang.String getDeliveryContextAttributeString(java.lang.String name)
name - The name of the delivery context attributejava.lang.UnsupportedOperationException - if the attribute is found to be not a string type.public Device getDevice()
public DeviceGroup[] getDeviceGroups()
public java.lang.String getDynamicAttribute(java.lang.String name)
name - The name of the attribute interested.public MediaQueriable getMediaQueriable()
public java.lang.String getMeta(java.lang.String name)
throws java.lang.IllegalArgumentException
null if the meta does not existname - the name of the metanull if the meta does not existjava.lang.IllegalArgumentException - if either the name of the value are nullpublic java.util.HashMap getMetas()
public java.lang.String getName()
public java.util.HashMap getProperties()
public java.lang.String getProperty(java.lang.String name)
throws java.lang.IllegalArgumentException
null if the property does not existname - the name of the propertynull if the property does not existjava.lang.IllegalArgumentException - if either the name of the value are nullpublic RtDevice getRtDevice()
public RtDevice getRtDevice(javax.servlet.http.HttpServletRequest request)
request - The request for which this Runtime device will be used.public java.lang.String[] getSupportedLanguageVersions(MarkupLanguage markupLanguage)
markupLanguage - the markup language
public Transformer getTransformer(java.lang.String languageVersion,
MarkupLanguage markupLanguage)
languageVersion - the markup language versionmarkupLanguage - the markup languagepublic java.lang.String[] getUserAgents()
public XDevice getXDevice()
public org.w3c.dom.Element getXMLErrorPage()
public org.w3c.dom.Element getXMLLoginPage()
public void removeDeviceGroup(DeviceGroup group)
group - The device group for the device to not be associated with.java.lang.IllegalArgumentException - in case of group parameter is null.public void removeDynamicAttribute(java.lang.String name)
name - The name of the attribute to be removed
public void removeMeta(java.lang.String name)
throws java.lang.IllegalArgumentException
name - the name of the metajava.lang.IllegalArgumentException - if either the name of the value are null
public void removeProperty(java.lang.String name)
throws java.lang.IllegalArgumentException
name - the name of the propertyjava.lang.IllegalArgumentException - if either the name of the value are null
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||