Annotation Interface HttpObject


@Documented @Retention(RUNTIME) @Target({TYPE,PARAMETER}) public @interface HttpObject
Annotation on the Class of the parameter (or the parameter itself) to indicate it is parsed out of the HttpRequest via an HttpObjectParser.
Author:
Daniel Sagenschneider
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Leaving an empty array will provide all Content-Type parsing available for the Object.
  • Element Details

    • acceptedContentTypes

      String[] acceptedContentTypes

      Leaving an empty array will provide all Content-Type parsing available for the Object.

      This is provided to restrict Content-Type parsing.

      Returns:
      Restricted list of Content-Type parsing available for the Object.
      Default:
      {}