Package com.restfb
Class Body
- java.lang.Object
-
- com.restfb.Body
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getData()
returns the Body data as Stringstatic Body
withData(Object data)
build a new body object instance with the given data as immutable inner datastatic Body
withData(Object data, JsonMapper jsonMapper)
build a new body object instance with the given data as immutable inner data
-
-
-
Method Detail
-
withData
public static Body withData(Object data)
build a new body object instance with the given data as immutable inner data- Parameters:
data
- the data is internally converted into a String using the JsonMapper- Returns:
- the Body instance
-
withData
public static Body withData(Object data, JsonMapper jsonMapper)
build a new body object instance with the given data as immutable inner data- Parameters:
data
- the data is internally converted into a String using the provided JsonMapperjsonMapper
- the custom JsonMapper used for the Object to String conversion- Returns:
- the Body instance
-
-