Class PathVariableAnnotationBinder<T>
java.lang.Object
io.micronaut.core.bind.annotation.AbstractArgumentBinder<T>
io.micronaut.http.bind.binders.PathVariableAnnotationBinder<T>
- Type Parameters:
T-
- All Implemented Interfaces:
io.micronaut.core.bind.annotation.AnnotatedArgumentBinder<PathVariable, T, HttpRequest<?>>, io.micronaut.core.bind.ArgumentBinder<T, HttpRequest<?>>, AnnotatedRequestArgumentBinder<PathVariable, T>, RequestArgumentBinder<T>
public class PathVariableAnnotationBinder<T>
extends io.micronaut.core.bind.annotation.AbstractArgumentBinder<T>
implements AnnotatedRequestArgumentBinder<PathVariable, T>
Used for binding a parameter exclusively from a path variable.
- Since:
- 1.0.3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder
io.micronaut.core.bind.ArgumentBinder.BindingResult<T> -
Field Summary
Fields inherited from class io.micronaut.core.bind.annotation.AbstractArgumentBinder
conversionService -
Constructor Summary
ConstructorsConstructorDescriptionPathVariableAnnotationBinder(io.micronaut.core.convert.ConversionService conversionService) PathVariableAnnotationBinder(io.micronaut.core.convert.ConversionService conversionService, io.micronaut.core.type.Argument<T> argument) -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.core.bind.ArgumentBinder.BindingResult<T> bind(io.micronaut.core.convert.ArgumentConversionContext<T> context, HttpRequest<?> source) protected StringgetParameterName(io.micronaut.core.type.Argument<T> argument) Methods inherited from class io.micronaut.core.bind.annotation.AbstractArgumentBinder
doBind, doBind, doBind, doBind, doConvert, doConvert, doResolve, doResolve, getFallbackFormat, resolvedParameterNameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RequestArgumentBinder
createSpecific
-
Constructor Details
-
PathVariableAnnotationBinder
public PathVariableAnnotationBinder(io.micronaut.core.convert.ConversionService conversionService) - Parameters:
conversionService- The conversion service
-
PathVariableAnnotationBinder
public PathVariableAnnotationBinder(io.micronaut.core.convert.ConversionService conversionService, io.micronaut.core.type.Argument<T> argument) - Parameters:
conversionService- The conversion serviceargument- The argument
-
-
Method Details
-
getAnnotationType
- Specified by:
getAnnotationTypein interfaceio.micronaut.core.bind.annotation.AnnotatedArgumentBinder<PathVariable, T, HttpRequest<?>>
-
bind
public io.micronaut.core.bind.ArgumentBinder.BindingResult<T> bind(io.micronaut.core.convert.ArgumentConversionContext<T> context, HttpRequest<?> source) - Specified by:
bindin interfaceio.micronaut.core.bind.ArgumentBinder<T, HttpRequest<?>>
-
getParameterName
-