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 booleanprivate final Stringprivate final Invocableprivate final booleanprivate final Collection<Class<? extends Annotation>> private final List<javax.ws.rs.core.MediaType> private final booleanprivate final booleanprivate final longprivate final TimeUnitprivate final ResourceMethod.JaxrsType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateData(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) StringGet the associated HTTP method.(package private) InvocableGet 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) longGet the suspended timeout value for the method.(package private) TimeUnitGet the suspended timeout time unit for the method.(package private) ResourceMethod.JaxrsTypegetType()Get the JAX-RS method type.(package private) booleanGet the flag indicating whether the resource method is extended or is a core of exposed RESTful API.(package private) booleanFlag indicating whether managed async support declared on the method.(package private) booleanisSse()Flag indicating whether the method requires injection of Sse Event Sink.(package private) booleanFlag 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
nullin case the method represents a sub-resource locator.- Returns:
- the associated HTTP method, or
nullin 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:
trueif managed async support is declared on the method,falseotherwise.
-
isSuspended
boolean isSuspended()Flag indicating whether the method requires injection of suspended response context.- Returns:
trueif the method requires injection of suspended response context,falseotherwise.
-
isSse
boolean isSse()Flag indicating whether the method requires injection of Sse Event Sink.- Returns:
trueif the method requires injection of Sse Event Sink,falseotherwise.
-
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:
trueif 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
-