org.apache.jetspeed.capability
Class CapabilityMapFactory

java.lang.Object
  extended byorg.apache.jetspeed.capability.CapabilityMapFactory

public class CapabilityMapFactory
extends java.lang.Object

This class describes various browsers capabilities and provides the ability to query them. FIXME: the implementation should change to be configuration file based and handle more browsers.

Version:
$Id: CapabilityMapFactory.java,v 1.16 2005/03/21 18:21:35 sgala Exp $
Author:
Raphaël Luta

Field Summary
static java.lang.String AGENT_XML
           
static java.lang.String DEFAULT_AGENT
           
 
Constructor Summary
CapabilityMapFactory()
           
 
Method Summary
static CapabilityMap getCapabilityMap(org.apache.turbine.util.RunData rundata)
          Returns the map corresponding to the given RunData.
static CapabilityMap getCapabilityMap(java.lang.String useragent)
          Returns the map corresponding to the given user-agent
static CapabilityMap getDefaultCapabilityMap()
          Returns the map corresponding to the given user-agent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_AGENT

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

AGENT_XML

public static final java.lang.String AGENT_XML
See Also:
Constant Field Values
Constructor Detail

CapabilityMapFactory

public CapabilityMapFactory()
Method Detail

getCapabilityMap

public static CapabilityMap getCapabilityMap(org.apache.turbine.util.RunData rundata)
Returns the map corresponding to the given RunData. FIXME: the method will be changed to use a Jetspeed specific request wrapper

Parameters:
rundata - the request RunData
Returns:
the map correspondin to the user-agent described in the RunData

getCapabilityMap

public static CapabilityMap getCapabilityMap(java.lang.String useragent)
Returns the map corresponding to the given user-agent

Parameters:
useragent - a user-agent string in the HTTP User-agent format
Returns:
the map corresponding to the user-agent

getDefaultCapabilityMap

public static CapabilityMap getDefaultCapabilityMap()
Returns the map corresponding to the given user-agent

Returns:
the map corresponding to the user-agent


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.