play.mvc
Class Http.RequestBody

java.lang.Object
  extended by play.mvc.Http.RequestBody
Enclosing class:
Http

public static class Http.RequestBody
extends java.lang.Object

The request body.


Constructor Summary
Http.RequestBody()
           
 
Method Summary
<T> T
as(java.lang.Class<T> tType)
          Cast this RequestBody as T if possible.
 java.util.Map<java.lang.String,java.lang.String[]> asFormUrlEncoded()
          The request content parsed as URL form-encoded.
 org.codehaus.jackson.JsonNode asJson()
          The request content as Json.
 Http.MultipartFormData asMultipartFormData()
          The request content parsed as multipart form data.
 Http.RawBuffer asRaw()
          The request content as Array bytes.
 java.lang.String asText()
          The request content as text.
 org.w3c.dom.Document asXml()
          The request content as XML.
 boolean isMaxSizeExceeded()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Http.RequestBody

public Http.RequestBody()
Method Detail

isMaxSizeExceeded

public boolean isMaxSizeExceeded()

asMultipartFormData

public Http.MultipartFormData asMultipartFormData()
The request content parsed as multipart form data.


asFormUrlEncoded

public java.util.Map<java.lang.String,java.lang.String[]> asFormUrlEncoded()
The request content parsed as URL form-encoded.


asRaw

public Http.RawBuffer asRaw()
The request content as Array bytes.


asText

public java.lang.String asText()
The request content as text.


asXml

public org.w3c.dom.Document asXml()
The request content as XML.


asJson

public org.codehaus.jackson.JsonNode asJson()
The request content as Json.


as

public <T> T as(java.lang.Class<T> tType)
Cast this RequestBody as T if possible.