@FunctionalInterface public static interface RestHandlerFactory.EmptyContentRestHandlerFunction
EmptyContentRestHandler
.Modifier and Type | Method and Description |
---|---|
Object |
handle(List<org.apache.http.Header> headers,
List<org.apache.http.NameValuePair> params,
Object content)
The handling function of
EmptyContentRestHandler . |
@Nullable Object handle(@Nonnull List<org.apache.http.Header> headers, @Nonnull List<org.apache.http.NameValuePair> params, @Nullable Object content) throws RestHandlerException
EmptyContentRestHandler
.
This method has the same signature as
EmptyContentRestHandler.handleParsedContent(List, List, Object)
, and can be used in
RestHandlerFactory.createEmptyContentRestHandler(EmptyContentRestHandlerFunction)
to set its behavior.
headers
- the HTTP headers of the received requestparams
- the request parameterscontent
- null
(EmptyContentRestHandler
does not accept any request content)Object
containing the endpoint result, or null
RestHandlerException
- if an error occurred when handling the requestCopyright © 2020 SOM Research Lab. All rights reserved.