Class DatastoreKeyIdConverter
java.lang.Object
com.google.cloud.spring.autoconfigure.datastore.DatastoreKeyIdConverter
- All Implemented Interfaces:
org.springframework.data.rest.webmvc.spi.BackendIdConverter
,org.springframework.plugin.core.Plugin<Class<?>>
public class DatastoreKeyIdConverter
extends Object
implements org.springframework.data.rest.webmvc.spi.BackendIdConverter
A key converter that parses Key JSON from REST requests.
- Since:
- 1.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.rest.webmvc.spi.BackendIdConverter
org.springframework.data.rest.webmvc.spi.BackendIdConverter.DefaultIdConverter
-
Constructor Summary
ConstructorDescriptionDatastoreKeyIdConverter
(DatastoreMappingContext datastoreMappingContext) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfromRequestId
(String s, Class<?> clazz) boolean
toRequestId
(Serializable serializable, Class<?> clazz)
-
Constructor Details
-
DatastoreKeyIdConverter
Constructor.- Parameters:
datastoreMappingContext
- the mapping context.
-
-
Method Details
-
fromRequestId
- Specified by:
fromRequestId
in interfaceorg.springframework.data.rest.webmvc.spi.BackendIdConverter
-
toRequestId
- Specified by:
toRequestId
in interfaceorg.springframework.data.rest.webmvc.spi.BackendIdConverter
-
supports
- Specified by:
supports
in interfaceorg.springframework.plugin.core.Plugin<Class<?>>
-