play.data.parsing
Class DataParser

java.lang.Object
  extended by play.data.parsing.DataParser
Direct Known Subclasses:
ApacheMultipartParser, JsonParser, UrlEncodedParser

public abstract class DataParser
extends java.lang.Object

A data parser parse the HTTP request data to a Map


Field Summary
static java.util.Map<java.lang.String,DataParser> parsers
           
 
Constructor Summary
DataParser()
           
 
Method Summary
abstract  java.util.Map<java.lang.String,java.lang.String[]> parse(java.io.InputStream is)
           
static void putMapEntry(java.util.Map<java.lang.String,java.lang.String[]> map, java.lang.String name, java.lang.String value)
           
static java.util.Map<java.lang.String,java.lang.String[]> resolveAndParse(Http.Request request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parsers

public static java.util.Map<java.lang.String,DataParser> parsers
Constructor Detail

DataParser

public DataParser()
Method Detail

resolveAndParse

public static java.util.Map<java.lang.String,java.lang.String[]> resolveAndParse(Http.Request request)
                                                                          throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

parse

public abstract java.util.Map<java.lang.String,java.lang.String[]> parse(java.io.InputStream is)

putMapEntry

public static void putMapEntry(java.util.Map<java.lang.String,java.lang.String[]> map,
                               java.lang.String name,
                               java.lang.String value)


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly