All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.customobjects.queries.CustomObjectCustomJsonMappingByKeyGet Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.customobjects.queries;

import io.sphere.sdk.customobjects.CustomObject;
import io.sphere.sdk.queries.Get;

/**
 * {@link io.sphere.sdk.client.SphereRequest} to fetch one {@link io.sphere.sdk.customobjects.CustomObject} by container and key but using a custom JSON mapper instead of the SDK default one.
 *
 * 

Example for an implementation with Google GSON (multiple code snippets):

* *

The class of the custom object value:

* {@include.example io.sphere.sdk.customobjects.demo.GsonFoo} * *

The class including the wrapper custom object:

* {@include.example io.sphere.sdk.customobjects.demo.GsonFooCustomObject} * *

The implementation of the getter:

* {@include.example io.sphere.sdk.customobjects.demo.GsonFooCustomObjectByKeyGet} * *

An execution example:

* {@include.example io.sphere.sdk.customobjects.queries.CustomObjectCustomJsonMappingByKeyGetIntegrationTest#execution()} * @param The type of the value of the custom object. * @see CustomObject */ public abstract class CustomObjectCustomJsonMappingByKeyGet extends CustomObjectCustomJsonMappingByXGet implements Get> { public CustomObjectCustomJsonMappingByKeyGet(final String container, final String key) { super("/" + container + "/" + key); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy