org.apache.jetspeed.portlet
Interface Client

All Known Implementing Classes:
ClientWrapper

Deprecated. since 6.0. Support of the IBM portlet API may be removed in a future release of WebSphere Portal. Use of the Java Portlet API (javax.portlet) is recommended instead.

public interface Client

The Client interface 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 or on voice gateways.

Since:
4.1

Method Summary
 java.lang.String getManufacturer()
          Deprecated. Returns the name of the manufacturer of this client, or null if the name is not available.
 java.lang.String getMarkupName()
          Deprecated. Returns the preferred markup name that this client device supports.
 java.lang.String getMimeType()
          Deprecated. Returns the preferred mime-type that this client device supports.
 java.lang.String getModel()
          Deprecated. Returns the name of the model of this client, or null if the name is not available.
 java.lang.String getUserAgent()
          Deprecated. Returns the exact user agent that this client uses to identify itself to the portal.
 java.lang.String getVersion()
          Deprecated. Returns the version of the model of this client, or null if the version is not available.
 boolean isCapableOf(Capability capability)
          Deprecated. Returns whether this client has the given capability.
 boolean isCapableOf(Capability[] capabilities)
          Deprecated. Returns whether this client has the given capabilities.
 

Method Detail

getManufacturer

java.lang.String getManufacturer()
Deprecated. 
Returns the name of the manufacturer of this client, or null if the name is not available.

Returns:
the manufacturer

getModel

java.lang.String getModel()
Deprecated. 
Returns the name of the model of this client, or null if the name is not available.

Returns:
the model

getVersion

java.lang.String getVersion()
Deprecated. 
Returns the version of the model of this client, or null if the version is not available.

Returns:
the version

getUserAgent

java.lang.String getUserAgent()
Deprecated. 
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.

Returns:
the user agent

isCapableOf

boolean isCapableOf(Capability capability)
Deprecated. 
Returns whether this client has the given capability. If the portal does not know enough about the client, it has to be on the safe side and return false.

Parameters:
the - Capability to check
Returns:
true if the client has the given capability,
false otherwise
See Also:
isCapableOf(Capability[])

isCapableOf

boolean isCapableOf(Capability[] capabilities)
Deprecated. 
Returns whether this client has the given capabilities. The array of capability is tested in its entirety, ie. only if the client is capable of every single capability this methods returns true.

Parameters:
the - array of capabilities to check
Returns:
true if the client has the given capability,
false otherwise
See Also:
isCapableOf(Capability)

getMimeType

java.lang.String getMimeType()
Deprecated. 
Returns the preferred mime-type that this client device supports.

Returns:
the mime-type

getMarkupName

java.lang.String getMarkupName()
Deprecated. 
Returns the preferred markup name that this client device supports.

Returns:
the naem of the markup