|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.scientiamobile.reloader.AbstractReloadableWURFLEngine
net.sourceforge.wurfl.core.GeneralWURFLEngine
public class GeneralWURFLEngine
Main Engine Manager: it's self-configured, following the "Convention over Configuration" principle.
All sensible default collaborators are provided.
Nevertheless, you can customize them as you want.
Here are the collaborators you can declare:
wurflModel, matcherManager, markupResolver, capabilitiesHolderFactory, deviceProvider, cacheProvider, filterChain, chain, handlersFactory, userAgentNormalizerFactory, wurflService,
also a custom wurflManager.
WurflWebConstants.WURFL_DEFAULT_LOCATION,
WurflWebConstants.WURFL_HOLDER_KEY| Field Summary |
|---|
| Fields inherited from interface net.sourceforge.wurfl.core.web.WurflWebConstants |
|---|
WURFL, WURFL_DEFAULT_LOCATION, WURFL_HOLDER_KEY, WURFL_HOLDER_KEY_PARAM, WURFL_PATCH |
| Constructor Summary | |
|---|---|
GeneralWURFLEngine(String root)
|
|
GeneralWURFLEngine(String rootPath,
String... patchesPath)
|
|
GeneralWURFLEngine(WURFLResource root)
|
|
GeneralWURFLEngine(WURFLResource root,
WURFLResource... patches)
|
|
GeneralWURFLEngine(WURFLResource root,
WURFLResources patches)
|
|
| Method Summary | |
|---|---|
void |
applyPatches(String... patchesPath)
|
void |
applyPatches(WURFLResource... patches)
|
void |
applyPatches(WURFLResources patches)
|
Device |
getDeviceForRequest(javax.servlet.http.HttpServletRequest request)
Return a Device instance from HttpServletRequest instance. |
Device |
getDeviceForRequest(String userAgent)
Return a Device instance from user-agent String. |
Device |
getDeviceForRequest(WURFLRequest request)
Return a Device instance from WURFLRequest instance. |
EngineTarget |
getEngineTarget()
Return the engine target |
WURFLManager |
getWURFLManager()
Implementation to respect WURFLHolder contract. |
WURFLUtils |
getWURFLUtils()
Return WURFLUtils instances. |
void |
init()
|
void |
reload(String rootPath)
|
void |
reload(String rootPath,
String[] patchesPath)
Reload WURFL data from given resources paths. |
void |
reload(WURFLResource root,
WURFLResource... patches)
|
void |
reload(WURFLResource root,
WURFLResources patches)
Reload WURFL data from given resources. |
void |
setCacheProvider(CacheProvider cacheProvider)
|
void |
setCapabilitiesHolderFactory(CapabilitiesHolderFactory capabilitiesHolderFactory)
|
void |
setDeviceProvider(DeviceProvider deviceProvider)
|
void |
setEngineTarget(EngineTarget target)
|
void |
setMarkupResolver(MarkupResolver markupResolver)
|
void |
setUserAgentNormalizerFactory(UserAgentNormalizerFactory userAgentNormalizerFactory)
|
void |
setUserAgentResolver(UserAgentResolver userAgentResolver)
|
void |
setWurflRequestFactory(WURFLRequestFactory wurflRequestFactory)
|
| Methods inherited from class com.scientiamobile.reloader.AbstractReloadableWURFLEngine |
|---|
createNotNullWURFLResources, createResource, createResources |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeneralWURFLEngine(String root)
public GeneralWURFLEngine(WURFLResource root)
root -
public GeneralWURFLEngine(String rootPath,
String... patchesPath)
public GeneralWURFLEngine(WURFLResource root,
WURFLResource... patches)
root - patches -
public GeneralWURFLEngine(WURFLResource root,
WURFLResources patches)
root - patches - | Method Detail |
|---|
public void reload(String rootPath)
reload in interface ReloadableWURFLEnginepublic void applyPatches(String... patchesPath)
applyPatches in interface ReloadableWURFLEnginepublic void applyPatches(WURFLResource... patches)
applyPatches in interface ReloadableWURFLEnginepublic void applyPatches(WURFLResources patches)
applyPatches in interface ReloadableWURFLEngine
public void reload(String rootPath,
String[] patchesPath)
ReloadableWURFLEngine
reload in interface ReloadableWURFLEnginerootPath - The WURFL main file path. Can't be null.patchesPath - The WURFL patches paths. Can be null.
public void reload(WURFLResource root,
WURFLResource... patches)
public void reload(WURFLResource root,
WURFLResources patches)
ReloadableWURFLEngine
reload in interface ReloadableWURFLEngineroot - The WURFL main file resource. Can't be null.patches - The WURFL patches resources. Can be null.public void setMarkupResolver(MarkupResolver markupResolver)
setMarkupResolver in interface CustomizableWURFLEnginepublic void setCapabilitiesHolderFactory(CapabilitiesHolderFactory capabilitiesHolderFactory)
setCapabilitiesHolderFactory in interface CustomizableWURFLEnginepublic void setWurflRequestFactory(WURFLRequestFactory wurflRequestFactory)
setWurflRequestFactory in interface CustomizableWURFLEnginepublic void setUserAgentNormalizerFactory(UserAgentNormalizerFactory userAgentNormalizerFactory)
setUserAgentNormalizerFactory in interface CustomizableWURFLEnginepublic void setUserAgentResolver(UserAgentResolver userAgentResolver)
setUserAgentResolver in interface CustomizableWURFLEnginepublic void setDeviceProvider(DeviceProvider deviceProvider)
setDeviceProvider in interface CustomizableWURFLEnginepublic void setCacheProvider(CacheProvider cacheProvider)
setCacheProvider in interface CustomizableWURFLEnginepublic final WURFLManager getWURFLManager()
getWURFLManager in interface WURFLHolderpublic final WURFLUtils getWURFLUtils()
WURFLHolder
getWURFLUtils in interface WURFLHolderpublic void init()
public Device getDeviceForRequest(javax.servlet.http.HttpServletRequest request)
WURFLManager
getDeviceForRequest in interface WURFLManagerrequest - The HttpServletRequest to match.public Device getDeviceForRequest(WURFLRequest request)
WURFLManager
getDeviceForRequest in interface WURFLManagerrequest - The WURFLRequest to match.public Device getDeviceForRequest(String userAgent)
WURFLManager
getDeviceForRequest in interface WURFLManageruserAgent - The user-agent String to match.public EngineTarget getEngineTarget()
WURFLManager
getEngineTarget in interface WURFLManagerpublic void setEngineTarget(EngineTarget target)
setEngineTarget in interface WURFLManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||