Class ResourceMethod.Data

java.lang.Object
org.glassfish.jersey.server.model.ResourceMethod.Data
Enclosing class:
ResourceMethod

static class ResourceMethod.Data extends Object
Immutable resource method data.
  • Field Details

    • type

      private final ResourceMethod.JaxrsType type
    • httpMethod

      private final String httpMethod
    • consumedTypes

      private final List<javax.ws.rs.core.MediaType> consumedTypes
    • producedTypes

      private final List<javax.ws.rs.core.MediaType> producedTypes
    • managedAsync

      private final boolean managedAsync
    • suspended

      private final boolean suspended
    • sse

      private final boolean sse
    • suspendTimeout

      private final long suspendTimeout
    • suspendTimeoutUnit

      private final TimeUnit suspendTimeoutUnit
    • invocable

      private final Invocable invocable
    • nameBindings

      private final Collection<Class<? extends Annotation>> nameBindings
    • extended

      private final boolean extended
  • Constructor Details

    • Data

      private Data(String httpMethod, Collection<javax.ws.rs.core.MediaType> consumedTypes, Collection<javax.ws.rs.core.MediaType> producedTypes, boolean managedAsync, boolean suspended, boolean sse, long suspendTimeout, TimeUnit suspendTimeoutUnit, Invocable invocable, Collection<Class<? extends Annotation>> nameBindings, boolean extended)
  • Method Details

    • getType

      Get the JAX-RS method type.
      Returns:
      the JAX-RS method type.
    • getHttpMethod

      String getHttpMethod()
      Get the associated HTTP method.

      May return null in case the method represents a sub-resource locator.

      Returns:
      the associated HTTP method, or null in case this method represents a sub-resource locator.
    • getConsumedTypes

      List<javax.ws.rs.core.MediaType> getConsumedTypes()
      Get consumable media types.
      Returns:
      consumable media types.
    • getProducedTypes

      List<javax.ws.rs.core.MediaType> getProducedTypes()
      Get produced media types.
      Returns:
      produced media types.
    • isManagedAsync

      boolean isManagedAsync()
      Flag indicating whether managed async support declared on the method.
      Returns:
      true if managed async support is declared on the method, false otherwise.
    • isSuspended

      boolean isSuspended()
      Flag indicating whether the method requires injection of suspended response context.
      Returns:
      true if the method requires injection of suspended response context, false otherwise.
    • isSse

      boolean isSse()
      Flag indicating whether the method requires injection of Sse Event Sink.
      Returns:
      true if the method requires injection of Sse Event Sink, false otherwise.
    • getSuspendTimeout

      long getSuspendTimeout()
      Get the suspended timeout value for the method.
      Returns:
      the suspended timeout value for the method.
    • getSuspendTimeoutUnit

      TimeUnit getSuspendTimeoutUnit()
      Get the suspended timeout time unit for the method.
      Returns:
      the suspended timeout time unit for the method.
    • getInvocable

      Invocable getInvocable()
      Get the invocable method model.
      Returns:
      invocable method model.
    • isExtended

      boolean isExtended()
      Get the flag indicating whether the resource method is extended or is a core of exposed RESTful API.
      Returns:
      true if resource is extended.
    • getNameBindings

      Collection<Class<? extends Annotation>> getNameBindings()
      Get the collection of name bindings attached to this method.
      Returns:
      collection of name binding annotation types attached to the method.
    • toString

      public String toString()
      Overrides:
      toString in class Object