<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A Device is the definition of the target logical device protocol. 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.
| Field Summary | |
static int |
TYPEIDThe type id of this class. |
static java.lang.String |
TYPENAMEThe constant class type identifier |
| Method Summary | |
void |
addUserAgent(java.lang.String userAgent)Deprecated. Add userAgent to the list of user agent strings used to detect the device |
void |
delete()Delete this device. |
Transformer |
findTransformer(java.lang.String mobileXmlVersion)Deprecated. As of IAS 9.0.3, replaced by findTransformer(String, MarkupLanguage) Returns the transformer which can be used for transforming mobile XML Documents |
Transformer |
findTransformer(java.lang.String languageVersion, MarkupLanguage markupLanguage)Deprecated. Returns the transformer which can be used for transforming documents |
java.lang.String[] |
getAudioFileExtensions()Deprecated. |
java.lang.String[] |
getAudioFormatPreferences()Deprecated. Gets the audio format preferences for this device |
int |
getBitsPerPixel()Deprecated. Gets the number of bits per pixel for this device |
java.lang.String |
getContentType()Deprecated. Gets the content type for this device |
org.w3c.dom.css.CSSStyleSheet |
getCSSStyleSheet()Gets the CSS Style Sheet associated with the Device |
java.lang.String |
getDescription()Deprecated. |
DeviceCategory |
getDeviceCategory()Deprecated. Gets the display size type property value |
DeviceV2 |
getDeviceV2()Return the DeviceV2 object so one can use the new features of the new Device Model. |
java.lang.String |
getEncoding()Deprecated. Gets the encoding value. |
long |
getId()This method returns the id of the device. |
java.lang.String[] |
getImageFileExtensions()Deprecated. |
java.lang.String[] |
getImageFormatPreferences()Deprecated. Gets the image format preferences for this device |
java.lang.String |
getManufacturer()Deprecated. Gets the manufacturer property value |
int |
getMaxDocSize()Deprecated. Gets the maximum size (in bytes) of the mobile XML document that can be sent to this device |
boolean |
getMediaFeatureBoolean(java.lang.String feature)Deprecated. Gets the media feature value. |
int |
getMediaFeatureInteger(java.lang.String feature)Deprecated. Gets the media feature value. |
double |
getMediaFeatureLength(java.lang.String feature, java.lang.String unit)Deprecated. Gets the media feature value. |
java.util.HashSet |
getMediaFeatureSet(java.lang.String feature)Deprecated. Gets the media feature value. |
java.lang.String |
getMediaFeatureString(java.lang.String feature)Deprecated. Gets the media feature value. |
java.lang.String |
getMediaType()Deprecated. Gets the media type property value |
java.lang.String |
getMimeType()Deprecated. Gets the mimeType property (String) value. |
java.lang.String |
getModel()Deprecated. Gets the model property value |
java.lang.String |
getName()Return the name of the device. |
java.lang.String |
getParsedErrorPage(org.w3c.dom.Element error)Deprecated. Gets a parsed errorPage for this LogicalDevice |
java.lang.String |
getProlog()Deprecated. As of IAS 1.2 Gets the prolog property (String) value. |
int |
getScreenCols()Deprecated. Gets the number of characters per row for this Device. |
int |
getScreenHeight()Deprecated. Gets the screen height in pixels for this Device. |
int |
getScreenRows()Deprecated. Gets the number of character rows for this Device. |
int |
getScreenWidth()Deprecated. Gets the screen width in points for this Device. |
int |
getSoftKeys()Deprecated. Gets the number of "soft" keys for this Device. |
java.lang.String[] |
getSupportedLanguageVersions(MarkupLanguage markupLanguage)Deprecated. Returns markup language versions supported by the device |
java.lang.String[] |
getSupportedMobileXmlVersions()Deprecated. As of IAS 9.0.3, replaced by getSupportedLanguageVersions(MarkupLanguage) Returns an array of mobile xml versions supported by the device |
java.lang.String |
getTextErrorPage()Deprecated. Gets the errorPage property value. |
java.lang.String |
getTextLoginPage()Deprecated. Gets the loginPage property value. |
Transformer |
getTransformer()Deprecated. As of IASW 1.2, replaced by getTransformer(String) |
Transformer |
getTransformer(java.lang.String mobileXmlVersion)Deprecated. As of IAS 9.0.3, replaced by getTransformer(String, MarkupLanguage) Returns transformer for a mobile xml version |
Transformer |
getTransformer(java.lang.String languageVersion, MarkupLanguage markupLanguage)Deprecated. Returns transformer for a markup language version |
java.lang.String[] |
getUserAgents()Deprecated. Gets the list of User Agent Strings which will be used to detect the device |
java.lang.String[] |
getVideoFileExtensions()Deprecated. |
java.lang.String[] |
getVideoFormatPreferences()Deprecated. Gets the video format preferences for this device |
VideoMode |
getVideoMode()Deprecated. Gets the video mode property value |
org.w3c.dom.Element |
getXMLErrorPage()Deprecated. Gets the errorPage property value. |
org.w3c.dom.Element |
getXMLLoginPage()Deprecated. Gets the loginPage property value. |
boolean |
isColorCapable()Deprecated. Is the device color capable? |
boolean |
isImageCapable()Deprecated. Is the device image capable? |
boolean |
isNeedsURLCaching()Deprecated. Does this device need URL caching? |
boolean |
isSupportsAmpersandEntity()Deprecated. Does this device support ampersand entity (&) |
boolean |
isSupportsCookie()Deprecated. Does the device supports cookie's? |
boolean |
isSupportsRelativeURL()Deprecated. Does this device supports relative URL's? |
boolean |
isVideoCapable()Deprecated. Is the device Video Capable? |
boolean |
isVoiceCapable()Deprecated. Is the device voice capable? |
void |
modifyUserAgent(java.lang.String oldUserAgent, java.lang.String newUserAgent)Deprecated. Modifies the User Agent |
void |
removeTransformer(java.lang.String mobileXmlVersion)Deprecated. As of IAS 9.0.3, replaced by removeTransformer(String, MarkupLanguage) Removes the transformer for a mobile xml version |
void |
removeTransformer(java.lang.String languageVersion, MarkupLanguage markupLanguage)Deprecated. Removes transfomer for a markup language version |
void |
removeUserAgent(java.lang.String userAgent)Deprecated. Removes userAgent from the list of user agent strings used to detect the device |
void |
setAudioFormatPreferences(java.lang.String[] audioPrefs)Deprecated. Sets the audio format preferences for this device |
void |
setBitsPerPixel(int bitsPerPixel)Deprecated. Sets the number of bits per pixel for this device |
void |
setColorCapable(boolean colorCapable)Deprecated. Sets the colorCapable property value |
void |
setDescription(java.lang.String description)Deprecated. |
void |
setDeviceCategory(DeviceCategory deviceCategory)Deprecated. Sets the display size type property value |
void |
setEncoding(java.lang.String encoding)Deprecated. Sets the encoding value for this Device. |
void |
setImageCapable(boolean imageCapable)Deprecated. Sets the imageCapable propery value |
void |
setImageFormatPreferences(java.lang.String[] imagePrefs)Deprecated. Sets the image format preferences for this device |
void |
setManufacturer(java.lang.String manufacturer)Deprecated. Sets the manufacturer property value |
void |
setMaxDocSize(int maxDocSize)Deprecated. Sets the maximum size (in bytes) of the mobile XML document that can be sent to this device |
void |
setMediaFeatureBoolean(java.lang.String feature, boolean value)Deprecated. Sets the media feature value. |
void |
setMediaFeatureInteger(java.lang.String feature, int value)Deprecated. Sets the media feature value. |
void |
setMediaFeatureLength(java.lang.String feature, java.lang.String unit, double value)Deprecated. Sets the media feature value. |
void |
setMediaFeatureSet(java.lang.String feature, java.util.HashSet value)Deprecated. Sets the media feature value. |
void |
setMediaFeatureString(java.lang.String feature, java.lang.String value)Deprecated. Sets the media feature value. |
void |
setMediaType(java.lang.String mediaType)Deprecated. Sets the media type property value |
void |
setMimeType(java.lang.String mimeType)Deprecated. Sets the mimeType property (String) value. |
void |
setModel(java.lang.String model)Deprecated. Sets the model property value |
void |
setName(java.lang.String name)Set the name of the device. |
void |
setNeedsURLCaching(boolean needsURLCaching)Deprecated. Sets the needsURLCaching property (boolean) value. |
void |
setProlog(java.lang.String prolog)Deprecated. As of IAS 1.2 Sets the prolog property (String) value. |
void |
setScreenCols(int cols)Deprecated. Sets the number of characters per row for this Device. |
void |
setScreenHeight(int height)Deprecated. Sets the screen height in pixels for this Device. |
void |
setScreenRows(int rows)Deprecated. Sets the number of character rows for this Device. |
void |
setScreenWidth(int width)Deprecated. Sets the screen width in points for this Device. |
void |
setSoftKeys(int softKeys)Deprecated. Sets the number of "soft" keys for this Device. |
void |
setSupportsAmpersandEntity(boolean supportsAmpersandEntity)Deprecated. Sets the supportsAmpersandEntity propery value |
void |
setSupportsCookie(boolean supportsCookie)Deprecated. Sets the supportsCookie property value |
void |
setSupportsRelativeURL(boolean supportsRelativeURL)Deprecated. Sets the supportsRelativeURL property value |
void |
setTextErrorPage(java.lang.String errorPage)Deprecated. Sets the errorPage property value. |
void |
setTextLoginPage(java.lang.String loginPage)Deprecated. Sets the loginPage property value. |
void |
setTransformer(Transformer transformer)Deprecated. Sets the transformer for a mobile xml version |
void |
setUserAgents(java.lang.String[] userAgents)Deprecated. Sets User Agent Strings which will be used to detect the device |
void |
setVideoCapable(boolean videoCapable)Deprecated. Sets the videoCapable property value |
void |
setVideoFormatPreferences(java.lang.String[] videoPrefs)Deprecated. Sets the video format preferences for this device |
void |
setVideoMode(VideoMode videoMode)Deprecated. Sets the video mode property value |
void |
setVoiceCapable(boolean voiceCapable)Deprecated. Sets the voiceCapable property value |
void |
setXMLErrorPage(org.w3c.dom.Element errorPage)Deprecated. Sets the errorPage property value. |
void |
setXMLLoginPage(org.w3c.dom.Element loginPage)Deprecated. Sets the loginPage property value. |
| Methods inherited from interface oracle.panama.model.ModelObject |
getCreatedDate, getLastModifiedDate, getTypeId, getTypeName, isSystem, setSystem, undoAll |
| Methods inherited from interface oracle.panama.model.XMLObject |
setXML, toXML |
| Field Detail |
public static final java.lang.String TYPENAME
public static final int TYPEID
| Method Detail |
public java.lang.String getName()
getName in interface ModelObjectpublic void setName(java.lang.String name)
setName in interface ModelObjectname - The name of the device.public void setDescription(java.lang.String description)
description - the description text.public java.lang.String getDescription()
public java.lang.String getTextLoginPage()
setTextLoginPage(java.lang.String)public void setTextLoginPage(java.lang.String loginPage)
loginPage - The new value for the property.getTextLoginPage()public org.w3c.dom.Element getXMLLoginPage()
setXMLLoginPage(org.w3c.dom.Element)public void setXMLLoginPage(org.w3c.dom.Element loginPage)
loginPage - The new value for the property.getXMLLoginPage()public java.lang.String getTextErrorPage()
setTextErrorPage(java.lang.String)public void setTextErrorPage(java.lang.String errorPage)
errorPage - The new value for the property.getTextErrorPage()public org.w3c.dom.Element getXMLErrorPage()
setXMLErrorPage(org.w3c.dom.Element)public void setXMLErrorPage(org.w3c.dom.Element errorPage)
errorPage - The new value for the property.getXMLErrorPage()public Transformer getTransformer()
getTransformer(String)public java.lang.String getProlog()
public void setProlog(java.lang.String prolog)
prolog - The new value for the property.getProlog()public boolean isNeedsURLCaching()
setNeedsURLCaching(boolean)public void setNeedsURLCaching(boolean needsURLCaching)
needsURLCaching - The new value for the property.isNeedsURLCaching()public java.lang.String getEncoding()
setEncoding(java.lang.String)public void setEncoding(java.lang.String encoding)
encoding - The new encoding for this DevicegetEncoding()public java.lang.String getMimeType()
setMimeType(java.lang.String)public void setMimeType(java.lang.String mimeType)
mimeType - The new value for the property.getMimeType()public java.lang.String getContentType()
public int getScreenHeight()
setScreenHeight(int)public void setScreenHeight(int height)
height - The new screen height for this DevicegetScreenHeight()public int getScreenWidth()
setScreenWidth(int)public void setScreenWidth(int width)
width - The new screen width for this DevicegetScreenWidth()public int getScreenRows()
setScreenRows(int)public void setScreenRows(int rows)
rows - The new number of rows for this DevicegetScreenRows()public int getScreenCols()
setScreenCols(int)public void setScreenCols(int cols)
cols - The new number of characters per row for this DevicegetScreenCols()public int getSoftKeys()
setScreenCols(int)public void setSoftKeys(int softKeys)
softKeys - The new number of "soft" keys for this DevicesetSoftKeys(int)public java.lang.String getManufacturer()
setManufacturer(java.lang.String)public void setManufacturer(java.lang.String manufacturer)
manufacturer - the device manufacturergetManufacturer()public java.lang.String getModel()
setModel(java.lang.String)public void setModel(java.lang.String model)
model - the device modelgetModel()public DeviceCategory getDeviceCategory()
public void setDeviceCategory(DeviceCategory deviceCategory)
deviceCategory - the new property valuegetDeviceCategory()public boolean isImageCapable()
setImageCapable(boolean)public void setImageCapable(boolean imageCapable)
imageCapable - the new value for the propertyisImageCapable()public boolean isVideoCapable()
setVideoCapable(boolean)public void setVideoCapable(boolean videoCapable)
videoCapable - the new property valueisVideoCapable()public VideoMode getVideoMode()
public void setVideoMode(VideoMode videoMode)
videoMode - the new property valuepublic boolean isColorCapable()
setColorCapable(boolean)public void setColorCapable(boolean colorCapable)
colorCapable - the new property valueisColorCapable()public boolean isVoiceCapable()
setVoiceCapable(boolean)public void setVoiceCapable(boolean voiceCapable)
voiceCapable - the new property valueisVoiceCapable()public int getBitsPerPixel()
setBitsPerPixel(int)public void setBitsPerPixel(int bitsPerPixel)
bitsPerPixel - the new bits per pixel for this devicegetBitsPerPixel()public int getMaxDocSize()
setMaxDocSize(int)public void setMaxDocSize(int maxDocSize)
maxDocSize - maximum size of the Mobile XML documentgetMaxDocSize()public boolean isSupportsAmpersandEntity()
setSupportsAmpersandEntity(boolean)public void setSupportsAmpersandEntity(boolean supportsAmpersandEntity)
supportsAmpersandEntity - the new propeerty valueisSupportsAmpersandEntity()public boolean isSupportsRelativeURL()
setSupportsRelativeURL(boolean)public void setSupportsRelativeURL(boolean supportsRelativeURL)
supportsRelativeURL - the new property valueisSupportsRelativeURL()public boolean isSupportsCookie()
public void setSupportsCookie(boolean supportsCookie)
supportsCookie - the new property value #see #isSupportsCookie
public java.lang.String getParsedErrorPage(org.w3c.dom.Element error)
throws java.lang.Exception
error - an xml error element of the formatjava.lang.Exceptionpublic java.lang.String[] getImageFormatPreferences()
setImageFormatPreferences(java.lang.String[])public java.lang.String[] getImageFileExtensions()
public void setImageFormatPreferences(java.lang.String[] imagePrefs)
imagePrefs - array of image mime typesgetImageFormatPreferences()public java.lang.String[] getVideoFormatPreferences()
setVideoFormatPreferences(java.lang.String[])public java.lang.String[] getVideoFileExtensions()
public void setVideoFormatPreferences(java.lang.String[] videoPrefs)
videoPrefs - array of video mime typesgetVideoFormatPreferences()public java.lang.String[] getAudioFormatPreferences()
setAudioFormatPreferences(java.lang.String[])public java.lang.String[] getAudioFileExtensions()
public void setAudioFormatPreferences(java.lang.String[] audioPrefs)
audioPrefs - array of video mime typesgetAudioFormatPreferences()public java.lang.String[] getUserAgents()
public void setUserAgents(java.lang.String[] userAgents)
userAgents - array of user agent stringspublic void addUserAgent(java.lang.String userAgent)
userAgent - the user agent stringpublic void removeUserAgent(java.lang.String userAgent)
userAgent - teh user agent string
public void modifyUserAgent(java.lang.String oldUserAgent,
java.lang.String newUserAgent)
oldUserAgent - the previous user agent stringnewUserAgent - the new user agent stringpublic Transformer getTransformer(java.lang.String mobileXmlVersion)
getTransformer(String, MarkupLanguage) Returns transformer for a mobile xml versionmobileXmlVersion - the version of Mobile xmlpublic void setTransformer(Transformer transformer)
transformer - the transformerpublic void removeTransformer(java.lang.String mobileXmlVersion)
removeTransformer(String, MarkupLanguage) Removes the transformer for a mobile xml versionmobileXmlVersion - the mobile xml versionpublic java.lang.String[] getSupportedMobileXmlVersions()
getSupportedLanguageVersions(MarkupLanguage) Returns an array of mobile xml versions supported by the device
public Transformer findTransformer(java.lang.String mobileXmlVersion)
throws PanamaRuntimeException
findTransformer(String, MarkupLanguage) Returns the transformer which can be used for transforming mobile XML DocumentsmobileXmlVersion - the mobile xml versionPanamaRuntimeException - when a transformer is not foundpublic Transformer getTransformer(java.lang.String languageVersion, MarkupLanguage markupLanguage)
languageVersion - the markup language versionmarkupLanguage - the markup languagepublic void removeTransformer(java.lang.String languageVersion, MarkupLanguage markupLanguage)
languageVersion - the markup language versionmarkupLanguage - the markup languagepublic java.lang.String[] getSupportedLanguageVersions(MarkupLanguage markupLanguage)
markupLanguage - the markup language
public Transformer findTransformer(java.lang.String languageVersion,
MarkupLanguage markupLanguage)
throws PanamaRuntimeException
languageVersion - the markup language versionmarkupLanguage - the markup languagePanamaRuntimeException - when a transformer is not foundpublic java.lang.String getMediaType()
public void setMediaType(java.lang.String mediaType)
mediaType - the new property valuegetMediaType()public int getMediaFeatureInteger(java.lang.String feature)
feature - the media feature
public void setMediaFeatureInteger(java.lang.String feature,
int value)
feature - the media feature to be setvalue - the value of the media feature
public double getMediaFeatureLength(java.lang.String feature,
java.lang.String unit)
feature - the media featureunit - the absolute unit for the length
public void setMediaFeatureLength(java.lang.String feature,
java.lang.String unit,
double value)
feature - the media feature to be setunit - the absolute unit for the lengthvalue - the value of the media featurepublic boolean getMediaFeatureBoolean(java.lang.String feature)
feature - the media feature
public void setMediaFeatureBoolean(java.lang.String feature,
boolean value)
feature - the media feature to be setvalue - the value of the media featurepublic java.lang.String getMediaFeatureString(java.lang.String feature)
feature - the media feature
public void setMediaFeatureString(java.lang.String feature,
java.lang.String value)
feature - the media feature to be setvalue - the value of the media featurepublic java.util.HashSet getMediaFeatureSet(java.lang.String feature)
feature - the media feature
public void setMediaFeatureSet(java.lang.String feature,
java.util.HashSet value)
feature - the media feature to be setvalue - the value of the media featurepublic org.w3c.dom.css.CSSStyleSheet getCSSStyleSheet()
public long getId()
getId in interface ModelObjectpublic void delete()
delete in interface ModelObjectpublic DeviceV2 getDeviceV2()
|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||