Class CountryRest


  • @Path("/rest/geocodes/api/v{version}/countries")
    public class CountryRest
    extends java.lang.Object
    CountryRest
    • Constructor Summary

      Constructors 
      Constructor Description
      CountryRest()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response getCountiesByName​(java.lang.Integer nVersion, java.lang.String strVal, java.lang.String strDateCountry)
      Search Countries
      javax.ws.rs.core.Response getCountry​(java.lang.Integer nVersion, java.lang.String id)
      Get Country
      javax.ws.rs.core.Response getCountryList​(java.lang.Integer nVersion)
      Get Country List
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CountryRest

        public CountryRest()
    • Method Detail

      • getCountryList

        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response getCountryList​(@PathParam("version")
                                                        java.lang.Integer nVersion)
        Get Country List
        Parameters:
        nVersion - the API version
        Returns:
        the Country List
      • getCountry

        @GET
        @Path("/{id}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getCountry​(@PathParam("version")
                                                    java.lang.Integer nVersion,
                                                    @PathParam("id")
                                                    java.lang.String id)
        Get Country
        Parameters:
        nVersion - the API version
        id - the code
        Returns:
        the Country
      • getCountiesByName

        @GET
        @Path("/search/{search}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getCountiesByName​(@PathParam("version")
                                                           java.lang.Integer nVersion,
                                                           @PathParam("search")
                                                           java.lang.String strVal,
                                                           @QueryParam("dateref")
                                                           java.lang.String strDateCountry)
        Search Countries
        Parameters:
        nVersion - the API version
        search - the searched string
        Returns:
        the Countries