org.apache.jetspeed.capabilities.impl
Class ClientImpl

java.lang.Object
  extended by org.apache.jetspeed.capabilities.impl.ClientImpl
All Implemented Interfaces:
Serializable, org.apache.jetspeed.capabilities.Client

public class ClientImpl
extends Object
implements org.apache.jetspeed.capabilities.Client, Serializable

Simple implementation of the ClientRegistry interface.

Version:
$Id: ClientImpl.java 516448 2007-03-09 16:25:47Z ate $
Author:
Stephan Hesmer, Raphaël Luta, Roger Ruttimann
See Also:
Serialized Form

Field Summary
private  Collection capabilities
           
private  int clientId
           
private  int evalOrder
           
private  String manufacturer
           
private  Collection mimetypes
           
private  String model
           
private  String name
           
private  int preferredMimeTypeId
           
private  String userAgentPattern
           
private  String version
           
 
Constructor Summary
ClientImpl()
           
 
Method Summary
 boolean equals(Object object)
          Implements the equals operation so that 2 elements are equal if all their member values are equal.
 Collection getCapabilities()
           
 int getClientId()
          Get Client ID
 int getEvalOrder()
           
 String getManufacturer()
           
 Collection getMimetypes()
           
 String getModel()
           
 String getName()
           
 int getPreferredMimeTypeId()
           
 String getUserAgentPattern()
           
 String getVersion()
           
 void setCapabilities(Collection capabilities)
           
 void setClientId(int id)
          Set Client ID -- Assigns the Client ID
 void setEvalOrder(int evalOrder)
           
 void setManufacturer(String name)
           
 void setMimetypes(Collection mimetypes)
           
 void setModel(String name)
           
 void setName(String string)
           
 void setPreferredMimeTypeId(int mimeTypeId)
          Set preferred Mimetype ID for Client
 void setUserAgentPattern(String userAgentPattern)
           
 void setVersion(String name)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userAgentPattern

private String userAgentPattern

manufacturer

private String manufacturer

model

private String model

version

private String version

name

private String name

mimetypes

private Collection mimetypes

capabilities

private Collection capabilities

preferredMimeTypeId

private int preferredMimeTypeId

clientId

private int clientId

evalOrder

private int evalOrder
Constructor Detail

ClientImpl

public ClientImpl()
Method Detail

equals

public boolean equals(Object object)
Implements the equals operation so that 2 elements are equal if all their member values are equal.

Overrides:
equals in class Object

getUserAgentPattern

public String getUserAgentPattern()
Specified by:
getUserAgentPattern in interface org.apache.jetspeed.capabilities.Client

setUserAgentPattern

public void setUserAgentPattern(String userAgentPattern)
Specified by:
setUserAgentPattern in interface org.apache.jetspeed.capabilities.Client

getManufacturer

public String getManufacturer()
Specified by:
getManufacturer in interface org.apache.jetspeed.capabilities.Client

setManufacturer

public void setManufacturer(String name)
Specified by:
setManufacturer in interface org.apache.jetspeed.capabilities.Client

getModel

public String getModel()
Specified by:
getModel in interface org.apache.jetspeed.capabilities.Client

setModel

public void setModel(String name)
Specified by:
setModel in interface org.apache.jetspeed.capabilities.Client

getVersion

public String getVersion()
Specified by:
getVersion in interface org.apache.jetspeed.capabilities.Client

setVersion

public void setVersion(String name)
Specified by:
setVersion in interface org.apache.jetspeed.capabilities.Client

getMimetypes

public Collection getMimetypes()
Specified by:
getMimetypes in interface org.apache.jetspeed.capabilities.Client

setMimetypes

public void setMimetypes(Collection mimetypes)
Specified by:
setMimetypes in interface org.apache.jetspeed.capabilities.Client

getCapabilities

public Collection getCapabilities()
Specified by:
getCapabilities in interface org.apache.jetspeed.capabilities.Client

setCapabilities

public void setCapabilities(Collection capabilities)
Specified by:
setCapabilities in interface org.apache.jetspeed.capabilities.Client

setClientId

public void setClientId(int id)
Set Client ID -- Assigns the Client ID

Specified by:
setClientId in interface org.apache.jetspeed.capabilities.Client
Parameters:
id -

getClientId

public int getClientId()
Get Client ID

Specified by:
getClientId in interface org.apache.jetspeed.capabilities.Client
Returns:
Client ID

getName

public String getName()
Specified by:
getName in interface org.apache.jetspeed.capabilities.Client
Returns:

setName

public void setName(String string)
Specified by:
setName in interface org.apache.jetspeed.capabilities.Client
Parameters:
string -

getPreferredMimeTypeId

public int getPreferredMimeTypeId()
Specified by:
getPreferredMimeTypeId in interface org.apache.jetspeed.capabilities.Client
Returns:
Preferred MimeType ID for Client

setPreferredMimeTypeId

public void setPreferredMimeTypeId(int mimeTypeId)
Set preferred Mimetype ID for Client

Specified by:
setPreferredMimeTypeId in interface org.apache.jetspeed.capabilities.Client
Parameters:
mimeTypeId - MimeTypeId

getEvalOrder

public int getEvalOrder()
Specified by:
getEvalOrder in interface org.apache.jetspeed.capabilities.Client
Returns:
Returns the evalOrder.

setEvalOrder

public void setEvalOrder(int evalOrder)
Specified by:
setEvalOrder in interface org.apache.jetspeed.capabilities.Client
Parameters:
evalOrder - The evalOrder to set.


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.