static class ResourceMethod.Data
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<javax.ws.rs.core.MediaType> |
consumedTypes |
private boolean |
extended |
private java.lang.String |
httpMethod |
private Invocable |
invocable |
private boolean |
managedAsync |
private java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> |
nameBindings |
private java.util.List<javax.ws.rs.core.MediaType> |
producedTypes |
private boolean |
sse |
private boolean |
suspended |
private long |
suspendTimeout |
private java.util.concurrent.TimeUnit |
suspendTimeoutUnit |
private ResourceMethod.JaxrsType |
type |
Modifier | Constructor and 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) |
Modifier and Type | Method and 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() |
private final ResourceMethod.JaxrsType type
private final java.lang.String httpMethod
private final java.util.List<javax.ws.rs.core.MediaType> consumedTypes
private final java.util.List<javax.ws.rs.core.MediaType> producedTypes
private final boolean managedAsync
private final boolean suspended
private final boolean sse
private final long suspendTimeout
private final java.util.concurrent.TimeUnit suspendTimeoutUnit
private final Invocable invocable
private final java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> nameBindings
private final boolean extended
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)
ResourceMethod.JaxrsType getType()
java.lang.String getHttpMethod()
May return null
in case the method represents a sub-resource
locator.
null
in case this method
represents a sub-resource locator.java.util.List<javax.ws.rs.core.MediaType> getConsumedTypes()
java.util.List<javax.ws.rs.core.MediaType> getProducedTypes()
boolean isManagedAsync()
true
if managed async support is declared on the method, false
otherwise.boolean isSuspended()
true
if the method requires injection of suspended response context, false
otherwise.boolean isSse()
true
if the method requires injection of Sse Event Sink, false
otherwise.long getSuspendTimeout()
java.util.concurrent.TimeUnit getSuspendTimeoutUnit()
Invocable getInvocable()
boolean isExtended()
true
if resource is extended.java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> getNameBindings()
public java.lang.String toString()
toString
in class java.lang.Object