public static class Http.RequestBody
extends java.lang.Object
Constructor and Description |
---|
RequestBody() |
Modifier and Type | Method and Description |
---|---|
<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.
|
com.fasterxml.jackson.databind.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()
Deprecated.
Since Play 2.4, this method always returns false. When the max size is exceeded, a 413 error is
returned
|
@Deprecated public boolean isMaxSizeExceeded()
public Http.MultipartFormData asMultipartFormData()
public java.util.Map<java.lang.String,java.lang.String[]> asFormUrlEncoded()
public Http.RawBuffer asRaw()
public java.lang.String asText()
public org.w3c.dom.Document asXml()
public com.fasterxml.jackson.databind.JsonNode asJson()
public <T> T as(java.lang.Class<T> tType)