org.atmosphere.util
Class AtmosphereConfigReader

java.lang.Object
  extended by org.atmosphere.util.AtmosphereConfigReader

public class AtmosphereConfigReader
extends Object

Descriptor for an Atmosphere configuraton file.

Author:
Jerome Dochez (for the version shipped in GlassFish v3)., Jeanfrancois Arcand

Nested Class Summary
 class AtmosphereConfigReader.Property
          Simple Structn representing a element/value.
 
Constructor Summary
AtmosphereConfigReader(InputStream stream)
          Create a Dom element from META-INF/atmosphere.xml
 
Method Summary
 Map<String,String> getAtmosphereHandlers()
          Return a Map which contains the context-oath as a key with its associated AtmosphereHandler, loaded from META-INF/atmosphere.xml
 String getBroadcasterClass(String contextRoot)
          Return a Broadcaster, or null.
 String getCometSupportClass()
          Return the CometSupport implementation
 ArrayList<AtmosphereConfigReader.Property> getProperty(String className)
          Return the properties to be set on AtmosphereHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtmosphereConfigReader

public AtmosphereConfigReader(InputStream stream)
Create a Dom element from META-INF/atmosphere.xml

Parameters:
stream -
Method Detail

getAtmosphereHandlers

public Map<String,String> getAtmosphereHandlers()
Return a Map which contains the context-oath as a key with its associated AtmosphereHandler, loaded from META-INF/atmosphere.xml

Returns:

getBroadcasterClass

public String getBroadcasterClass(String contextRoot)
Return a Broadcaster, or null.


getProperty

public ArrayList<AtmosphereConfigReader.Property> getProperty(String className)
Return the properties to be set on AtmosphereHandler

Returns:
An ArrayList containing the properties to be set on a AtmosphereHandler

getCometSupportClass

public String getCometSupportClass()
Return the CometSupport implementation



Copyright © 2009 SUN Microsystems. All Rights Reserved.