public interface PlainResult extends Result
public PlainResult execute() { return response -> response.write(""); }
Please notice the result type of the method is a PlainResult not a String.
Result.LegacyAdapter| Modifier and Type | Field and Description | 
|---|---|
| static org.apache.logging.log4j.Logger | LOG | 
| Modifier and Type | Method and Description | 
|---|---|
| default void | execute(ActionInvocation invocation) | 
| default boolean | ignoreCommitted()Controls if result should ignore already committed Http response
 If set to true only a warning will be issued and the rest of the result
 will be skipped | 
| void | write(ResponseBuilder response)Implement this method in action using lambdas | 
default void execute(ActionInvocation invocation) throws Exception
Exceptionvoid write(ResponseBuilder response)
response - a response builder used to build a Http responsedefault boolean ignoreCommitted()
Copyright © 2000–2025 Apache Software Foundation. All rights reserved.