private void writeComplexProperty(EdmComplexType type, Property property) throws SerializerException { if (this.collection) { this.response.setContent(this.serializer.complexCollection(this.metadata, type, property, this.complexOptions).getContent()); } else { this.response.setContent(this.serializer.complex(this.metadata, type, property, this.complexOptions).getContent()); } writeOK(responseContentType); close(); }
private void writePrimitiveProperty(EdmPrimitiveType type, Property property) throws SerializerException { if(this.collection) { this.response.setContent( this.serializer.primitiveCollection(metadata, type, property, this.primitiveOptions).getContent()); } else { this.response.setContent( this.serializer.primitive(metadata, type, property, this.primitiveOptions).getContent()); } writeOK(responseContentType); close(); }
private void writePrimitiveProperty(EdmPrimitiveType type, Property property) throws SerializerException { if(this.collection) { this.response.setContent( this.serializer.primitiveCollection(metadata, type, property, this.primitiveOptions).getContent()); } else { this.response.setContent( this.serializer.primitive(metadata, type, property, this.primitiveOptions).getContent()); } writeOK(responseContentType); close(); }
@Override public void serialize(ODataResponse response, TeiidODataJsonSerializer serializer, ServiceMetadata metadata, ContextURL contextURL, URI next) throws SerializerException { response.setContent(serializer.complexCollection(metadata, getResults(), contextURL, next) .getContent()); } }
private void writeComplexProperty(EdmComplexType type, Property property) throws SerializerException { if (this.collection) { this.response.setContent(this.serializer.complexCollection(this.metadata, type, property, this.complexOptions).getContent()); } else { this.response.setContent(this.serializer.complex(this.metadata, type, property, this.complexOptions).getContent()); } writeOK(responseContentType); close(); }
public void writeError(ODataServerError error) { try { writeContent(this.serializer.error(error).getContent(), error.getStatusCode(), true); } catch (SerializerException e) { writeServerError(true); } } }
protected final void createSuccessResponce(final ODataResponse response, final ContentType responseFormat, final SerializerResult serializerResult) { response.setContent(serializerResult.getContent()); response.setStatusCode(successStatusCode); response.setHeader(HttpHeader.CONTENT_TYPE, responseFormat.toContentTypeString()); } }
public void writeServiceDocument(String serviceRoot) throws ODataLibraryException { assert (!isClosed()); this.response.setContent(this.serializer.serviceDocument(metadata, serviceRoot).getContent()); writeOK(responseContentType); close(); }
public void writeMetadata()throws ODataLibraryException { assert (!isClosed()); this.response.setContent(this.serializer.metadataDocument(this.metadata).getContent()); writeOK(responseContentType); close(); }
@Override public void serialize(ODataResponse response, TeiidODataJsonSerializer serializer, ServiceMetadata metadata, ContextURL contextURL, URI next) throws SerializerException { response.setContent(serializer.complexCollection(metadata, (EdmComplexType)this.procedureReturn.getReturnType().getType(), (Property)getResult(), contextURL, next) .getContent()); } }
public void writeServiceDocument(String serviceRoot) throws ODataLibraryException { assert (!isClosed()); this.response.setContent(this.serializer.serviceDocument(metadata, serviceRoot).getContent()); writeOK(responseContentType); close(); }
public void writeMetadata()throws ODataLibraryException { assert (!isClosed()); this.response.setContent(this.serializer.metadataDocument(this.metadata).getContent()); writeOK(responseContentType); close(); }
public void writeError(ODataServerError error) { try { writeHeader(HttpHeader.CONTENT_TYPE, this.responseContentType.toContentTypeString()); writeContent(this.serializer.error(error).getContent(), error.getStatusCode(), true); } catch (SerializerException e) { writeServerError(true); } }
public void writeError(ODataServerError error) { try { writeHeader(HttpHeader.CONTENT_TYPE, this.contentType.toContentTypeString()); writeContent(this.serializer.error(error).getContent(), error.getStatusCode(), true); } catch (SerializerException e) { writeServerError(true); } } }
public void writeError(ODataServerError error) { try { writeHeader(HttpHeader.CONTENT_TYPE, this.responseContentType.toContentTypeString()); writeContent(this.serializer.error(error).getContent(), error.getStatusCode(), true); } catch (SerializerException e) { writeServerError(true); } }
public void writeError(ODataServerError error) { try { writeHeader(HttpHeader.CONTENT_TYPE, this.contentType.toContentTypeString()); writeContent(this.serializer.error(error).getContent(), error.getStatusCode(), true); } catch (SerializerException e) { writeServerError(true); } } }
public void writeError(ODataServerError error) { try { writeHeader(HttpHeader.CONTENT_TYPE, this.responseContentType.toContentTypeString()); writeContent(this.serializer.error(error).getContent(), error.getStatusCode(), true); } catch (SerializerException e) { writeServerError(true); } }
public void writeError(ODataServerError error) { try { writeHeader(HttpHeader.CONTENT_TYPE, this.responseContentType.toContentTypeString()); writeContent(this.serializer.error(error).getContent(), error.getStatusCode(), true); } catch (SerializerException e) { writeServerError(true); } } }
public void writeError(ODataServerError error) { try { writeHeader(HttpHeader.CONTENT_TYPE, this.responseContentType.toContentTypeString()); writeContent(this.serializer.error(error).getContent(), error.getStatusCode(), true); } catch (SerializerException e) { writeServerError(true); } } }
public void writeError(ODataServerError error) { try { writeHeader(HttpHeader.CONTENT_TYPE, this.responseContentType.toContentTypeString()); writeContent(this.serializer.error(error).getContent(), error.getStatusCode(), true); } catch (SerializerException e) { writeServerError(true); } }