Class WeatherResource
- java.lang.Object
-
- org.apache.camel.quarkus.component.weather.it.WeatherResource
-
@Path("/weather") @ApplicationScoped public class WeatherResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.camel.ConsumerTemplateconsumerTemplate(package private) org.apache.camel.ProducerTemplateproducerTemplate(package private) StringweatherApiId
-
Constructor Summary
Constructors Constructor Description WeatherResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetWeather(String location)javax.ws.rs.core.ResponsegetWeatherByCoordinate(String latitude, String longitude)javax.ws.rs.core.ResponsegetWeatherByIds(String ids)javax.ws.rs.core.ResponsegetWeatherByLocation(String location)javax.ws.rs.core.ResponsegetWeatherByPeriod(String location, String period)javax.ws.rs.core.ResponsegetWeatherByZip(String zip)
-
-
-
Field Detail
-
producerTemplate
@Inject org.apache.camel.ProducerTemplate producerTemplate
-
consumerTemplate
@Inject org.apache.camel.ConsumerTemplate consumerTemplate
-
weatherApiId
String weatherApiId
-
-
Method Detail
-
getWeatherByLocation
@Path("location/{location}") @GET @Produces("application/json") public javax.ws.rs.core.Response getWeatherByLocation(@PathParam("location") String location)
-
getWeatherByCoordinate
@Path("lat/{lat}/lon/{lon}") @GET @Produces("application/json") public javax.ws.rs.core.Response getWeatherByCoordinate(@PathParam("lat") String latitude, @PathParam("lon") String longitude)
-
getWeatherByZip
@Path("zip/{zip}") @GET @Produces("application/json") public javax.ws.rs.core.Response getWeatherByZip(@PathParam("zip") String zip)
-
getWeatherByIds
@Path("ids/{ids}") @GET @Produces("application/json") public javax.ws.rs.core.Response getWeatherByIds(@PathParam("ids") String ids)
-
getWeatherByPeriod
@Path("location/{location}/period/{period}") @GET @Produces("application/json") public javax.ws.rs.core.Response getWeatherByPeriod(@PathParam("location") String location, @PathParam("period") String period)
-
-