Class JacksonHttpBodyOutput<T>
java.lang.Object
ru.tinkoff.kora.json.jackson.module.http.JacksonHttpBodyOutput<T>
- All Implemented Interfaces:
Closeable,AutoCloseable,Flow.Publisher<ByteBuffer>,ru.tinkoff.kora.http.common.body.HttpBody,ru.tinkoff.kora.http.common.body.HttpBodyOutput
public final class JacksonHttpBodyOutput<T>
extends Object
implements ru.tinkoff.kora.http.common.body.HttpBodyOutput
-
Constructor Summary
ConstructorsConstructorDescriptionJacksonHttpBodyOutput(com.fasterxml.jackson.databind.ObjectWriter objectMapper, ru.tinkoff.kora.common.Context context, T value) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longvoidsubscribe(Flow.Subscriber<? super ByteBuffer> subscriber) voidwrite(OutputStream os) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ru.tinkoff.kora.http.common.body.HttpBody
getFullContentIfAvailable
-
Constructor Details
-
JacksonHttpBodyOutput
public JacksonHttpBodyOutput(com.fasterxml.jackson.databind.ObjectWriter objectMapper, ru.tinkoff.kora.common.Context context, T value)
-
-
Method Details
-
contentLength
public long contentLength()- Specified by:
contentLengthin interfaceru.tinkoff.kora.http.common.body.HttpBody- Specified by:
contentLengthin interfaceru.tinkoff.kora.http.common.body.HttpBodyOutput
-
contentType
- Specified by:
contentTypein interfaceru.tinkoff.kora.http.common.body.HttpBody- Specified by:
contentTypein interfaceru.tinkoff.kora.http.common.body.HttpBodyOutput
-
subscribe
- Specified by:
subscribein interfaceFlow.Publisher<T>- Specified by:
subscribein interfaceru.tinkoff.kora.http.common.body.HttpBodyOutput
-
write
- Specified by:
writein interfaceru.tinkoff.kora.http.common.body.HttpBodyOutput- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-