List of usage examples for com.google.gson JsonNull INSTANCE
JsonNull INSTANCE
To view the source code for com.google.gson JsonNull INSTANCE.
Click Source Link
From source file:org.mobicents.servlet.restcomm.http.converter.AbstractConverter.java
License:Open Source License
protected void writePriceUnit(final Currency priceUnit, final JsonObject object) { if (priceUnit != null) { object.addProperty("price_unit", priceUnit.toString()); } else {//from ww w .j ava 2s . co m object.add("price_unit", JsonNull.INSTANCE); } }
From source file:org.mobicents.servlet.restcomm.http.converter.AbstractConverter.java
License:Open Source License
protected void writeSmsFallbackUrl(final URI smsFallbackUrl, final JsonObject object) { if (smsFallbackUrl != null) { object.addProperty("sms_fallback_url", smsFallbackUrl.toString()); } else {//from ww w. j ava 2s. co m object.add("sms_fallback_url", JsonNull.INSTANCE); } }
From source file:org.mobicents.servlet.restcomm.http.converter.AbstractConverter.java
License:Open Source License
protected void writeSmsFallbackMethod(final String smsFallbackMethod, final JsonObject object) { if (smsFallbackMethod != null) { object.addProperty("sms_fallback_method", smsFallbackMethod); } else {/*from w ww . jav a2 s .com*/ object.add("sms_fallback_method", JsonNull.INSTANCE); } }
From source file:org.mobicents.servlet.restcomm.http.converter.AbstractConverter.java
License:Open Source License
protected void writeSmsUrl(final URI smsUrl, final JsonObject object) { if (smsUrl != null) { object.addProperty("sms_url", smsUrl.toString()); } else {//from w w w . j a v a2s.c om object.add("sms_url", JsonNull.INSTANCE); } }
From source file:org.mobicents.servlet.restcomm.http.converter.AbstractConverter.java
License:Open Source License
protected void writeSmsMethod(final String smsMethod, final JsonObject object) { if (smsMethod != null) { object.addProperty("sms_method", smsMethod); } else {/* w ww . jav a 2s. c o m*/ object.add("sms_method", JsonNull.INSTANCE); } }
From source file:org.mobicents.servlet.restcomm.http.converter.AbstractConverter.java
License:Open Source License
protected void writeStatusCallback(final URI statusCallback, final JsonObject object) { if (statusCallback != null) { object.addProperty("status_callback", statusCallback.toString()); } else {//from w ww.j a v a2s .co m object.add("status_callback", JsonNull.INSTANCE); } }
From source file:org.mobicents.servlet.restcomm.http.converter.AbstractConverter.java
License:Open Source License
protected void writeStatusCallbackMethod(final String statusCallbackMethod, final JsonObject object) { if (statusCallbackMethod != null) { object.addProperty("status_callback_method", statusCallbackMethod); } else {/*from w ww.jav a2 s.co m*/ object.add("status_callback_method", JsonNull.INSTANCE); } }
From source file:org.mobicents.servlet.restcomm.http.converter.AbstractConverter.java
License:Open Source License
protected void writeVoiceApplicationSid(final Sid voiceApplicationSid, final JsonObject object) { if (voiceApplicationSid != null) { object.addProperty("voice_application_sid", voiceApplicationSid.toString()); } else {//from ww w . j a v a 2s .co m object.add("voice_application_sid", JsonNull.INSTANCE); } }
From source file:org.mobicents.servlet.restcomm.http.converter.AbstractConverter.java
License:Open Source License
protected void writeVoiceFallbackMethod(final String voiceFallbackMethod, final JsonObject object) { if (voiceFallbackMethod != null) { object.addProperty("voice_fallback_method", voiceFallbackMethod); } else {/*from w ww .j a v a 2 s . c o m*/ object.add("voice_fallback_method", JsonNull.INSTANCE); } }
From source file:org.mobicents.servlet.restcomm.http.converter.AbstractConverter.java
License:Open Source License
protected void writeVoiceFallbackUrl(final URI voiceFallbackUri, final JsonObject object) { if (voiceFallbackUri != null) { object.addProperty("voice_fallback_url", voiceFallbackUri.toString()); } else {/* w w w . j a v a2s . com*/ object.add("voice_fallback_url", JsonNull.INSTANCE); } }