net.sf.jbaobab.tutorial
Class RoughHttpHelper
java.lang.Object
net.sf.jbaobab.tutorial.RoughHttpHelper
public class RoughHttpHelper
- extends Object
A helper class for RoughHttpHandler
.
- Author:
- Oakyoon Cha
- See Also:
RoughHttpHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
validateCommand
public static void validateCommand(RoughHttpPacket packet)
urlDecode
public static String urlDecode(String str)
trimParams
public static String trimParams(String uri)
fileContent
public static ByteBuffer fileContent(String path)
fileExtension
public static String fileExtension(String path)
mimeType
public static String mimeType(String ext)
errorPage
public static String errorPage(Integer code,
String description)