Package org.infinispan.encoding
Class DataConversion
- java.lang.Object
-
- org.infinispan.encoding.DataConversion
-
public final class DataConversion extends Object
Handle conversions for Keys or values.- Since:
- 9.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataConversion.Externalizer
-
Field Summary
Fields Modifier and Type Field Description static DataConversion
DEFAULT_KEY
static DataConversion
DEFAULT_VALUE
static DataConversion
IDENTITY_KEY
static DataConversion
IDENTITY_VALUE
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_KEY
public static final DataConversion DEFAULT_KEY
-
DEFAULT_VALUE
public static final DataConversion DEFAULT_VALUE
-
IDENTITY_KEY
public static final DataConversion IDENTITY_KEY
-
IDENTITY_VALUE
public static final DataConversion IDENTITY_VALUE
-
-
Method Detail
-
withRequestMediaType
public DataConversion withRequestMediaType(MediaType requestMediaType)
-
withEncoding
public DataConversion withEncoding(Class<? extends Encoder> encoderClass)
-
withWrapping
public DataConversion withWrapping(Class<? extends Wrapper> wrapperClass)
-
overrideWrapper
public void overrideWrapper(Class<? extends Wrapper> newWrapper, ComponentRegistry cr)
-
isConversionSupported
public boolean isConversionSupported(MediaType mediaType)
-
injectDependencies
public void injectDependencies(GlobalConfiguration gcr, EncoderRegistry encoderRegistry, Configuration configuration)
-
getRequestMediaType
public MediaType getRequestMediaType()
-
getStorageMediaType
public MediaType getStorageMediaType()
-
getEncoder
public Encoder getEncoder()
-
getWrapper
public Wrapper getWrapper()
-
isStorageFormatFilterable
public boolean isStorageFormatFilterable()
-
newKeyDataConversion
public static DataConversion newKeyDataConversion(Class<? extends Encoder> encoderClass, Class<? extends Wrapper> wrapperClass, MediaType storageType)
-
newValueDataConversion
public static DataConversion newValueDataConversion(Class<? extends Encoder> encoderClass, Class<? extends Wrapper> wrapperClass, MediaType storageType)
-
writeTo
public static void writeTo(ObjectOutput output, DataConversion dataConversion) throws IOException
- Throws:
IOException
-
readFrom
public static DataConversion readFrom(ObjectInput input) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
-