net.sf.jportlet.impl
Class ClientImpl

java.lang.Object
  |
  +--net.sf.jportlet.impl.ClientImpl
All Implemented Interfaces:
Client

public class ClientImpl
extends java.lang.Object
implements Client

Implementation of PortletConfig. This implementation supports only:

Author:
Herve Tchepannou

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

LYNX

public static final java.lang.String LYNX
See Also:
Constant Field Values

MOZILLA

public static final java.lang.String MOZILLA
See Also:
Constant Field Values

MSIE

public static final java.lang.String MSIE
See Also:
Constant Field Values

OPERA

public static final java.lang.String OPERA
See Also:
Constant Field Values

CLIENT_KEY

public static final java.lang.String CLIENT_KEY
Key for accessing the current Client from the HttpServletRequest

See Also:
Constant Field Values
Constructor Detail

ClientImpl

public ClientImpl()
Method Detail

getClient

public static net.sf.jportlet.portlet.Client getClient(javax.servlet.http.HttpServletRequest request)
Returns the information of the current client for the current request

Parameters:
request - Http Request
Returns:
Client

getManufacturer

public java.lang.String getManufacturer()
Description copied from interface: Client
Returns the name of the manufacturer of this client, or null if the name is not available

Specified by:
getManufacturer in interface Client
Returns:
String
See Also:
Client.getManufacturer()

getMarkup

public Portlet.Markup getMarkup()
Description copied from interface: Client
Returns the preferred markup name that this client device supports

Specified by:
getMarkup in interface Client
Returns:
String
See Also:
net.sf.jportlet.portlet.Client#getMarkupName()

getMimeType

public java.lang.String getMimeType()
Description copied from interface: Client
Return the prefered mimeType of the client device

Specified by:
getMimeType in interface Client
Returns:
String
See Also:
Client.getMimeType()

getModel

public java.lang.String getModel()
Description copied from interface: Client
Returns the name of the model of this client, or null if the name is not available

Specified by:
getModel in interface Client
Returns:
String
See Also:
Client.getModel()

getUserAgent

public java.lang.String getUserAgent()
Description copied from interface: Client
Returns the exact user agent that this client uses to identify itself to the portal

Specified by:
getUserAgent in interface Client
Returns:
String
See Also:
Client.getUserAgent()

getVersion

public java.lang.String getVersion()
Description copied from interface: Client
Returns the version of the model of this client, or null if the version is not available

Specified by:
getVersion in interface Client
Returns:
String
See Also:
Client.getVersion()

setUserAgent

public void setUserAgent(java.lang.String userAgent)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2002 Herve Tchepannou. All Rights Reserved.