org.atmosphere.util
Class IOUtils

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

public class IOUtils
extends Object


Constructor Summary
IOUtils()
           
 
Method Summary
static String getCleanedServletPath(String fullServletPath)
          Used to remove trailing slash and wildcard from a servlet path.

Examples :
- "/foo/" becomes "/foo"
- "foo/bar" becomes "/foo/bar"
static String guestServletPath(AtmosphereConfig config)
           
static boolean isAtmosphere(String className)
           
static boolean isBodyBinary(AtmosphereRequest request)
           
static boolean isBodyEmpty(Object o)
           
static Class<?> loadClass(Class thisClass, String className)
           
static Object readEntirely(AtmosphereResource r)
           
static byte[] readEntirelyAsByte(AtmosphereResource r)
           
static StringBuilder readEntirelyAsString(AtmosphereResource r)
           
static List<String> readServiceFile(String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtils

public IOUtils()
Method Detail

readEntirely

public static Object readEntirely(AtmosphereResource r)

isBodyBinary

public static final boolean isBodyBinary(AtmosphereRequest request)

isBodyEmpty

public static final boolean isBodyEmpty(Object o)

readEntirelyAsString

public static StringBuilder readEntirelyAsString(AtmosphereResource r)

readEntirelyAsByte

public static byte[] readEntirelyAsByte(AtmosphereResource r)

guestServletPath

public static String guestServletPath(AtmosphereConfig config)

getCleanedServletPath

public static String getCleanedServletPath(String fullServletPath)
Used to remove trailing slash and wildcard from a servlet path.

Examples :
- "/foo/" becomes "/foo"
- "foo/bar" becomes "/foo/bar"

Parameters:
fullServletPath - : Servlet mapping
Returns:
Servlet mapping without trailing slash and wildcard

loadClass

public static Class<?> loadClass(Class thisClass,
                                 String className)
                          throws Exception
Throws:
Exception

isAtmosphere

public static boolean isAtmosphere(String className)

readServiceFile

public static List<String> readServiceFile(String path)


Copyright © 2014. All Rights Reserved.