Class StringContent
- java.lang.Object
-
- de.codecentric.reedelk.runtime.api.message.content.StringContent
-
- All Implemented Interfaces:
TypedContent<String,String>,Serializable
public class StringContent extends Object implements TypedContent<String,String>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StringContent(String payload, MimeType mimeType)StringContent(org.reactivestreams.Publisher<String> payloadAsStream, MimeType mimeType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsume()Consumes the stream payload if it has not been consumed yet.Stringdata()booleanisStream()MimeTypemimeType()TypedPublisher<String>stream()Class<String>streamType()StringtoString()Class<String>type()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.codecentric.reedelk.runtime.api.message.content.TypedContent
getData, getMimeType, getStream, getStreamType, getType
-
-
-
-
Method Detail
-
streamType
public Class<String> streamType()
- Specified by:
streamTypein interfaceTypedContent<String,String>
-
mimeType
public MimeType mimeType()
- Specified by:
mimeTypein interfaceTypedContent<String,String>
-
data
public String data()
- Specified by:
datain interfaceTypedContent<String,String>
-
stream
public TypedPublisher<String> stream()
- Specified by:
streamin interfaceTypedContent<String,String>
-
isStream
public boolean isStream()
- Specified by:
isStreamin interfaceTypedContent<String,String>
-
consume
public void consume()
Description copied from interface:TypedContentConsumes the stream payload if it has not been consumed yet. This method might be useful to call before cloning the message. E.g the fork component uses this method before invoking fork branches with a copy of the message.- Specified by:
consumein interfaceTypedContent<String,String>
-
-