public class EntityResponse extends ServiceResponse
metadata, preferences, response| Modifier and Type | Method and Description |
|---|---|
void |
accepts(ServiceResponseVisior visitor) |
static String |
buildLocation(String baseURL,
org.apache.olingo.commons.api.data.Entity entity,
String enitySetName,
org.apache.olingo.commons.api.edm.EdmEntityType type) |
static EntityResponse |
getInstance(ServiceRequest request,
org.apache.olingo.commons.api.data.ContextURL contextURL,
boolean references,
org.apache.olingo.server.api.ODataResponse response) |
static EntityResponse |
getInstance(ServiceRequest request,
org.apache.olingo.commons.api.data.ContextURL contextURL,
boolean references,
org.apache.olingo.server.api.ODataResponse response,
ReturnRepresentation returnRepresentation) |
void |
writeCreated(boolean closeResponse) |
void |
writeCreatedEntity(org.apache.olingo.commons.api.edm.EdmEntitySet entitySet,
org.apache.olingo.commons.api.data.Entity entity) |
void |
writeDeletedEntityOrReference() |
void |
writeError(org.apache.olingo.server.api.ODataServerError error) |
void |
writeNotModified() |
void |
writeReadEntity(org.apache.olingo.commons.api.edm.EdmEntityType entityType,
org.apache.olingo.commons.api.data.Entity entity) |
void |
writeUpdatedEntity() |
close, getODataResponse, isClosed, setStrictlyApplyPreferences, writeBadRequest, writeContent, writeHeader, writeNoContent, writeNotFound, writeOK, writeServerErrorpublic static EntityResponse getInstance(ServiceRequest request, org.apache.olingo.commons.api.data.ContextURL contextURL, boolean references, org.apache.olingo.server.api.ODataResponse response, ReturnRepresentation returnRepresentation) throws org.apache.olingo.server.core.ContentNegotiatorException, org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.core.ContentNegotiatorExceptionorg.apache.olingo.server.api.serializer.SerializerExceptionpublic static EntityResponse getInstance(ServiceRequest request, org.apache.olingo.commons.api.data.ContextURL contextURL, boolean references, org.apache.olingo.server.api.ODataResponse response) throws org.apache.olingo.server.core.ContentNegotiatorException, org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.core.ContentNegotiatorExceptionorg.apache.olingo.server.api.serializer.SerializerExceptionpublic void writeReadEntity(org.apache.olingo.commons.api.edm.EdmEntityType entityType,
org.apache.olingo.commons.api.data.Entity entity)
throws org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.api.serializer.SerializerExceptionpublic void writeCreatedEntity(org.apache.olingo.commons.api.edm.EdmEntitySet entitySet,
org.apache.olingo.commons.api.data.Entity entity)
throws org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.api.serializer.SerializerExceptionpublic void writeUpdatedEntity()
public void writeDeletedEntityOrReference()
public void accepts(ServiceResponseVisior visitor) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
accepts in class ServiceResponseorg.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionpublic void writeCreated(boolean closeResponse)
public void writeError(org.apache.olingo.server.api.ODataServerError error)
public void writeNotModified()
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.