Class StringConverter
java.lang.Object
com.contentgrid.opa.client.rest.client.jdk.converter.StringConverter
- All Implemented Interfaces:
HttpBodyConverter
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.contentgrid.opa.client.rest.client.jdk.converter.HttpBodyConverter
HttpBodyConverter.DeserializationContext, HttpBodyConverter.SerializationContext -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor that uses"ISO-8859-1"as default character set.StringConverter(Charset defaultCharset) A constructor accepting a default charset to use if the requested content type does not specify one. -
Method Summary
Modifier and TypeMethodDescription<T> booleancanRead(HttpBodyConverter.DeserializationContext context, Class<T> type) boolean<T> Tread(HttpBodyConverter.DeserializationContext context, Class<T> type) byte[]Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.contentgrid.opa.client.rest.client.jdk.converter.HttpBodyConverter
supportsMediaType
-
Constructor Details
-
StringConverter
public StringConverter()Default constructor that uses"ISO-8859-1"as default character set. This is specified as the default for text/* by RFC2616- See Also:
-
StringConverter
A constructor accepting a default charset to use if the requested content type does not specify one.
-
-
Method Details
-
canRead
- Specified by:
canReadin interfaceHttpBodyConverter
-
read
- Specified by:
readin interfaceHttpBodyConverter
-
canWrite
- Specified by:
canWritein interfaceHttpBodyConverter
-
write
- Specified by:
writein interfaceHttpBodyConverter
-
getSupportedMediaTypes
- Specified by:
getSupportedMediaTypesin interfaceHttpBodyConverter
-