io.joshworks.restclient.http.mapper.TextPlainMapper Maven / Gradle / Ivy
package io.joshworks.restclient.http.mapper;
public class TextPlainMapper implements ObjectMapper {
@Override
public T readValue(String value, Class valueType) {
throw new UnsupportedOperationException("Cannot convert text content to type: " + valueType.getSimpleName());
}
@Override
public String writeValue(Object value) {
return String.valueOf(value);
}
}