public final class StreamBridge extends Object implements org.springframework.beans.factory.SmartInitializingSingleton
| Modifier and Type | Method and Description |
|---|---|
void |
afterSingletonsInstantiated() |
boolean |
send(String bindingName,
Object data)
Sends 'data' to an output binding specified by 'bindingName' argument while
using default content type to deal with output type conversion (if necessary).
|
boolean |
send(String bindingName,
Object data,
org.springframework.util.MimeType outputContentType)
Sends 'data' to an output binding specified by 'bindingName' argument while
using the content type specified by the 'outputContentType' argument to deal
with output type conversion (if necessary).
|
public boolean send(String bindingName, Object data)
bindingName - the name of the output binding. That said it requires a bit of clarification.
When using bridge.send("foo"...), the 'foo' typically represents the binding name. However
if such binding does not exist, the new binding will be created to support dynamic destinations.data - the data to sendpublic boolean send(String bindingName, Object data, org.springframework.util.MimeType outputContentType)
bindingName - the name of the output binding. That said it requires a bit of clarification.
When using bridge.send("foo"...), the 'foo' typically represents the binding name. However
if such binding does not exist, the new binding will be created to support dynamic destinations.data - the data to sendoutputContentType - content type to be used to deal with output type conversionpublic void afterSingletonsInstantiated()
afterSingletonsInstantiated in interface org.springframework.beans.factory.SmartInitializingSingletonCopyright © 2021 Pivotal Software, Inc.. All rights reserved.