Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.model
Interface DeviceV2

All Superinterfaces:
AttributeQueriable
All Known Subinterfaces:
RtDevice

public interface DeviceV2
extends AttributeQueriable

Method Summary
 Transformer findTransformer(java.lang.String languageVersion, MarkupLanguage markupLanguage)
          Returns the transformer which can be used for transforming documents
 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.
 MediaQueriable getMediaQueriable()
          Return the MediaQueriable interface for the Device.
 java.lang.String getName()
          Return the name of the device.
 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
 oracle.panama.xhtml.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.

 

Methods inherited from interface oracle.panama.model.AttributeQueriable
getDeliveryContextAttribute

 

Method Detail

getName

public java.lang.String getName()
Return the name of the device.
Returns:
The name of the device.

getDeliveryContextAttributeBoolean

public boolean getDeliveryContextAttributeBoolean(java.lang.String name)
This method can be used to get the device's delivery context attribute in boolean format.
Parameters:
name - The name of the delivery context attribute
Returns:
The value of the delivery context attribute.

getDeliveryContextAttributeString

public java.lang.String getDeliveryContextAttributeString(java.lang.String name)
This method can be used to get the device's delivery context attribute in string format.
Parameters:
name - The name of the delivery context attribute
Returns:
The value of the delivery context attribute.
Throws:
java.lang.UnsupportedOperationException - if the attribute is found to be not a string type.

getDeliveryContextAttributeInt

public int getDeliveryContextAttributeInt(java.lang.String name)
This method can be used to get the device's delivery context attribute in integer format.
Parameters:
name - The name of the delivery context attribute
Returns:
The value of the delivery context attribute.

getDeliveryContextAttributeLov

public 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.
Parameters:
name - The name of the delivery context attribute
Returns:
The value of the delivery context attribute.

getRtDevice

public 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.
Returns:
The instance of RtDevice that's associated with that device.

getRtDevice

public 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.
Parameters:
request - The request for which this Runtime device will be used.
Returns:
The RtDevice that have dynamic attributes from http header et al.

getDevice

public Device getDevice()
This method returns an instance of the Device that's compatible with the old "Device" interface.
Returns:
An adapter instance compatible with the "Device" interface.

getMediaQueriable

public MediaQueriable getMediaQueriable()
Return the MediaQueriable interface for the Device.
Returns:
An instance that implements the media queriable interface for the device.

getXDevice

public oracle.panama.xhtml.XDevice getXDevice()
Return the XDevice interface for the device.
Returns:
An adapter instance that implements the XDevice interface for the device.

findTransformer

public Transformer findTransformer(java.lang.String languageVersion,
MarkupLanguage markupLanguage)
                            throws PanamaRuntimeException
Returns the transformer which can be used for transforming documents
Parameters:
languageVersion - the markup language version
markupLanguage - the markup language
Returns:
Transformer the transformer
Throws:
PanamaRuntimeException - when a transformer is not found
See Also:
getTransformer(String, MarkupLanguage)

getTransformer

public Transformer getTransformer(java.lang.String languageVersion,
MarkupLanguage markupLanguage)
Returns transformer for a markup language version. This method is different from findTransformer() in that it does only a direct lookup in the cached values, while findTransformer() will try do a lookup and then put it into cache if the transformer is available.
Parameters:
languageVersion - the markup language version
markupLanguage - the markup language
Returns:
Transformer the transformer

getUserAgents

public java.lang.String[] getUserAgents()
Gets the list of User Agent Strings which will be used to detect the device
Returns:
an array of user agent strings

getSupportedLanguageVersions

public java.lang.String[] getSupportedLanguageVersions(MarkupLanguage markupLanguage)
Returns markup language versions supported by the device
Parameters:
markupLanguage - the markup language
Returns:
String[] language versions supported by the device

getXMLErrorPage

public org.w3c.dom.Element getXMLErrorPage()
Gets the errorPage property value.
Returns:
The errorPage property value.

getXMLLoginPage

public org.w3c.dom.Element getXMLLoginPage()
Gets the loginPage property value.
Returns:
The loginPage property value.

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.