public void append(final Writer writer, final EntityInfoAggregator entityInfo, final Map<String, Object> data) throws EntityProviderException { JsonStreamWriter jsonStreamWriter = new JsonStreamWriter(writer); final String uri = (properties.getServiceRoot() == null ? "" : properties.getServiceRoot().toASCIIString()) + AtomEntryEntityProducer.createSelfLink(entityInfo, data, null); try { if (!properties.isOmitJsonWrapper()) { jsonStreamWriter.beginObject() .name(FormatJson.D); } appendUri(jsonStreamWriter, uri); if (!properties.isOmitJsonWrapper()) { jsonStreamWriter.endObject(); } } catch (final IOException e) { throw new EntityProviderProducerException(EntityProviderException.EXCEPTION_OCCURRED.addContent(e.getClass() .getSimpleName()), e); } }
public void append(final Writer writer, final EntityInfoAggregator entityInfo, final Map<String, Object> data) throws EntityProviderException { JsonStreamWriter jsonStreamWriter = new JsonStreamWriter(writer); final String uri = (properties.getServiceRoot() == null ? "" : properties.getServiceRoot().toASCIIString()) + AtomEntryEntityProducer.createSelfLink(entityInfo, data, null); try { if (!properties.isOmitJsonWrapper()) { jsonStreamWriter.beginObject() .name(FormatJson.D); } appendUri(jsonStreamWriter, uri); if (!properties.isOmitJsonWrapper()) { jsonStreamWriter.endObject(); } } catch (final IOException e) { throw new EntityProviderProducerException(EntityProviderException.EXCEPTION_OCCURRED.addContent(e.getClass() .getSimpleName()), e); } }
if (isRootElement && !properties.isOmitJsonWrapper()) { jsonStreamWriter.beginObject().name(FormatJson.D); if (isRootElement && !properties.isOmitJsonWrapper()) { jsonStreamWriter.endObject();
if (isRootElement && !properties.isOmitJsonWrapper()) { jsonStreamWriter.beginObject().name(FormatJson.D); if (isRootElement && !properties.isOmitJsonWrapper()) { jsonStreamWriter.endObject();
if (!properties.isOmitJsonWrapper()) { jsonStreamWriter.beginObject() .name(FormatJson.D); jsonStreamWriter.endObject(); if (!properties.isOmitJsonWrapper()) { jsonStreamWriter.endObject();
if (!properties.isOmitJsonWrapper()) { jsonStreamWriter.beginObject() .name(FormatJson.D); jsonStreamWriter.endObject(); if (!properties.isOmitJsonWrapper()) { jsonStreamWriter.endObject();