AeroGear SimplePush Server Netty 0.11.0

org.jboss.aerogear.simplepush.server.netty.standalone
Class ConfigReader

java.lang.Object
  extended by org.jboss.aerogear.simplepush.server.netty.standalone.ConfigReader

public class ConfigReader
extends Object

Utility to read a JSON config files.


Method Summary
static StandaloneConfig parse(InputStream in)
          Will parse the passed InputStream into a StandaloneConfig instance.
static StandaloneConfig parse(String fileName)
          Will parse the passed in file, which can either be a file on the file system or a file on the classpath into a StandaloneConfig instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static StandaloneConfig parse(String fileName)
                              throws Exception
Will parse the passed in file, which can either be a file on the file system or a file on the classpath into a StandaloneConfig instance.

Parameters:
fileName - the name of a file on the file system or on the classpath.
Returns:
StandaloneConfig populated with the values in the JSON configuration file.
Throws:
Exception

parse

public static StandaloneConfig parse(InputStream in)
Will parse the passed InputStream into a StandaloneConfig instance.

Parameters:
in - the input stream to parse. Should be from a JSON source representing a SimplePush configuration.
Returns:
StandaloneConfig populated with the values in the JSON input stream.

AeroGear SimplePush Server Netty 0.11.0

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.