| java.lang.Object org.gridsphere.portletcontainer.impl.ClientImpl
ClientImpl | public class ClientImpl implements Client,Serializable(Code) | | The ClientImpl class represents the client device that the user
connects to the portal with. It defines methods to obtain information about
clients, e.g. browsers running on PCs, WAP phones, PDAs etc.
|
Method Summary | |
public String | getManufacturer() Returns the name of the manufacturer of this client, or
null if the name is not available. | public String | getMarkupName() Returns the preferred markup name that this client device supports. | public String | getMimeType() Returns the preferred mime-type that this client device supports. | public String | getModel() Returns the name of the model of this client, or null
if the name is not available. | public String | getUserAgent() Returns the exact user agent that this client uses to identify
itself to the portal. | public String | getVersion() Returns the version of the model of this client, or null
if the version is not available. | public String | toString() |
MANUFACTURER_NAMES | final public static String[] MANUFACTURER_NAMES(Code) | | |
WAP_IDENTIFIER | final public static String[] WAP_IDENTIFIER(Code) | | |
ClientImpl | public ClientImpl(HttpServletRequest req)(Code) | | Constructs an instance of ClientImpl from a servlet request
Parameters: req - an HttpServletRequest |
getManufacturer | public String getManufacturer()(Code) | | Returns the name of the manufacturer of this client, or
null if the name is not available.
the manufacturer |
getMarkupName | public String getMarkupName()(Code) | | Returns the preferred markup name that this client device supports.
the name of the markup |
getMimeType | public String getMimeType()(Code) | | Returns the preferred mime-type that this client device supports.
the mime-type |
getModel | public String getModel()(Code) | | Returns the name of the model of this client, or null
if the name is not available.
the model |
getUserAgent | public String getUserAgent()(Code) | | Returns the exact user agent that this client uses to identify
itself to the portal. If the client does not send a user agent,
this method returns null
the user agent |
getVersion | public String getVersion()(Code) | | Returns the version of the model of this client, or null
if the version is not available.
the version |
toString | public String toString()(Code) | | Return a String representation of the Client
a String representation of the Client |
|
|