Class ResourceMethod.Data
java.lang.Object
org.glassfish.jersey.server.model.ResourceMethod.Data
- Enclosing class:
- ResourceMethod
Immutable resource method data.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<javax.ws.rs.core.MediaType>
private final boolean
private final String
private final Invocable
private final boolean
private final Collection<Class<? extends Annotation>>
private final List<javax.ws.rs.core.MediaType>
private final boolean
private final boolean
private final long
private final TimeUnit
private final ResourceMethod.JaxrsType
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
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 Summary
Modifier and TypeMethodDescription(package private) List<javax.ws.rs.core.MediaType>
Get consumable media types.(package private) String
Get the associated HTTP method.(package private) Invocable
Get the invocable method model.(package private) Collection<Class<? extends Annotation>>
Get the collection of name bindings attached to this method.(package private) List<javax.ws.rs.core.MediaType>
Get produced media types.(package private) long
Get the suspended timeout value for the method.(package private) TimeUnit
Get the suspended timeout time unit for the method.(package private) ResourceMethod.JaxrsType
getType()
Get the JAX-RS method type.(package private) boolean
Get the flag indicating whether the resource method is extended or is a core of exposed RESTful API.(package private) boolean
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
Flag indicating whether the method requires injection of suspended response context.toString()
-
Field Details
-
type
-
httpMethod
-
consumedTypes
-
producedTypes
-
managedAsync
private final boolean managedAsync -
suspended
private final boolean suspended -
sse
private final boolean sse -
suspendTimeout
private final long suspendTimeout -
suspendTimeoutUnit
-
invocable
-
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
ResourceMethod.JaxrsType 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
-