Package com.restfb
Klasse Body
java.lang.Object
com.restfb.Body
The POST body class. It uses the RestFB JsonMapper to convert a object to json String.
You can use your custom mapper to modify the mapping.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetData()
returns the Body data as Stringstatic Body
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
-
Methodendetails
-
getData
returns the Body data as String- Gibt zurück:
- the body data
-
withData
build a new body object instance with the given data as immutable inner data- Parameter:
data
- the data is internally converted into a String using the JsonMapper- Gibt zurück:
- the Body instance
-
withData
build a new body object instance with the given data as immutable inner data- Parameter:
data
- the data is internally converted into a String using the provided JsonMapperjsonMapper
- the custom JsonMapper used for the Object to String conversion- Gibt zurück:
- the Body instance
-