/** * @return Content type resolver implementation to use. */ private JsonContentTypeResolver getContentTypeResolver() { if (isCborEnabled()) { return JsonContentTypeResolver.CBOR; } else if (isIonEnabled()) { return isIonBinaryEnabled() ? JsonContentTypeResolver.ION_BINARY : JsonContentTypeResolver.ION_TEXT; } else { return JsonContentTypeResolver.JSON; } }
/** * @return Instance of {@link SdkStructuredJsonFactory} to use in creating handlers. */ private SdkStructuredJsonFactory getSdkFactory() { if (isCborEnabled()) { return SdkStructuredCborFactory.SDK_CBOR_FACTORY; } else if (isIonEnabled()) { return isIonBinaryEnabled() ? SdkStructuredIonFactory.SDK_ION_BINARY_FACTORY : SdkStructuredIonFactory.SDK_ION_TEXT_FACTORY; } else { return SdkStructuredPlainJsonFactory.SDK_JSON_FACTORY; } }
/** * @return Content type resolver implementation to use. */ private JsonContentTypeResolver getContentTypeResolver() { if (isCborEnabled()) { return JsonContentTypeResolver.CBOR; } else if (isIonEnabled()) { return isIonBinaryEnabled() ? JsonContentTypeResolver.ION_BINARY : JsonContentTypeResolver.ION_TEXT; } else { return JsonContentTypeResolver.JSON; } }
/** * @return Instance of {@link SdkStructuredJsonFactory} to use in creating handlers. */ private SdkStructuredJsonFactory getSdkFactory() { if (isCborEnabled()) { return SdkStructuredCborFactory.SDK_CBOR_FACTORY; } else if (isIonEnabled()) { return isIonBinaryEnabled() ? SdkStructuredIonFactory.SDK_ION_BINARY_FACTORY : SdkStructuredIonFactory.SDK_ION_TEXT_FACTORY; } else { return SdkStructuredPlainJsonFactory.SDK_JSON_FACTORY; } }
/** * @return Instance of {@link SdkStructuredJsonFactory} to use in creating handlers. */ private SdkStructuredJsonFactory getSdkFactory() { if (isCborEnabled()) { return SdkStructuredCborFactory.SDK_CBOR_FACTORY; } else if (isIonEnabled()) { return isIonBinaryEnabled() ? SdkStructuredIonFactory.SDK_ION_BINARY_FACTORY : SdkStructuredIonFactory.SDK_ION_TEXT_FACTORY; } else { return SdkStructuredPlainJsonFactory.SDK_JSON_FACTORY; } }
/** * @return Content type resolver implementation to use. */ private JsonContentTypeResolver getContentTypeResolver() { if (isCborEnabled()) { return JsonContentTypeResolver.CBOR; } else if (isIonEnabled()) { return isIonBinaryEnabled() ? JsonContentTypeResolver.ION_BINARY : JsonContentTypeResolver.ION_TEXT; } else { return JsonContentTypeResolver.JSON; } }