Package jakarta.ws.rs

Class QueryParam.Literal

java.lang.Object
jakarta.enterprise.util.AnnotationLiteral<QueryParam>
jakarta.ws.rs.QueryParam.Literal
All Implemented Interfaces:
Annotation
Enclosing class:
QueryParam

public static final class QueryParam.Literal extends jakarta.enterprise.util.AnnotationLiteral<QueryParam> implements QueryParam
Supports inline instantiation of the QueryParam annotation.
Since:
5.0
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class jakarta.ws.rs.QueryParam

    QueryParam.Literal
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final QueryParam
    Default QueryParam literal
  • Method Summary

    Modifier and Type
    Method
    Description
    static QueryParam
    of(String value)
    Obtain the literal of a QueryParam annotation.
     

    Methods inherited from class jakarta.enterprise.util.AnnotationLiteral

    annotationType, equals, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • INSTANCE

      public static final QueryParam INSTANCE
      Default QueryParam literal
  • Method Details

    • of

      public static QueryParam of(String value)
      Obtain the literal of a QueryParam annotation.
      Parameters:
      value - the query value
      Returns:
      the new literal query param
    • value

      public String value()