Class GHPointParam

java.lang.Object
io.dropwizard.jersey.params.AbstractParam<GHPoint>
com.graphhopper.http.GHPointParam

public class GHPointParam extends io.dropwizard.jersey.params.AbstractParam<GHPoint>
This is a glue type, used to plug GHPoint as a custom web resource parameter type into Dropwizard, in order to get the best handling of exceptions, validation messages, and such. The structure of this class (including both delegating constructors) should probably be left exactly as it is, and behavior implemented with this should be under tests, because Dropwizard slurps it in by reflection, and I don't know how stable that is over Dropwizard versions. This is only for annotated parameters that go directly into web resources, especially as a QueryParam. Don't use it for fields in body types that go through Jackson ("entities").
Author:
michaz
  • Constructor Details

    • GHPointParam

      public GHPointParam(String input)
    • GHPointParam

      public GHPointParam(String input, String parameterName)
  • Method Details

    • parse

      protected GHPoint parse(String input)
      Specified by:
      parse in class io.dropwizard.jersey.params.AbstractParam<GHPoint>