@Beta public class TextResponse extends Object implements ResponseInterface
Constructor and Description |
---|
TextResponse(String content)
Constructor to create a new TextResponse with a text
|
Modifier and Type | Method and Description |
---|---|
void |
appendContent(String additionalContent)
Function to add content to the current text response.
|
String |
getContent()
Returns the current content.
|
String |
getType()
returns the present type, which is immutable to the user.
|
void |
setContent(String content)
Setter to replace the current text of this response.
|
public void setContent(@Nonnull String content)
content
- the next text of this responsepublic void appendContent(@Nonnull String additionalContent)
additionalContent
- content to be appended to the current text.@Nullable public String getContent()
@Nullable public String getType()
getType
in interface ResponseInterface
Copyright © 2020 SAP SE. All rights reserved.