Class BodyText
The text a producer sends for a body: text as it is, bytes and a stream as UTF-8 text (as Camel converts them), any
other body its own ToString(). A body without a text form of its own, whose ToString() is only its type name (a list,
an object that does not override it), is refused instead of sending that name, the way Apache Camel's type
conversion fails for a body it cannot convert.
public static class BodyText
Inheritance
Methods
HasOwnText(object)
Whether body writes itself as text (overrides ToString()).
public static bool HasOwnText(object body)
Of(object, string?)
The body's own text, or a refusal naming the endpoint (sanitized by the caller) and the body's type when its text
public static string Of(object body, string? endpoint = null)