Package org.mule.test.marvel.drstrange
Class DrStrangeOperations
java.lang.Object
org.mule.test.marvel.drstrange.DrStrangeOperations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.mule.runtime.extension.api.runtime.streaming.PagingProvider<MysticConnection,Relic> getRelics(org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper) objectToStream(MysticConnection connection, Object data) readObjectStream(Iterator<String> iteratorValues) readStream(MysticConnection connection, InputStream stream) org.mule.runtime.extension.api.runtime.streaming.PagingProvider<MysticConnection,String> sayMagicWords(List<String> values, int fetchSize) voidscopeverse(org.mule.runtime.extension.api.runtime.route.Chain operations, org.mule.runtime.extension.api.runtime.process.CompletionCallback<Object, Object> callback, org.mule.runtime.api.metadata.TypedValue<Object> payload, org.mule.runtime.api.metadata.TypedValue<Object> attributes) "Dr.seekStream(MysticConnection connection, InputStream stream, int position) toStream(MysticConnection connection, String data) voidwithFlowReference(DrStrange dr, String flowRef, String name)
-
Constructor Details
-
DrStrangeOperations
public DrStrangeOperations()
-
-
Method Details
-
seekStream
@MediaType("text/plain") public String seekStream(@Connection MysticConnection connection, @Optional(defaultValue="#[payload]") InputStream stream, int position) throws IOException - Throws:
IOException
-
readStream
@Throws(CustomErrorProvider.class) @MediaType("text/plain") public String readStream(@Connection MysticConnection connection, @Optional(defaultValue="#[payload]") InputStream stream) throws IOException - Throws:
IOException
-
toStream
@MediaType("text/plain") public InputStream toStream(@Connection MysticConnection connection, @Optional(defaultValue="#[payload]") String data) -
objectToStream
@MediaType("text/plain") public InputStream objectToStream(@Connection MysticConnection connection, @Optional(defaultValue="#[payload]") Object data) -
crashCar
-
withFlowReference
@Stereotype(ReferableOperationStereotypeDefinition.class) public void withFlowReference(@Config DrStrange dr, @Optional @FlowReference String flowRef, @ComponentId String name) -
readObjectStream
-
sayMagicWords
public org.mule.runtime.extension.api.runtime.streaming.PagingProvider<MysticConnection,String> sayMagicWords(@Content List<String> values, int fetchSize) -
getRelics
public org.mule.runtime.extension.api.runtime.streaming.PagingProvider<MysticConnection,Relic> getRelics(org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper) -
scopeverse
@MediaType("text/plain") public void scopeverse(org.mule.runtime.extension.api.runtime.route.Chain operations, org.mule.runtime.extension.api.runtime.process.CompletionCallback<Object, Object> callback, @Optional(defaultValue="#[payload]") org.mule.runtime.api.metadata.TypedValue<Object> payload, @Optional(defaultValue="#[attributes]") org.mule.runtime.api.metadata.TypedValue<Object> attributes) "Dr. Strange and the Multiple Stream Readers of Madness", featuring an SDK scope.Consume the payload stream both at the beginning and the end of the provided chain.
- Parameters:
operations-callback-payload-attributes-
-