|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.wurfl.core.request.DefaultWURFLRequest
public class DefaultWURFLRequest
WURFLRequest default implementation.
| Constructor Summary | |
|---|---|
DefaultWURFLRequest(String userAgent)
|
|
DefaultWURFLRequest(String userAgent,
String userAgentProfile)
Constructor by user-agent, UAProf, and xhtml support |
|
DefaultWURFLRequest(String userAgent,
String userAgentProfile,
Map<String,String> headers)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
String |
getHeader(String headerName)
|
Map<String,String> |
getHeaders()
|
String |
getUserAgent()
Return the requester user-agent. |
String |
getUserAgentProfile()
Return the requester UAProf URL. |
int |
hashCode()
|
boolean |
isBot()
Says if this request comes from a bot. |
boolean |
isDesktopBrowser()
Says if this request is supposed to come from a desktop browser. |
boolean |
isDesktopBrowserHeavyDutyAnalysis()
Says if this request comes from a desktop browser. |
boolean |
isMobileBrowser()
Says if this request comes from a mobile browser. |
boolean |
isSmartTvBrowser()
Says if this request comes from a SmartTV. |
boolean |
mobileKeywordsDetected()
|
boolean |
screenSizeDetected()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultWURFLRequest(String userAgent)
public DefaultWURFLRequest(String userAgent,
String userAgentProfile)
userAgent - The requester device user-agent.userAgentProfile - The UAProf URL, can be null
public DefaultWURFLRequest(String userAgent,
String userAgentProfile,
Map<String,String> headers)
| Method Detail |
|---|
public String getUserAgent()
getUserAgent in interface WURFLRequestpublic String getUserAgentProfile()
getUserAgentProfile in interface WURFLRequestpublic String getHeader(String headerName)
getHeader in interface WURFLRequestpublic Map<String,String> getHeaders()
getHeaders in interface WURFLRequestpublic boolean isMobileBrowser()
WURFLRequest
isMobileBrowser in interface WURFLRequestpublic boolean mobileKeywordsDetected()
public boolean screenSizeDetected()
public boolean isDesktopBrowser()
WURFLRequest
isDesktopBrowser in interface WURFLRequestpublic boolean isDesktopBrowserHeavyDutyAnalysis()
WURFLRequest
isDesktopBrowserHeavyDutyAnalysis in interface WURFLRequestpublic boolean isSmartTvBrowser()
WURFLRequest
isSmartTvBrowser in interface WURFLRequestpublic boolean isBot()
WURFLRequest
isBot in interface WURFLRequestpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||