Package io.avaje.http.api

Provides annotations to support Controllers for web frameworks that are route based (like Sparkjava, Javlin etc).
  • Interface Summary
    Interface Description
    MediaType
    Common media types used by controllers.
    Validator
    Validator for form beans or request beans.
    WebRoutes
    Registers routes to a web framework.
  • Class Summary
    Class Description
    PathSegment
    A path segment that can simple like value like chair or contain matrix parameter values using semi-colon delimitation like chair;vendor=ikea;size=small.
    PathTypeConversion
    Helper type conversion methods.
  • Exception Summary
    Exception Description
    InvalidPathArgumentException
    Exception for all invalid path type conversions - numbers, uuid, date time types etc.
    InvalidTypeArgumentException
    Exception for all invalid path type conversions - numbers, uuid, date time types etc.
    RequiredArgumentException
    Exception for parameters that are required.
    ValidationException
    Exception used with Validator.
  • Annotation Types Summary
    Annotation Type Description
    BeanParam
    A parameter that is a bean containing query parameters, headers and cookies.
    Client
    Marker annotation for client.
    Client.Import  
    Controller
    Marker annotation for controllers.
    Cookie
    A parameter that is a cookie value.
    Default
    Define a default value for a form parameter or query parameter.
    Delete
    Marks a method that handles HTTP DELETE requests.
    Form
    A parameter that is a bean containing form parameters.
    FormParam
    Marks a method parameter to be a form parameter.
    Generated
    Marker for generated code.
    Get
    Marks a method that handles HTTP GET requests.
    Header
    A parameter that is a header value.
    HttpMethod
    Base for Http verb based annotations.
    Patch
    Marks a method that handles HTTP PATCH requests.
    Path
    Specify the path mapping request to the controller.
    Post
    Marks a method that handles HTTP POST requests.
    Produces
    Specify endpoint response media type.
    Put
    Marks a method that handles HTTP PUT requests.
    QueryParam
    Marks a method parameter to be a query parameter.