Annotation Type HttpObject


  • @Documented
    @Retention(RUNTIME)
    @Target(TYPE)
    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
      java.lang.String[] acceptedContentTypes
      Leaving an empty array will provide all Content-Type parsing available for the Object.
    • Element Detail

      • acceptedContentTypes

        java.lang.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:
        {}