public class RestHandlerFactory extends Object
RestHandler
factory providing utility methods to create specific RestHandler
instances.Modifier and Type | Class and Description |
---|---|
static interface |
RestHandlerFactory.EmptyContentRestHandlerFunction
A functional interface representing the handling function of
EmptyContentRestHandler . |
static interface |
RestHandlerFactory.JsonRestHandlerFunction
A functional interface representing the handling function of
JsonRestHandler . |
Constructor and Description |
---|
RestHandlerFactory() |
Modifier and Type | Method and Description |
---|---|
static EmptyContentRestHandler |
createEmptyContentRestHandler(RestHandlerFactory.EmptyContentRestHandlerFunction function)
Creates an
EmptyContentRestHandler and sets its handling method with the provided function . |
static JsonRestHandler |
createJsonRestHandler(RestHandlerFactory.JsonRestHandlerFunction function)
Creates a
JsonRestHandler and sets its handling method with the provided function . |
public static JsonRestHandler createJsonRestHandler(RestHandlerFactory.JsonRestHandlerFunction function)
JsonRestHandler
and sets its handling method with the provided function
.function
- the RestHandlerFactory.JsonRestHandlerFunction
used to define the handler behaviorJsonRestHandler
public static EmptyContentRestHandler createEmptyContentRestHandler(RestHandlerFactory.EmptyContentRestHandlerFunction function)
EmptyContentRestHandler
and sets its handling method with the provided function
.function
- the RestHandlerFactory.EmptyContentRestHandlerFunction
used to define the handler behaviorEmptyContentRestHandler
Copyright © 2020 SOM Research Lab. All rights reserved.