Class ReflectiveHandler
java.lang.Object
dev.mccue.microhttp.reflectivehandler.ReflectiveHandler
- All Implemented Interfaces:
dev.mccue.microhttp.handler.Handler
An implementation of
Handler which delegates
to methods in the provided object that are annotated with Route.-
Method Summary
Modifier and TypeMethodDescription@Nullable dev.mccue.microhttp.handler.IntoResponsehandle(org.microhttp.Request request) static ReflectiveHandlerof(ParameterSupplier parameterSupplier, ResponseCoercer responseCoercer, Object o) static ReflectiveHandlerof(ParameterSupplier parameterSupplier, Object o) static ReflectiveHandlerof(ResponseCoercer responseCoercer, Object o) static ReflectiveHandler
-
Method Details
-
of
-
of
-
of
-
of
public static ReflectiveHandler of(ParameterSupplier parameterSupplier, ResponseCoercer responseCoercer, Object o) -
handle
public @Nullable dev.mccue.microhttp.handler.IntoResponse handle(org.microhttp.Request request) throws Exception - Specified by:
handlein interfacedev.mccue.microhttp.handler.Handler- Throws:
Exception
-