|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.pvcadapter.DeviceInfo
DataBean which contains information of the client's device. Following code is sample which explains how to get this object inside JSP script.
<jsp:useBean id="pvc_device_info" scope="request" class="com.ibm.commerce.pvcadapter.DeviceInfo">PVCAdapters allows you to design web page optimized for clients specification using information from the data bean object.
</jsp:useBean>
Field Summary | |
static java.lang.String |
ATTRIB_KEY
ID of the databean in the response property. |
int |
colors
Number of colors the device can display. |
java.lang.String |
contentDirectory
Name of the directory where the contents for the device are located. |
java.lang.String |
documentFormat
Format of documents the device can display. |
java.lang.String |
documentVersion
Version of the document format the device can display. |
int |
height
Height of the display the device has |
java.lang.String |
imageFormat
Format of images the device can display |
boolean |
isMonochrome
Flag indicates that the device has monochrome display or not |
int |
maxContentLength
Maximum length of contents the device can receive. |
int |
maxUrlLength
Maximum length of URL the device can access. |
java.lang.String |
model
Model name of the device. |
java.lang.String |
modelDescription
Description of the device model. |
java.lang.String |
pvcSessionId
Reference number of the session record in PVCSESSION used to identify the device. |
java.lang.String |
pvcSessionType
Name of the PVC adapter usered for the device. |
java.lang.String |
soundFormat
Format of sound file the device can play |
java.lang.String |
spec
Name of the specification of the device which is recorded in PVCDEVSPEC table. |
java.lang.String |
specDescription
Description of the device specification in PVCDEVSPEC table. |
java.lang.String |
vendor
Vendor name of the device. |
int |
width
Width of the display the device has. |
Constructor Summary | |
DeviceInfo(PVCAdapter pvcAdapter)
Constructs a DeviceInfo object. |
Method Summary | |
int |
getColors()
Returns number of colors that the client's device can display. |
java.lang.String |
getContentDirectory()
Returns name of the directory where the documents for the client's device is located. |
java.lang.String |
getDocumentFormat()
Returns document format supported by the client's device. |
java.lang.String |
getDocumentVersion()
Returns document version supported by the client's device. |
int |
getHeight()
Returns height of display the client's device has. |
java.lang.String |
getImageFormat()
Returns image format supported by the client's device. |
int |
getMaxContentLength()
Returns maximum content length supported by the client's device. |
int |
getMaxUrlLength()
Returns maximum URL length supported by the client's device. |
java.lang.String |
getModel()
Returns model name of the client's device. |
java.lang.String |
getModelDescription()
Returns description of the client's device model. |
java.lang.String |
getPvcSessionId()
Returns reference number of the session information stored in PVCSESSION table. |
java.lang.String |
getPvcSessionType()
Returns type of the session which is stored as SESSIONTYPE in PVCSESSION table. |
java.lang.String |
getSoundFormat()
Returns supported type of sound file. |
java.lang.String |
getSpec()
Returns name of the device specification which is defined in PVCDEVSPEC table |
java.lang.String |
getSpecDescription()
Returns description of the device specification which is defined in PVCDEVSPEC table |
java.lang.String |
getVendor()
Returns vendor name of the device |
int |
getWidth()
Returns width of display the client's device has. |
boolean |
isIsMonochrome()
Returns whether client's display is monochrome |
void |
setColors(int newColors)
Sets number of colors to the data bean. |
void |
setContentDirectory(java.lang.String newContentDirectory)
Sets content directory to the data bean. |
void |
setDocumentFormat(java.lang.String newDocumentFormat)
Sets supported document format to the data bean. |
void |
setDocumentVersion(java.lang.String newDocumentVersion)
Sets supported version of document format to the data bean. |
void |
setHeight(int newHeight)
Sets hieght of the clients display to the data bean. |
void |
setImageFormat(java.lang.String newImageFormat)
Sets supported image format to the data bean. |
void |
setIsMonochrome(boolean newIsMonochrome)
Sets monochrome flag to the data bean. |
void |
setMaxContentLength(int newMaxContentLength)
Sets maximum content length to the data bean. |
void |
setMaxUrlLength(int newMaxUrlLength)
Sets maximum URL length to the data bean. |
void |
setModel(java.lang.String newModel)
Sets model name to the data bean. |
void |
setModelDescription(java.lang.String newModelDescription)
Sets description of the client's device model to the data bean. |
void |
setPvcSessionId(java.lang.String newPvcSessionId)
Sets reference number to the client's session recored in PVCSESSION table. |
void |
setPvcSessionType(java.lang.String newPvcSessionType)
Sets type of the client's session stored in PVCSESSION table. |
void |
setSoundFormat(java.lang.String newSoundFormat)
Sets supported sound format to the data bean |
void |
setSpec(java.lang.String newSpec)
Sets definition name of the device specification the data bean |
void |
setSpecDescription(java.lang.String newSpecDescription)
Sets description of the device specification to the data bean |
void |
setVendor(java.lang.String newVendor)
Sets vendor name of the device to the data bean |
void |
setWidth(int newWidth)
Sets width of the display to the data bean |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ATTRIB_KEY
public int colors
public java.lang.String contentDirectory
public java.lang.String documentFormat
public java.lang.String documentVersion
public int height
public java.lang.String imageFormat
public boolean isMonochrome
public int maxContentLength
public int maxUrlLength
public java.lang.String model
public java.lang.String modelDescription
public java.lang.String pvcSessionId
public java.lang.String pvcSessionType
public java.lang.String soundFormat
public java.lang.String spec
public java.lang.String specDescription
public java.lang.String vendor
public int width
Constructor Detail |
public DeviceInfo(PVCAdapter pvcAdapter)
PVC
- adapterMethod Detail |
public int getColors()
public java.lang.String getContentDirectory()
public java.lang.String getDocumentFormat()
public java.lang.String getDocumentVersion()
public int getHeight()
public java.lang.String getImageFormat()
public int getMaxContentLength()
public int getMaxUrlLength()
public java.lang.String getModel()
public java.lang.String getModelDescription()
public java.lang.String getPvcSessionId()
public java.lang.String getPvcSessionType()
public java.lang.String getSoundFormat()
public java.lang.String getSpec()
public java.lang.String getSpecDescription()
public java.lang.String getVendor()
public int getWidth()
public boolean isIsMonochrome()
public void setColors(int newColors)
newColors
- Number of colorspublic void setContentDirectory(java.lang.String newContentDirectory)
newContentDirectory
- Directory namepublic void setDocumentFormat(java.lang.String newDocumentFormat)
newDocumentFormat
- Document formatpublic void setDocumentVersion(java.lang.String newDocumentVersion)
newDocumentVersion
- Document versionpublic void setHeight(int newHeight)
newHeight
- Height of the displaypublic void setImageFormat(java.lang.String newImageFormat)
newImageFormat
- Image formatpublic void setIsMonochrome(boolean newIsMonochrome)
newIsMonochrome
- ture if display is monochrome; false otherwisepublic void setMaxContentLength(int newMaxContentLength)
newMaxContentLength
- Maximum content lengthpublic void setMaxUrlLength(int newMaxUrlLength)
newMaxUrlLength
- Maximum URL lengthpublic void setModel(java.lang.String newModel)
newModel
- Model namepublic void setModelDescription(java.lang.String newModelDescription)
newModelDescription
- Model descriptionpublic void setPvcSessionId(java.lang.String newPvcSessionId)
newPvcSessionId
- Reference to the session record.public void setPvcSessionType(java.lang.String newPvcSessionType)
newPvcSessionType
- Type of the sessionpublic void setSoundFormat(java.lang.String newSoundFormat)
newSoundFormat
- Supported sound formatpublic void setSpec(java.lang.String newSpec)
newSpec
- Definition name of the device specificationpublic void setSpecDescription(java.lang.String newSpecDescription)
newSpecDescription
- Description of the device specificationpublic void setVendor(java.lang.String newVendor)
newVendor
- Vendor name of the devicepublic void setWidth(int newWidth)
newWidth
- Width of the display
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |