public final class DataConversion extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DataConversion.Externalizer |
Modifier and Type | Field and Description |
---|---|
static DataConversion |
DEFAULT_KEY
Deprecated.
Since 11.0. To be removed in 14.0, with no replacement.
|
static DataConversion |
DEFAULT_VALUE
Deprecated.
Since 11.0. To be removed in 14.0, with no replacement.
|
static DataConversion |
IDENTITY_KEY
Deprecated.
Since 11.0. To be removed in 14.0. For internal use only.
|
static DataConversion |
IDENTITY_VALUE
Deprecated.
Since 11.0. To be removed in 14.0. For internal use only.
|
Modifier and Type | Method and Description |
---|---|
Object |
convert(Object o,
MediaType from,
MediaType to)
Deprecated.
Since 11.0, with no replacement.
|
Object |
convertToRequestFormat(Object o,
MediaType contentType)
Deprecated.
Since 11.0, with no replacement.
|
boolean |
equals(Object o) |
Object |
extractIndexable(Object stored)
Convert the stored object in a format suitable to be indexed.
|
Object |
fromStorage(Object stored) |
Encoder |
getEncoder() |
Class<? extends Encoder> |
getEncoderClass() |
MediaType |
getRequestMediaType() |
MediaType |
getStorageMediaType() |
Wrapper |
getWrapper()
Deprecated.
Since 11.0. To be removed in 14.0, with no replacement.
|
Class<? extends Wrapper> |
getWrapperClass()
Deprecated.
Since 11.0. To be removed in 14.0, with no replacement.
|
int |
hashCode() |
boolean |
isConversionSupported(MediaType mediaType)
Deprecated.
Since 11.0, with no replacement.
|
static DataConversion |
newKeyDataConversion() |
static DataConversion |
newKeyDataConversion(Class<? extends Encoder> encoderClass,
Class<? extends Wrapper> wrapperClass)
Deprecated.
Since 11.0. To be removed in 14.0. Replaced by
newKeyDataConversion() . |
static DataConversion |
newValueDataConversion() |
static DataConversion |
newValueDataConversion(Class<? extends Encoder> encoderClass,
Class<? extends Wrapper> wrapperClass)
Deprecated.
Since 11.0. To be removed in 14.0. Replaced by
newValueDataConversion() . |
void |
overrideWrapper(Class<? extends Wrapper> newWrapper,
ComponentRegistry cr)
Deprecated.
Since 11.0, will be removed with no replacement
|
static DataConversion |
readFrom(ObjectInput input) |
Object |
toStorage(Object toStore) |
String |
toString() |
DataConversion |
withEncoding(Class<? extends Encoder> encoderClass) |
DataConversion |
withRequestMediaType(MediaType requestMediaType) |
DataConversion |
withWrapping(Class<? extends Wrapper> wrapperClass)
Deprecated.
Since 11.0. To be removed in 14.0, with no replacement.
|
static void |
writeTo(ObjectOutput output,
DataConversion dataConversion) |
@Deprecated public static final DataConversion DEFAULT_KEY
@Deprecated public static final DataConversion DEFAULT_VALUE
@Deprecated public static final DataConversion IDENTITY_KEY
@Deprecated public static final DataConversion IDENTITY_VALUE
public DataConversion withRequestMediaType(MediaType requestMediaType)
public DataConversion withEncoding(Class<? extends Encoder> encoderClass)
@Deprecated public DataConversion withWrapping(Class<? extends Wrapper> wrapperClass)
@Deprecated public void overrideWrapper(Class<? extends Wrapper> newWrapper, ComponentRegistry cr)
@Deprecated public boolean isConversionSupported(MediaType mediaType)
@Deprecated public Object convert(Object o, MediaType from, MediaType to)
@Deprecated public Object convertToRequestFormat(Object o, MediaType contentType)
public Object extractIndexable(Object stored)
public MediaType getRequestMediaType()
public MediaType getStorageMediaType()
public Encoder getEncoder()
@Deprecated public Wrapper getWrapper()
@Deprecated public Class<? extends Wrapper> getWrapperClass()
public static DataConversion newKeyDataConversion()
IdentityEncoder
and request type MediaType.APPLICATION_OBJECT
.public static DataConversion newValueDataConversion()
IdentityEncoder
and request type MediaType.APPLICATION_OBJECT
.@Deprecated public static DataConversion newKeyDataConversion(Class<? extends Encoder> encoderClass, Class<? extends Wrapper> wrapperClass)
newKeyDataConversion()
.@Deprecated public static DataConversion newValueDataConversion(Class<? extends Encoder> encoderClass, Class<? extends Wrapper> wrapperClass)
newValueDataConversion()
.public static void writeTo(ObjectOutput output, DataConversion dataConversion) throws IOException
IOException
public static DataConversion readFrom(ObjectInput input) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Copyright © 2021 JBoss by Red Hat. All rights reserved.