Annotation Interface HttpRequestHandler
Represents a method which can handle http requests sent to one of the provided paths using and request methods. The
first parameter of an annotated method must (and will) be the request HttpContext.
- Since:
- 4.0
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionGet the methods which can be used to call the associated handling method, defaults to GET.intGet the port to which this handler is listening to exclusively.intGet the priority of the associated handling method.
-
Element Details
-
paths
Get the paths to which the request can be sent in order to call the associated handling method.- Returns:
- the url paths the associated method is handling.
-
-
-
methods
Get the methods which can be used to call the associated handling method, defaults to GET.- Returns:
- the http request methods the associated method is handling.
- Default:
- {"GET"}
-
priority
int priorityGet the priority of the associated handling method.- Returns:
- the priority of the handling method.
- Default:
- 32
-
port
int portGet the port to which this handler is listening to exclusively.- Returns:
- the port this handler is listening to.
- Default:
- -1
-