Class OHttpResponseImpl
java.lang.Object
com.orientechnologies.orient.server.network.protocol.http.OHttpResponseAbstract
com.orientechnologies.orient.server.network.protocol.http.OHttpResponseImpl
- All Implemented Interfaces:
OHttpResponse
-
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
ConstructorsConstructorDescriptionOHttpResponseImpl(OutputStream iOutStream, String iHttpVersion, String[] iAdditionalHeaders, String iResponseCharSet, String iServerInfo, String iSessionId, String iCallbackFunction, boolean iKeepAlive, OClientConnection connection, OContextConfiguration contextConfiguration) -
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) 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, writeRecords, writeResult, writeResult, writeResult, writeResult
-
Constructor Details
-
OHttpResponseImpl
public OHttpResponseImpl(OutputStream iOutStream, String iHttpVersion, String[] iAdditionalHeaders, String iResponseCharSet, String iServerInfo, String iSessionId, String iCallbackFunction, boolean iKeepAlive, OClientConnection connection, OContextConfiguration contextConfiguration)
-
-
Method Details
-
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
-