Class ResourceMethod.Data
- java.lang.Object
-
- org.glassfish.jersey.server.model.ResourceMethod.Data
-
- Enclosing class:
- ResourceMethod
static class ResourceMethod.Data extends java.lang.ObjectImmutable resource method data.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<javax.ws.rs.core.MediaType>consumedTypesprivate booleanextendedprivate java.lang.StringhttpMethodprivate Invocableinvocableprivate booleanmanagedAsyncprivate java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>>nameBindingsprivate java.util.List<javax.ws.rs.core.MediaType>producedTypesprivate booleansseprivate booleansuspendedprivate longsuspendTimeoutprivate java.util.concurrent.TimeUnitsuspendTimeoutUnitprivate ResourceMethod.JaxrsTypetype
-
Constructor Summary
Constructors Modifier Constructor Description privateData(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.StringgetHttpMethod()Get the associated HTTP method.(package private) InvocablegetInvocable()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) longgetSuspendTimeout()Get the suspended timeout value for the method.(package private) java.util.concurrent.TimeUnitgetSuspendTimeoutUnit()Get the suspended timeout time unit for the method.(package private) ResourceMethod.JaxrsTypegetType()Get the JAX-RS method type.(package private) booleanisExtended()Get the flag indicating whether the resource method is extended or is a core of exposed RESTful API.(package private) booleanisManagedAsync()Flag 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) booleanisSuspended()Flag indicating whether the method requires injection of suspended response context.java.lang.StringtoString()
-
-
-
Field Detail
-
type
private final ResourceMethod.JaxrsType type
-
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
-
getType
ResourceMethod.JaxrsType getType()
Get the JAX-RS method type.- Returns:
- the JAX-RS method type.
-
getHttpMethod
java.lang.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
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:
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
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:
trueif 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:
toStringin classjava.lang.Object
-
-