public final class Invocable extends Object implements Parameterized, ResourceModelComponent
ResourceMethod,
ResourceMethodDispatcher| Modifier and Type | Method and Description |
|---|---|
void |
accept(ResourceModelVisitor visitor)
A component should call the visitor back with an appropriate
visitor interface method to give it a chance to process.
|
static Invocable |
create(Class<? extends Inflector> inflectorClass)
Create a new resource method invocable model backed by an inflector class.
|
static <T> Invocable |
create(Inflector<javax.ws.rs.core.Request,T> inflector)
Create a new resource method invocable model backed by an inflector instance.
|
static Invocable |
create(MethodHandler handler,
Method handlingMethod)
Create a new resource method invocable model.
|
static Invocable |
create(MethodHandler handler,
Method handlingMethod,
boolean encodedParameters)
Create a new resource method invocable model.
|
static Invocable |
create(MethodHandler handler,
Method handlingMethod,
Method validateMethod,
boolean encodedParameters)
Create a new resource method invocable model.
|
List<? extends ResourceModelComponent> |
getComponents()
Should return all existing resource model sub-components.
|
MethodHandler |
getHandler()
Get the model of the resource method handler that will be used to invoke
the
handling resource method on. |
Method |
getHandlingMethod()
Getter for the Java method
|
List<Parameter> |
getParameters()
Provides access to all parameters associated with given Parameterized instance.
|
Class<?> |
getRawResponseType()
Get the resource method raw response type.
|
Type |
getResponseType()
Get the resource method generic response type information.
|
Method |
getValidateMethod()
Getter for the Java method used during resource bean validation phase.
|
List<org.glassfish.hk2.api.Factory<?>> |
getValueProviders(org.glassfish.hk2.api.ServiceLocator locator)
Returns list of
value providers which provides
values for parameters of this Invocable returned by getParameters(). |
boolean |
isInflector()
Check if the invocable represents an
inflector
processing method. |
boolean |
requiresEntity()
Provides information on presence of an entity parameter.
|
String |
toString() |
public static <T> Invocable create(Inflector<javax.ws.rs.core.Request,T> inflector)
inflector - inflector processing the request method.public static Invocable create(Class<? extends Inflector> inflectorClass)
inflectorClass - inflector syb-type processing the request method.public static Invocable create(MethodHandler handler, Method handlingMethod)
handler - resource method handler.handlingMethod - handling Java method.public static Invocable create(MethodHandler handler, Method handlingMethod, boolean encodedParameters)
handler - resource method handler.handlingMethod - handling Java method.encodedParameters - true if the automatic parameter decoding
should be disabled, false otherwise.public static Invocable create(MethodHandler handler, Method handlingMethod, Method validateMethod, boolean encodedParameters)
handler - resource method handler.handlingMethod - handling Java method.validateMethod - method used during resource bean validation phase.encodedParameters - true if the automatic parameter decoding
should be disabled, false otherwise.public MethodHandler getHandler()
handling resource method on.public Method getHandlingMethod()
public Method getValidateMethod()
public Type getResponseType()
The returned value provides the Type information that contains additional generic declaration information for generic Java class types.
public Class<?> getRawResponseType()
The returned value provides information about the raw Java class.
public boolean isInflector()
inflector
processing method.true, if this invocable represents an inflector invocation,
false otherwise.public List<org.glassfish.hk2.api.Factory<?>> getValueProviders(org.glassfish.hk2.api.ServiceLocator locator)
value providers which provides
values for parameters of this Invocable returned by getParameters(). Value providers are ordered in the same
order as parameters.locator - HK2 service locator.public boolean requiresEntity()
ParameterizedrequiresEntity in interface Parameterizedpublic List<Parameter> getParameters()
ParameterizedgetParameters in interface Parameterizedpublic void accept(ResourceModelVisitor visitor)
ResourceModelComponentaccept in interface ResourceModelComponentvisitor - resource model visitor.public List<? extends ResourceModelComponent> getComponents()
ResourceModelComponentgetComponents in interface ResourceModelComponentCopyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.