Class UriBinder

java.lang.Object
nz.org.riskscape.engine.bind.BaseBinder
nz.org.riskscape.engine.bind.TypeSafeBinder<String,URI>
nz.org.riskscape.engine.bind.impl.UriBinder
All Implemented Interfaces:
nz.org.riskscape.engine.bind.ParameterBinder, nz.org.riskscape.engine.Identified

public class UriBinder extends nz.org.riskscape.engine.bind.TypeSafeBinder<String,URI>

Binds strings to a URI by parsing them with URI.create(String)

  • Field Summary

    Fields inherited from class nz.org.riskscape.engine.bind.TypeSafeBinder

    acceptsSourceType, bindsType
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    nz.org.riskscape.problem.ResultOrProblems<URI>
    bindTypedValue(nz.org.riskscape.engine.bind.BindingContext context, String value)
     

    Methods inherited from class nz.org.riskscape.engine.bind.TypeSafeBinder

    bindValue, canBind

    Methods inherited from class nz.org.riskscape.engine.bind.BaseBinder

    bind, getId, wrapLookup, wrapLookupNullOnMissing

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface nz.org.riskscape.engine.Identified

    getIdentifiedClass
  • Constructor Details

    • UriBinder

      public UriBinder()
  • Method Details

    • bindTypedValue

      public nz.org.riskscape.problem.ResultOrProblems<URI> bindTypedValue(nz.org.riskscape.engine.bind.BindingContext context, String value) throws nz.org.riskscape.engine.bind.ParameterBindingException
      Specified by:
      bindTypedValue in class nz.org.riskscape.engine.bind.TypeSafeBinder<String,URI>
      Throws:
      nz.org.riskscape.engine.bind.ParameterBindingException