Package io.restassured.common.mapper
Interface ObjectDeserializationContext
- All Known Implementing Classes:
ObjectDeserializationContextImpl
public interface ObjectDeserializationContext
Class containing details needed for deserializing a response to a Java class.
-
Method Summary
Modifier and TypeMethodDescriptionIf a charset is specified in the content-type then this method will return that charset otherwise it'll return the default content charset specified in the REST Assured configuration.getType()
-
Method Details
-
getDataToDeserialize
DataToDeserialize getDataToDeserialize()- Returns:
- The data that should be deserialized to a Java object.
-
getType
Type getType()- Returns:
- The expected type of the object to deserialize
-
getCharset
String getCharset()If a charset is specified in the content-type then this method will return that charset otherwise it'll return the default content charset specified in the REST Assured configuration.- Returns:
- The charset.
-