Class VoidVoidDispatcherProvider
java.lang.Object
org.glassfish.jersey.server.model.internal.VoidVoidDispatcherProvider
- All Implemented Interfaces:
ResourceMethodDispatcher.Provider
@Singleton
final class VoidVoidDispatcherProvider
extends Object
implements ResourceMethodDispatcher.Provider
Specific resource method dispatcher for dispatching requests to a void
Java method with no input arguments
using a supplied Java method invocation handler.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final javax.ws.rs.container.ResourceContext -
Constructor Summary
ConstructorsConstructorDescriptionVoidVoidDispatcherProvider(javax.ws.rs.container.ResourceContext resourceContext) -
Method Summary
Modifier and TypeMethodDescriptioncreate(Invocable resourceMethod, InvocationHandler handler, ConfiguredValidator validator) Create aresource method dispatcherfor a giveninvocable resource method.
-
Field Details
-
resourceContext
private final javax.ws.rs.container.ResourceContext resourceContext
-
-
Constructor Details
-
VoidVoidDispatcherProvider
VoidVoidDispatcherProvider(javax.ws.rs.container.ResourceContext resourceContext)
-
-
Method Details
-
create
public ResourceMethodDispatcher create(Invocable resourceMethod, InvocationHandler handler, ConfiguredValidator validator) Description copied from interface:ResourceMethodDispatcher.ProviderCreate aresource method dispatcherfor a giveninvocable resource method. If the provider supports the invocable resource method, it will return a new non-null dispatcher instance configured to invoke the supplied invocable resource method via the providedinvocation handlerwhenever thedispatch(...)method is called on that dispatcher instance.- Specified by:
createin interfaceResourceMethodDispatcher.Provider- Parameters:
resourceMethod- the invocable resource method.handler- invocation handler to be used for the resource method invocation.validator- configured validator to be used for validation during resource method invocation- Returns:
- the resource method dispatcher, or
nullif it could not be created for the given resource method.
-