|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.share.agent.HttpAgents
HttpAgents creates Agent objects based on the "user-agent" HTTP header.
Field Summary | |
static java.lang.String |
AGENT_PARAM
URL parameter constant signifying that a serialized agent is present on an URL, and thus, importAgent should
be called to instantiate it. |
Method Summary | |
static Agent |
getAgent(javax.servlet.http.HttpServletRequest request)
Returns an agent based on an HttpServletRequest object. |
static Agent |
getAgent(int type,
int application,
java.lang.String version,
int os)
Returns an Agent based on fully specified metadata. |
static Agent |
getAgent(java.lang.String userAgent,
java.lang.String accept)
Returns an agent based on a user agent and accept string. |
static Agent |
getUnknownAgent()
Returns an agent that can be used for the entirely "unknown" case. |
static Agent |
importAgent(java.lang.String agentString)
Coverts a String created by exportAgent back into
an Agent |
static Agent |
mergeCapabilities(Agent agent,
java.lang.Object[] capabilities)
Creates a new Agent with a different set of capabilities than the base. |
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 AGENT_PARAM
importAgent
should
be called to instantiate it.Method Detail |
public static Agent importAgent(java.lang.String agentString)
exportAgent
back into
an Agentpublic static Agent getAgent(javax.servlet.http.HttpServletRequest request)
public static Agent getAgent(java.lang.String userAgent, java.lang.String accept)
public static Agent getAgent(int type, int application, java.lang.String version, int os)
public static Agent mergeCapabilities(Agent agent, java.lang.Object[] capabilities)
agent
- an Agent object created by HttpAgentscapabilities
- an array of capability objects, alternating
capability keys with capability values.public static Agent getUnknownAgent()
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |