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 DocumentBuilderFactory 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 contextRoot)
          Return the properties to be set on AtmosphereHandler
 String supportSession()
          True if the support-session added in atmosphere.xml
 
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 DocumentBuilderFactory element from META-INF/atmosphere.xml

Parameters:
stream -
Method Detail

supportSession

public String supportSession()
True if the support-session added in atmosphere.xml

Returns:

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 contextRoot)
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 © 2010 SUN Microsystems. All Rights Reserved.