public abstract class ServiceResponse extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.olingo.server.api.ServiceMetadata |
metadata |
protected Map<String,String> |
preferences |
protected org.apache.olingo.server.api.ODataResponse |
response |
| Constructor and Description |
|---|
ServiceResponse(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.server.api.ODataResponse response,
Map<String,String> preferences) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
accepts(ServiceResponseVisior visitor) |
protected void |
close() |
org.apache.olingo.server.api.ODataResponse |
getODataResponse() |
protected boolean |
isClosed() |
void |
setStrictlyApplyPreferences(boolean flag)
When true; the "Preference-Applied" header is strictly checked.
|
void |
writeBadRequest(boolean closeResponse) |
void |
writeContent(InputStream content,
int statusCode,
boolean closeResponse) |
void |
writeHeader(String key,
String value) |
void |
writeNoContent(boolean closeResponse) |
void |
writeNotFound(boolean closeResponse) |
void |
writeOK(org.apache.olingo.commons.api.format.ContentType contentType) |
void |
writeServerError(boolean closeResponse) |
protected org.apache.olingo.server.api.ServiceMetadata metadata
protected org.apache.olingo.server.api.ODataResponse response
public org.apache.olingo.server.api.ODataResponse getODataResponse()
protected boolean isClosed()
protected void close()
public void writeNoContent(boolean closeResponse)
public void writeNotFound(boolean closeResponse)
public void writeServerError(boolean closeResponse)
public void writeBadRequest(boolean closeResponse)
public void writeOK(org.apache.olingo.commons.api.format.ContentType contentType)
public void writeContent(InputStream content, int statusCode, boolean closeResponse)
public void setStrictlyApplyPreferences(boolean flag)
flag - public abstract void accepts(ServiceResponseVisior visitor) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionCopyright © 2013–2015 The Apache Software Foundation. All rights reserved.