Package io.restassured.internal.common
Class ObjectDeserializationContextImpl
java.lang.Object
io.restassured.internal.common.ObjectDeserializationContextImpl
- All Implemented Interfaces:
ObjectDeserializationContext
public class ObjectDeserializationContextImpl
extends Object
implements ObjectDeserializationContext
-
Constructor Summary
ConstructorsConstructorDescriptionObjectDeserializationContextImpl(DataToDeserialize dataToDeserialize, Type type, String charset) -
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()voidsetCharset(String charset) voidsetDataToDeserialize(DataToDeserialize dataToDeserialize) void
-
Constructor Details
-
ObjectDeserializationContextImpl
public ObjectDeserializationContextImpl() -
ObjectDeserializationContextImpl
public ObjectDeserializationContextImpl(DataToDeserialize dataToDeserialize, Type type, String charset)
-
-
Method Details
-
getDataToDeserialize
- Specified by:
getDataToDeserializein interfaceObjectDeserializationContext- Returns:
- The data that should be deserialized to a Java object.
-
getType
- Specified by:
getTypein interfaceObjectDeserializationContext- Returns:
- The expected type of the object to deserialize
-
getCharset
Description copied from interface:ObjectDeserializationContextIf 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.- Specified by:
getCharsetin interfaceObjectDeserializationContext- Returns:
- The charset.
-
setDataToDeserialize
-
setType
-
setCharset
-