Class OHttpGraphResponse
java.lang.Object
com.orientechnologies.orient.server.network.protocol.http.OHttpResponseAbstract
com.orientechnologies.orient.server.network.protocol.http.OHttpGraphResponse
- All Implemented Interfaces:
OHttpResponse
Graph wrapper to format the response as graph.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
Fields inherited from class com.orientechnologies.orient.server.network.protocol.http.OHttpResponseAbstract
URL_SEPARATOR, utf8Fields inherited from interface com.orientechnologies.orient.server.network.protocol.http.OHttpResponse
JSON_FORMAT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidsendStream(int iCode, String iReason, String iContentType, InputStream iContent, long iSize) voidsendStream(int iCode, String iReason, String iContentType, InputStream iContent, long iSize, String iFileName) voidsendStream(int iCode, String iReason, String iContentType, InputStream iContent, long iSize, String iFileName, Map<String, String> additionalHeaders) voidsendStream(int iCode, String iReason, String iContentType, String iFileName, OCallable<Void, OChunkedResponse> iWriter) voidwriteRecords(Object iRecords, String iFetchPlan, String iFormat, String accept, Map<String, Object> iAdditionalProperties, String mode) voidwriteStatus(int iStatus, String iReason) Methods inherited from class com.orientechnologies.orient.server.network.protocol.http.OHttpResponseAbstract
addHeader, compress, flush, formatMultiValue, getAdditionalHeaders, getCallbackFunction, getCharacterSet, getCode, getConnection, getContent, getContentEncoding, getContentType, getContextConfiguration, getHeaders, getHeadersMap, getHttpVersion, getOut, getOutputStream, getServerInfo, getSessionId, getStaticEncoding, isJsonErrorResponse, isKeepAlive, isSameSiteCookie, isSendStarted, isStreaming, setAdditionalHeaders, setCallbackFunction, setCharacterSet, setCode, setConnection, setContent, setContentEncoding, setContentType, setHeader, setHeaders, setJsonErrorResponse, setKeepAlive, setSameSiteCookie, setSendStarted, setServerInfo, setSessionId, setStaticEncoding, setStreaming, writeContent, writeHeaders, writeHeaders, writeLine, writeRecord, writeRecord, writeRecords, writeRecords, writeRecords, writeRecords, writeResult, writeResult, writeResult, writeResult
-
Constructor Details
-
OHttpGraphResponse
-
-
Method Details
-
writeRecords
public void writeRecords(Object iRecords, String iFetchPlan, String iFormat, String accept, Map<String, Object> iAdditionalProperties, String mode) throws IOException- Specified by:
writeRecordsin interfaceOHttpResponse- Overrides:
writeRecordsin classOHttpResponseAbstract- Throws:
IOException
-
send
public void send(int iCode, String iReason, String iContentType, Object iContent, String iHeaders) throws IOException - Specified by:
sendin interfaceOHttpResponse- Specified by:
sendin classOHttpResponseAbstract- Throws:
IOException
-
writeStatus
- Specified by:
writeStatusin interfaceOHttpResponse- Specified by:
writeStatusin classOHttpResponseAbstract- Throws:
IOException
-
sendStream
public void sendStream(int iCode, String iReason, String iContentType, InputStream iContent, long iSize) throws IOException - Specified by:
sendStreamin interfaceOHttpResponse- Specified by:
sendStreamin classOHttpResponseAbstract- Throws:
IOException
-
sendStream
public void sendStream(int iCode, String iReason, String iContentType, InputStream iContent, long iSize, String iFileName) throws IOException - Specified by:
sendStreamin interfaceOHttpResponse- Specified by:
sendStreamin classOHttpResponseAbstract- Throws:
IOException
-
sendStream
public void sendStream(int iCode, String iReason, String iContentType, InputStream iContent, long iSize, String iFileName, Map<String, String> additionalHeaders) throws IOException- Specified by:
sendStreamin interfaceOHttpResponse- Specified by:
sendStreamin classOHttpResponseAbstract- Throws:
IOException
-
sendStream
public void sendStream(int iCode, String iReason, String iContentType, String iFileName, OCallable<Void, OChunkedResponse> iWriter) throws IOException- Specified by:
sendStreamin interfaceOHttpResponse- Specified by:
sendStreamin classOHttpResponseAbstract- Throws:
IOException
-
checkConnection
- Throws:
IOException
-