|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.sf.jportlet.impl.ClientImpl
Implementation of PortletConfig.
This implementation supports only:
| Field Summary | |
static java.lang.String |
CLIENT_KEY
Key for accessing the current Client from the HttpServletRequest |
static java.lang.String |
LYNX
|
static java.lang.String |
MOZILLA
|
static java.lang.String |
MSIE
|
static java.lang.String |
OPERA
|
| Constructor Summary | |
ClientImpl()
|
|
| Method Summary | |
static net.sf.jportlet.portlet.Client |
getClient(javax.servlet.http.HttpServletRequest request)
Returns the information of the current client for the current request |
java.lang.String |
getManufacturer()
Returns the name of the manufacturer of this client, or null
if the name is not available |
Portlet.Markup |
getMarkup()
Returns the preferred markup name that this client device supports |
java.lang.String |
getMimeType()
Return the prefered mimeType of the client device |
java.lang.String |
getModel()
Returns the name of the model of this client, or null if
the name is not available |
java.lang.String |
getUserAgent()
Returns the exact user agent that this client uses to identify itself to the portal |
java.lang.String |
getVersion()
Returns the version of the model of this client, or null
if the version is not available |
void |
setUserAgent(java.lang.String userAgent)
|
java.lang.String |
toString()
|
| 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 LYNX
public static final java.lang.String MOZILLA
public static final java.lang.String MSIE
public static final java.lang.String OPERA
public static final java.lang.String CLIENT_KEY
Client from the HttpServletRequest
| Constructor Detail |
public ClientImpl()
| Method Detail |
public static net.sf.jportlet.portlet.Client getClient(javax.servlet.http.HttpServletRequest request)
request - Http Request
public java.lang.String getManufacturer()
Clientnull
if the name is not available
getManufacturer in interface ClientClient.getManufacturer()public Portlet.Markup getMarkup()
Client
getMarkup in interface Clientnet.sf.jportlet.portlet.Client#getMarkupName()public java.lang.String getMimeType()
Client
getMimeType in interface ClientClient.getMimeType()public java.lang.String getModel()
Clientnull if
the name is not available
getModel in interface ClientClient.getModel()public java.lang.String getUserAgent()
Client
getUserAgent in interface ClientClient.getUserAgent()public java.lang.String getVersion()
Clientnull
if the version is not available
getVersion in interface ClientClient.getVersion()public void setUserAgent(java.lang.String userAgent)
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||