Class Result.Builder<T,A>
java.lang.Object
org.mule.runtime.extension.api.runtime.operation.Result.Builder<T,A>
- Type Parameters:
T- the generic type of the output valueA- the generic type of the message attributes
Builds instances of
Result-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributes(A attributes) Sets the output attributes valueattributesMediaType(org.mule.runtime.api.metadata.MediaType mediaType) Sets the outputMediaTypefor the attributesbuild()length(long length) Sets the length in bytes of the payloadDeprecated.mediaType(org.mule.runtime.api.metadata.MediaType mediaType) Sets the outputMediaTypefor the payloadSets the output value
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
output
Sets the output value- Parameters:
output- the new output value- Returns:
thisbuilder
-
attributes
Sets the output attributes value- Parameters:
attributes- the new attributes value- Returns:
thisbuilder
-
mediaType
Sets the outputMediaTypefor the payload- Parameters:
mediaType- the newMediaType- Returns:
thisbuilder
-
attributesMediaType
Sets the outputMediaTypefor the attributes- Parameters:
mediaType- the newMediaType- Returns:
thisbuilder
-
length
Deprecated.Uselength(long)instead.Sets the length in bytes of the payload- Parameters:
length-- Returns:
-
length
Sets the length in bytes of the payload- Parameters:
length-- Returns:
-
build
- Returns:
- the build
Result
-
length(long)instead.