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.
Modifier and Type | Field and Description |
---|---|
static org.apache.logging.log4j.Logger |
LOG |
Modifier and Type | Method and Description |
---|---|
default void |
execute(ActionInvocation invocation)
Represents a generic interface for all action execution results.
|
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
Result
void write(ResponseBuilder response)
response
- a response builder used to build a Http responsedefault boolean ignoreCommitted()
Copyright © 2000–2022 Apache Software Foundation. All rights reserved.