com.cafesoft.cams.auth.callback
Class MapCallback

java.lang.Object
  extended by com.cafesoft.cams.auth.callback.MapCallback
All Implemented Interfaces:
Callback

public class MapCallback
extends Object
implements Callback

MapCallback provides access to callback values stored as a Map of name/value pairs. Callback values are stored in String representation.

Since:
09/23/2008

Constructor Summary
MapCallback()
          Create a new MapCallback.
 
Method Summary
 String getCallbackValue(String name)
          Get a Callback value by name.
 Map getCallbackValueMap()
          Get all Callback values as a Map.
 void setCallbackValue(String name, String value)
          Set a Callback value by name.
 void setCallbackValues(Map srcMap)
          Set Callback values from the contents of another Map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapCallback

public MapCallback()
Create a new MapCallback.

Method Detail

setCallbackValue

public void setCallbackValue(String name,
                             String value)
Set a Callback value by name.

Parameters:
name - the name associated with the Callback value.
value - the Callback value (in String representation).

setCallbackValues

public void setCallbackValues(Map srcMap)
Set Callback values from the contents of another Map.

Parameters:
srcMap - the source Map containing the Callback name/value pairs to be copied.

getCallbackValue

public String getCallbackValue(String name)
Get a Callback value by name.

Parameters:
name - the name associated with the Callback value.
Returns:
the Callback value (in String representation) or null if a value does not exist.

getCallbackValueMap

public Map getCallbackValueMap()
Get all Callback values as a Map.

Returns:
a new Map of Callback values copied from the internal Map.


Generated on 10:38:35 AM April 14, 2011, © 1996-2010 Cafésoft LLC. All rights reserved.