org.apache.jetspeed.portal
Interface Client


public interface Client

The Client class represents the client device that the user connects to the portal with. The client can describe a browser (eg. Netscape or Internet Explorer) or a device (eg. Nokia 7110).


Inner Class Summary
static class Client.Mode
           
 
Method Summary
 java.lang.String getManufacturer()
          Returns the name of the manufacturer of this client.
 java.lang.String getModel()
          Returns the name of the model of this client.
 java.lang.String getUserAgent()
          Returns the exact user agent that this client uses to connect to the portal.
 java.lang.String getVersion()
          Returns the version of the model of this client.
 boolean isCapableOf(Capability aCapability)
          Returns whether this client has the given capability.
 boolean isCapableOf(Capability[] aCapabilities)
          Returns whether this client has the given capabilities.
 

Method Detail

getManufacturer

public java.lang.String getManufacturer()
Returns the name of the manufacturer of this client.
Returns:
the manufacturer

getModel

public java.lang.String getModel()
Returns the name of the model of this client.
Returns:
the model

getVersion

public java.lang.String getVersion()
Returns the version of the model of this client.
Returns:
the version

getUserAgent

public java.lang.String getUserAgent()
Returns the exact user agent that this client uses to connect to the portal.
Returns:
the user agent

isCapableOf

public boolean isCapableOf(Capability aCapability)
Returns whether this client has the given capability.
Returns:
true if the client has the given capability
false otherwise

isCapableOf

public boolean isCapableOf(Capability[] aCapabilities)
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.
Returns:
true if the client has the given capability
false otherwise