|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | 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 |
| Type | Field |
|---|---|
static int |
TYPEID
The type id of this class. |
static java.lang.String |
TYPENAME
The constant class type identifier |
| Method Summary |
| Type | Method |
|---|---|
void |
addUserAgent(java.lang.String userAgent)
Add userAgent to the list of user agent strings used to detect the device |
Transformer |
findTransformer(java.lang.String mobileXmlVersion)
Returns the transformer which can be used for transforming mobile XML Documents |
int |
getBitsPerPixel()
Gets the number of bits per pixel for this device |
java.lang.String |
getContentType()
Gets the content type for this device |
java.lang.String |
getDescription()
|
DeviceCategory |
getDeviceCategory()
Gets the display size type property value |
java.lang.String |
getEncoding()
Gets the encoding value. |
java.lang.String[] |
getImageFileExtensions()
|
java.lang.String[] |
getImageFormatPreferences()
Gets the image format preferences for this device |
java.lang.String |
getManufacturer()
Gets the manufacturer property value |
int |
getMaxDocSize()
Gets the maximum size (in bytes) of the mobile XML document that can be sent to this device |
java.lang.String |
getMimeType()
Gets the mimeType property (String) value. |
java.lang.String |
getModel()
Gets the model property value |
java.lang.String |
getParsedErrorPage(org.w3c.dom.Element error)
Gets a parsed errorPage for this LogicalDevice |
java.lang.String |
getParsedLoginPage(Arguments arg)
Gets a parsed loginPage for this LogicalDevice |
java.lang.String |
getProlog()
Deprecated. As of IAS 1.2 Gets the prolog property (String) value. |
int |
getScreenCols()
Gets the number of characters per row for this Device. |
int |
getScreenHeight()
Gets the screen height in pixels for this Device. |
int |
getScreenRows()
Gets the number of character rows for this Device. |
int |
getScreenWidth()
Gets the screen width in points for this Device. |
int |
getSoftKeys()
Gets the number of "soft" keys for this Device. |
java.lang.String[] |
getSupportedMobileXmlVersions()
Returns an array of mobile xml versions supported by the device |
java.lang.String |
getTextErrorPage()
Gets the errorPage property value. |
java.lang.String |
getTextLoginPage()
Gets the loginPage property value. |
Transformer |
getTransformer()
Deprecated. As of IASW 1.2, replaced by getTransformer(String) |
Transformer |
getTransformer(java.lang.String mobileXmlVersion)
Returns transformer for a mobile xml version |
java.lang.String[] |
getUserAgents()
Gets the list of User Agent Strings which will be used to detect the device |
java.lang.String[] |
getVideoFileExtensions()
|
java.lang.String[] |
getVideoFormatPreferences()
Gets the video format preferences for this device |
VideoMode |
getVideoMode()
Gets the video mode property value |
org.w3c.dom.Element |
getXMLErrorPage()
Gets the errorPage property value. |
org.w3c.dom.Element |
getXMLLoginPage()
Gets the loginPage property value. |
boolean |
isColorCapable()
Is the device color capable? |
boolean |
isImageCapable()
Is the device image capable? |
boolean |
isNeedsURLCaching()
Does this device need URL caching? |
boolean |
isSupportsAmpersandEntity()
Does this device support ampersand entity (&) |
boolean |
isSupportsCookie()
Does the device supports cookie's? |
boolean |
isSupportsRelativeURL()
Does this device supports relative URL's? |
boolean |
isVideoCapable()
Is the device Video Capable? |
boolean |
isVoiceCapable()
Is the device voice capable? |
void |
modifyUserAgent(java.lang.String oldUserAgent,
java.lang.String newUserAgent)
Modifies the User Agent |
void |
removeTransformer(java.lang.String mobileXmlVersion)
Removes the transformer for a mobile xml version |
void |
removeUserAgent(java.lang.String userAgent)
Removes userAgent from the list of user agent strings used to detect the device |
void |
setBitsPerPixel(int bitsPerPixel)
Sets the number of bits per pixel for this device |
void |
setColorCapable(boolean colorCapable)
Sets the colorCapable property value |
void |
setDescription(java.lang.String description)
|
void |
setDeviceCategory(DeviceCategory deviceCategory)
Sets the display size type property value |
void |
setEncoding(java.lang.String encoding)
Sets the encoding value for this Device. |
void |
setImageCapable(boolean imageCapable)
Sets the imageCapable propery value |
void |
setImageFormatPreferences(java.lang.String[] imagePrefs)
Sets the image format preferences for this device |
void |
setManufacturer(java.lang.String manufacturer)
Sets the manufacturer property value |
void |
setMaxDocSize(int maxDocSize)
Sets the maximum size (in bytes) of the mobile XML document that can be sent to this device |
void |
setMimeType(java.lang.String mimeType)
Sets the mimeType property (String) value. |
void |
setModel(java.lang.String model)
Sets the model property value |
void |
setNeedsURLCaching(boolean needsURLCaching)
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)
Sets the number of characters per row for this Device. |
void |
setScreenHeight(int height)
Sets the screen height in pixels for this Device. |
void |
setScreenRows(int rows)
Sets the number of character rows for this Device. |
void |
setScreenWidth(int width)
Sets the screen width in points for this Device. |
void |
setSoftKeys(int softKeys)
Sets the number of "soft" keys for this Device. |
void |
setSupportsAmpersandEntity(boolean supportsAmpersandEntity)
Sets the supportsAmpersandEntity propery value |
void |
setSupportsCookie(boolean supportsCookie)
Sets the supportsCookie property value |
void |
setSupportsRelativeURL(boolean supportsRelativeURL)
Sets the supportsRelativeURL property value |
void |
setTextErrorPage(java.lang.String errorPage)
Sets the errorPage property value. |
void |
setTextLoginPage(java.lang.String loginPage)
Sets the loginPage property value. |
void |
setTransformer(Transformer transformer)
Sets the transformer for a mobile xml version |
void |
setUserAgents(java.lang.String[] userAgents)
Sets User Agent Strings which will be used to detect the device |
void |
setVideoCapable(boolean videoCapable)
Sets the videoCapable property value |
void |
setVideoFormatPreferences(java.lang.String[] videoPrefs)
Sets the video format preferences for this device |
void |
setVideoMode(VideoMode videoMode)
Sets the video mode property value |
void |
setVoiceCapable(boolean voiceCapable)
Sets the voiceCapable property value |
void |
setXMLErrorPage(org.w3c.dom.Element errorPage)
Sets the errorPage property value. |
void |
setXMLLoginPage(org.w3c.dom.Element loginPage)
Sets the loginPage property value. |
| Methods inherited from interface oracle.panama.model.ModelObject |
delete, getCreatedDate, getId, getLastModifiedDate, getName, getTypeId,
getTypeName, isSystem, setName,
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 void setDescription(java.lang.String description)
description - the description text.public java.lang.String getDescription()
public java.lang.String getTextLoginPage()
#setLoginPagepublic void setTextLoginPage(java.lang.String loginPage)
loginPage - The new value for the property.#getLoginPagepublic 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()
#setErrorPagepublic void setTextErrorPage(java.lang.String errorPage)
errorPage - The new value for the property.#getErrorPagepublic 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)
height - 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)
cols - 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)
displaySizeCategory - 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 format
public java.lang.String getParsedLoginPage(Arguments arg)
throws java.lang.Exception
arg - argumentspublic 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[] 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)
mobileXmlVersion - the version of Mobile xmlpublic void setTransformer(Transformer transformer)
transformer - the transformerpublic void removeTransformer(java.lang.String mobileXmlVersion)
mobileXmlVersion - the mobile xml versionpublic java.lang.String[] getSupportedMobileXmlVersions()
public Transformer findTransformer(java.lang.String mobileXmlVersion)
mobileXmlVersion - the mobile xml version
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||