Interface OHttpResponse
- All Known Implementing Classes:
OHttpGraphResponse,OHttpResponseAbstract,OHttpResponseImpl
public interface OHttpResponse
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbyte[]voidflush()voidformatMultiValue(Iterator<?> iIterator, Writer buffer, String format) String[]intgetCode()getOut()booleanbooleanbooleanbooleanbooleanvoidvoidsendStream(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) voidsetAdditionalHeaders(String[] additionalHeaders) voidsetCallbackFunction(String callbackFunction) voidsetCharacterSet(String characterSet) voidsetCode(int code) voidsetConnection(OClientConnection connection) voidsetContent(String content) voidsetContentEncoding(String contentEncoding) voidsetContentType(String contentType) voidStores additional headers to sendvoidsetHeaders(String headers) voidsetJsonErrorResponse(boolean jsonErrorResponse) voidsetKeepAlive(boolean keepAlive) voidsetSameSiteCookie(boolean sameSiteCookie) voidsetSendStarted(boolean sendStarted) voidsetServerInfo(String serverInfo) voidsetSessionId(String sessionId) voidsetStaticEncoding(String contentEncoding) voidsetStreaming(boolean streaming) voidwriteContent(String iContent) voidwriteHeaders(String iContentType) voidwriteHeaders(String iContentType, boolean iKeepAlive) voidvoidwriteRecord(ORecord iRecord) voidwriteRecord(ORecord iRecord, String iFetchPlan, String iFormat) voidwriteRecords(Object iRecords) voidwriteRecords(Object iRecords, String iFetchPlan) voidwriteRecords(Object iRecords, String iFetchPlan, String iFormat, String accept) voidwriteRecords(Object iRecords, String iFetchPlan, String iFormat, String accept, Map<String, Object> iAdditionalProperties) voidwriteRecords(Object iRecords, String iFetchPlan, String iFormat, String accept, Map<String, Object> iAdditionalProperties, String mode) voidwriteResult(Object result) voidwriteResult(Object iResult, String iFormat, String iAccept) voidwriteResult(Object iResult, String iFormat, String iAccept, Map<String, Object> iAdditionalProperties) voidwriteResult(Object iResult, String iFormat, String iAccept, Map<String, Object> iAdditionalProperties, String mode) voidwriteStatus(int iStatus, String iReason)
-
Field Details
-
JSON_FORMAT
- See Also:
-
-
Method Details
-
send
void send(int iCode, String iReason, String iContentType, Object iContent, String iHeaders) throws IOException - Throws:
IOException
-
writeStatus
- Throws:
IOException
-
writeHeaders
- Throws:
IOException
-
writeHeaders
- Throws:
IOException
-
writeLine
- Throws:
IOException
-
writeContent
- Throws:
IOException
-
writeResult
- Throws:
InterruptedExceptionIOException
-
writeResult
void writeResult(Object iResult, String iFormat, String iAccept) throws InterruptedException, IOException - Throws:
InterruptedExceptionIOException
-
writeResult
void writeResult(Object iResult, String iFormat, String iAccept, Map<String, Object> iAdditionalProperties) throws InterruptedException, IOException- Throws:
InterruptedExceptionIOException
-
writeResult
void writeResult(Object iResult, String iFormat, String iAccept, Map<String, Object> iAdditionalProperties, String mode) throws InterruptedException, IOException- Throws:
InterruptedExceptionIOException
-
writeRecords
- Throws:
IOException
-
writeRecords
- Throws:
IOException
-
writeRecords
void writeRecords(Object iRecords, String iFetchPlan, String iFormat, String accept) throws IOException - Throws:
IOException
-
writeRecords
void writeRecords(Object iRecords, String iFetchPlan, String iFormat, String accept, Map<String, Object> iAdditionalProperties) throws IOException- Throws:
IOException
-
writeRecords
void writeRecords(Object iRecords, String iFetchPlan, String iFormat, String accept, Map<String, Object> iAdditionalProperties, String mode) throws IOException- Throws:
IOException
-
formatMultiValue
- Throws:
IOException
-
writeRecord
- Throws:
IOException
-
writeRecord
- Throws:
IOException
-
sendStream
void sendStream(int iCode, String iReason, String iContentType, InputStream iContent, long iSize) throws IOException - Throws:
IOException
-
sendStream
void sendStream(int iCode, String iReason, String iContentType, InputStream iContent, long iSize, String iFileName) throws IOException - Throws:
IOException
-
sendStream
void sendStream(int iCode, String iReason, String iContentType, InputStream iContent, long iSize, String iFileName, Map<String, String> additionalHeaders) throws IOException- Throws:
IOException
-
sendStream
void sendStream(int iCode, String iReason, String iContentType, String iFileName, OCallable<Void, OChunkedResponse> iWriter) throws IOException- Throws:
IOException
-
compress
-
setHeader
Stores additional headers to send -
getOutputStream
OutputStream getOutputStream() -
flush
- Throws:
IOException
-
getContentType
String getContentType() -
setContentType
-
getContentEncoding
String getContentEncoding() -
setContentEncoding
-
setStaticEncoding
-
setSessionId
-
getContent
String getContent() -
setContent
-
getCode
int getCode() -
setCode
void setCode(int code) -
setJsonErrorResponse
void setJsonErrorResponse(boolean jsonErrorResponse) -
setStreaming
void setStreaming(boolean streaming) -
getHttpVersion
String getHttpVersion() -
getOut
OutputStream getOut() -
getHeaders
String getHeaders() -
setHeaders
-
getAdditionalHeaders
String[] getAdditionalHeaders() -
setAdditionalHeaders
-
getCharacterSet
String getCharacterSet() -
setCharacterSet
-
getServerInfo
String getServerInfo() -
setServerInfo
-
getSessionId
String getSessionId() -
getCallbackFunction
String getCallbackFunction() -
setCallbackFunction
-
getStaticEncoding
String getStaticEncoding() -
isSendStarted
boolean isSendStarted() -
setSendStarted
void setSendStarted(boolean sendStarted) -
isKeepAlive
boolean isKeepAlive() -
setKeepAlive
void setKeepAlive(boolean keepAlive) -
isJsonErrorResponse
boolean isJsonErrorResponse() -
getConnection
OClientConnection getConnection() -
setConnection
-
isStreaming
boolean isStreaming() -
setSameSiteCookie
void setSameSiteCookie(boolean sameSiteCookie) -
isSameSiteCookie
boolean isSameSiteCookie() -
getContextConfiguration
OContextConfiguration getContextConfiguration() -
addHeader
-
getHeadersMap
-
checkConnection
- Throws:
IOException
-