use of com.linkedin.restli.server.UnstructuredDataReactiveResult in project rest.li by linkedin.
the class GreetingUnstructuredDataSimpleResourceReactive method get.
@Override
public void get(@CallbackParam Callback<UnstructuredDataReactiveResult> callback) {
Writer<ByteString> writer = new SingletonWriter<>(ByteString.copy(UNSTRUCTURED_DATA_BYTES));
callback.onSuccess(new UnstructuredDataReactiveResult(EntityStreams.newEntityStream(writer), MIME_TYPE));
}
Aggregations