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 extends Object>
  • Field Summary

    Fields inherited from class io.micronaut.core.bind.annotation.AbstractArgumentBinder

    conversionService
  • Constructor Summary

    Constructors
    Constructor
    Description
    PathVariableAnnotationBinder(io.micronaut.core.convert.ConversionService conversionService)
     
    PathVariableAnnotationBinder(io.micronaut.core.convert.ConversionService conversionService, io.micronaut.core.type.Argument<T> argument)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.micronaut.core.bind.ArgumentBinder.BindingResult<T>
    bind(io.micronaut.core.convert.ArgumentConversionContext<T> context, HttpRequest<?> source)
     
     
    protected String
    getParameterName(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, resolvedParameterName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.http.bind.binders.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 service
      argument - The argument
  • Method Details

    • getAnnotationType

      public Class<PathVariable> getAnnotationType()
      Specified by:
      getAnnotationType in interface io.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:
      bind in interface io.micronaut.core.bind.ArgumentBinder<T,HttpRequest<?>>
    • getParameterName

      protected String getParameterName(io.micronaut.core.type.Argument<T> argument)
      Overrides:
      getParameterName in class io.micronaut.core.bind.annotation.AbstractArgumentBinder<T>