Class ResourceMethod.Data

  • Enclosing class:
    ResourceMethod

    static class ResourceMethod.Data
    extends java.lang.Object
    Immutable resource method data.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Data​(java.lang.String httpMethod, java.util.Collection<javax.ws.rs.core.MediaType> consumedTypes, java.util.Collection<javax.ws.rs.core.MediaType> producedTypes, boolean managedAsync, boolean suspended, boolean sse, long suspendTimeout, java.util.concurrent.TimeUnit suspendTimeoutUnit, Invocable invocable, java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> nameBindings, boolean extended)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.util.List<javax.ws.rs.core.MediaType> getConsumedTypes()
      Get consumable media types.
      (package private) java.lang.String getHttpMethod()
      Get the associated HTTP method.
      (package private) Invocable getInvocable()
      Get the invocable method model.
      (package private) java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> getNameBindings()
      Get the collection of name bindings attached to this method.
      (package private) java.util.List<javax.ws.rs.core.MediaType> getProducedTypes()
      Get produced media types.
      (package private) long getSuspendTimeout()
      Get the suspended timeout value for the method.
      (package private) java.util.concurrent.TimeUnit getSuspendTimeoutUnit()
      Get the suspended timeout time unit for the method.
      (package private) ResourceMethod.JaxrsType getType()
      Get the JAX-RS method type.
      (package private) boolean isExtended()
      Get the flag indicating whether the resource method is extended or is a core of exposed RESTful API.
      (package private) boolean isManagedAsync()
      Flag indicating whether managed async support declared on the method.
      (package private) boolean isSse()
      Flag indicating whether the method requires injection of Sse Event Sink.
      (package private) boolean isSuspended()
      Flag indicating whether the method requires injection of suspended response context.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • httpMethod

        private final java.lang.String httpMethod
      • consumedTypes

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

        private final java.util.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 java.util.concurrent.TimeUnit suspendTimeoutUnit
      • invocable

        private final Invocable invocable
      • nameBindings

        private final java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> nameBindings
      • extended

        private final boolean extended
    • Constructor Detail

      • Data

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

      • getHttpMethod

        java.lang.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

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

        java.util.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

        java.util.concurrent.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

        java.util.Collection<java.lang.Class<? extends java.lang.annotation.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object