|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.free2be.dimensions.device.DeviceFactory
com.free2be.dimensions.device.SimulationDeviceFactory
public class SimulationDeviceFactory
Used to detect simulation overrides of the calling device to simulate or emulate a different device than the actual.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.free2be.dimensions.device.DeviceFactory |
|---|
DeviceFactory.ConfidenceLevel |
| Field Summary | |
|---|---|
static java.lang.String |
SIMULATION_DEVICE_COMMAND
Indicator parameter that would indicate commands to communicate with the this factory... |
static java.lang.String |
SIMULATION_DEVICE_COMMAND_STOP
Indicator parameter that would indicate commands to communicate with the this factory... |
static java.lang.String |
SIMULATION_DEVICE_CONTENT_TYPE_INDICATOR
Indicator parameter that would indicate the content type to simulate... |
static java.lang.String |
SIMULATION_DEVICE_MODEL_INDICATOR
Indicator parameter that would indicate the device model to simulate... |
static java.lang.String |
SIMULATION_DEVICE_SUBTYPE_INDICATOR
Indicator parameter that would indicate the device subtype to simulate... |
static java.lang.String |
SIMULATION_DEVICE_TYPE_INDICATOR
Indicator parameter that would indicate the device type to simulate... |
static java.lang.String |
SIMULATION_DEVICE_VENDOR_INDICATOR
Indicator parameter that would indicate the device vendor to simulate... |
static java.lang.String |
SIMULATION_WAP_PROFILE_INDICATOR
Indicator parameter that would indicate the url to the UAProf RDF... |
| Fields inherited from class com.free2be.dimensions.device.DeviceFactory |
|---|
CONTENT, DEFAULT, DEVICE, MINIMUM_LEVEL_FOR_FINAL, MODEL, NONE, OVERRIDE, PRE_DETERMINED, STANDARD |
| Constructor Summary | |
|---|---|
SimulationDeviceFactory()
|
|
| Method Summary | |
|---|---|
protected void |
assignDeviceSimulation(javax.servlet.http.HttpServletRequest request)
|
protected boolean |
deviceMatches(Device simulationDevice)
|
protected static java.lang.String |
emptyStringIfNull(java.lang.String value)
|
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. |
protected static void |
loadDevices()
These should be loaded from an XML configuration file using digester. |
java.lang.String |
toString()
|
| 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, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SIMULATION_DEVICE_CONTENT_TYPE_INDICATOR
Device,
Constant Field Valuespublic static final java.lang.String SIMULATION_DEVICE_TYPE_INDICATOR
Device,
Constant Field Valuespublic static final java.lang.String SIMULATION_DEVICE_SUBTYPE_INDICATOR
Device,
Constant Field Valuespublic static final java.lang.String SIMULATION_DEVICE_VENDOR_INDICATOR
Device,
Constant Field Valuespublic static final java.lang.String SIMULATION_DEVICE_MODEL_INDICATOR
Device,
Constant Field Valuespublic static final java.lang.String SIMULATION_WAP_PROFILE_INDICATOR
DeviceProfileFactory,
Constant Field Valuespublic static final java.lang.String SIMULATION_DEVICE_COMMAND
SIMULATION_DEVICE_COMMAND_STOP,
SIMULATION_DEVICE_ALREADY_STOPPED,
Constant Field Valuespublic static final java.lang.String SIMULATION_DEVICE_COMMAND_STOP
SIMULATION_DEVICE_COMMAND,
Constant Field Values| Constructor Detail |
|---|
public SimulationDeviceFactory()
| Method Detail |
|---|
public Device getDevice()
getDevice in class DeviceFactorypublic DeviceFactory.ConfidenceLevel getConfidenceLevel()
getConfidenceLevel in class DeviceFactorypublic DeviceFactory.ConfidenceLevel getHighestConfidenceLevel()
getHighestConfidenceLevel in class DeviceFactoryprotected void initialize(java.lang.Object informationSource)
initialize in class DeviceFactoryinformationSource - any object that a factory may use to determine device (usually javax.servlet.HttpServletRequest).protected void assignDeviceSimulation(javax.servlet.http.HttpServletRequest request)
protected static java.lang.String emptyStringIfNull(java.lang.String value)
protected boolean deviceMatches(Device simulationDevice)
protected static void loadDevices()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||