|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.free2be.dimensions.device.DeviceFactory com.free2be.dimensions.device.simple.SimpleDeviceFactory
public class SimpleDeviceFactory
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.free2be.dimensions.device.DeviceFactory |
---|
DeviceFactory.ConfidenceLevel |
Field Summary |
---|
Fields inherited from class com.free2be.dimensions.device.DeviceFactory |
---|
CONTENT, DEFAULT, DEVICE, MINIMUM_LEVEL_FOR_FINAL, MODEL, NONE, OVERRIDE, PRE_DETERMINED, STANDARD |
Constructor Summary | |
---|---|
SimpleDeviceFactory()
|
Method Summary | |
---|---|
static void |
assignAccept(java.lang.String acceptValue,
SimpleDevice device)
|
protected void |
assignDeviceAttributesFromAccept(java.lang.String acceptHeaderValue)
|
static SimpleDevice |
buildHtmlDevice()
Temporary builders until detection is integrated.. |
static SimpleDevice |
buildHtmlFirefoxDevice()
|
static SimpleDevice |
buildHtmlIeDevice()
|
static SimpleDevice |
buildHtmlMozillaDevice()
|
static SimpleDevice |
buildHtmlNetscapeDevice()
|
static SimpleDevice |
buildHtmlPdaDevice()
Temporary builders until detection is integrated.. |
static SimpleDevice |
buildHtmlPhoneDevice()
Temporary builders until detection is integrated.. |
static SimpleDevice |
buildJ2meDevice()
|
static SimpleDevice |
buildPcBrowserDevice()
|
static SimpleDevice |
buildPocketPcDevice(javax.servlet.http.HttpServletRequest request)
Temporary builders until detection is integrated.. |
static SimpleDevice |
buildWmlDevice()
|
static SimpleDevice |
buildWmlDevice(javax.servlet.http.HttpServletRequest request)
Temporary builders until detection is integrated.. |
protected SimpleDevice |
detectDevice(javax.servlet.http.HttpServletRequest request)
|
protected SimpleDevice |
detectJ2meDevice(javax.servlet.http.HttpServletRequest request)
|
protected SimpleDevice |
detectPcBrowserDevice(javax.servlet.http.HttpServletRequest request)
|
protected SimpleDevice |
detectPocketPcDevice(javax.servlet.http.HttpServletRequest request)
|
protected SimpleDevice |
detectWmlDevice(javax.servlet.http.HttpServletRequest request)
|
DeviceFactory.ConfidenceLevel |
getConfidenceLevel()
Retrieves the confidence level this factory has in fulfilling the request based on the information provided during intialization. |
Device |
getDevice()
Retrieves a device to represent the calling client's device. |
DeviceFactory.ConfidenceLevel |
getHighestConfidenceLevel()
Returns the highest confidence level the implementing device factory can provide. |
protected void |
initialize(java.lang.Object informationSource)
initalizes a factory after default construction giving some object as the source of information to determine confidence and build devices. |
Methods inherited from class com.free2be.dimensions.device.DeviceFactory |
---|
clearPersistantDevice, getDeviceFactory, getFactories, getPersistentFactories |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleDeviceFactory()
Method Detail |
---|
public Device getDevice()
DeviceFactory
getDevice
in class DeviceFactory
protected void assignDeviceAttributesFromAccept(java.lang.String acceptHeaderValue)
protected SimpleDevice detectDevice(javax.servlet.http.HttpServletRequest request)
protected SimpleDevice detectPcBrowserDevice(javax.servlet.http.HttpServletRequest request)
protected SimpleDevice detectPocketPcDevice(javax.servlet.http.HttpServletRequest request)
protected SimpleDevice detectWmlDevice(javax.servlet.http.HttpServletRequest request)
protected SimpleDevice detectJ2meDevice(javax.servlet.http.HttpServletRequest request)
public static SimpleDevice buildHtmlDevice()
public static SimpleDevice buildPcBrowserDevice()
public static SimpleDevice buildHtmlIeDevice()
public static SimpleDevice buildHtmlNetscapeDevice()
public static SimpleDevice buildHtmlFirefoxDevice()
public static SimpleDevice buildHtmlMozillaDevice()
public static SimpleDevice buildJ2meDevice()
public static SimpleDevice buildHtmlPdaDevice()
public static SimpleDevice buildPocketPcDevice(javax.servlet.http.HttpServletRequest request)
public static SimpleDevice buildHtmlPhoneDevice()
public static SimpleDevice buildWmlDevice()
public static SimpleDevice buildWmlDevice(javax.servlet.http.HttpServletRequest request)
public static void assignAccept(java.lang.String acceptValue, SimpleDevice device)
public DeviceFactory.ConfidenceLevel getConfidenceLevel()
DeviceFactory
getConfidenceLevel
in class DeviceFactory
public DeviceFactory.ConfidenceLevel getHighestConfidenceLevel()
DeviceFactory
getHighestConfidenceLevel
in class DeviceFactory
protected void initialize(java.lang.Object informationSource)
DeviceFactory
initialize
in class DeviceFactory
informationSource
- any object that a factory may use to determine device (usually javax.servlet.HttpServletRequest).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |