Class WeatherResource
java.lang.Object
org.apache.camel.quarkus.component.weather.it.WeatherResource
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.apache.camel.ConsumerTemplate(package private) org.apache.camel.ProducerTemplate(package private) String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsegetWeather(String location) jakarta.ws.rs.core.ResponsegetWeatherByCoordinate(String latitude, String longitude) jakarta.ws.rs.core.ResponsegetWeatherByIds(String ids) jakarta.ws.rs.core.ResponsegetWeatherByLocation(String location) jakarta.ws.rs.core.ResponsegetWeatherByPeriod(String location, String period) jakarta.ws.rs.core.ResponsegetWeatherByZip(String zip)
-
Field Details
-
producerTemplate
@Inject org.apache.camel.ProducerTemplate producerTemplate -
consumerTemplate
@Inject org.apache.camel.ConsumerTemplate consumerTemplate -
weatherApiId
String weatherApiId
-
-
Constructor Details
-
WeatherResource
public WeatherResource()
-
-
Method Details
-
getWeatherByLocation
@Path("location/{location}") @GET @Produces("application/json") public jakarta.ws.rs.core.Response getWeatherByLocation(@PathParam("location") String location) -
getWeatherByCoordinate
-
getWeatherByZip
@Path("zip/{zip}") @GET @Produces("application/json") public jakarta.ws.rs.core.Response getWeatherByZip(@PathParam("zip") String zip) -
getWeatherByIds
@Path("ids/{ids}") @GET @Produces("application/json") public jakarta.ws.rs.core.Response getWeatherByIds(@PathParam("ids") String ids) -
getWeatherByPeriod
-
getWeather
@Path("{location}") @GET @Produces("application/json") public jakarta.ws.rs.core.Response getWeather(@PathParam("location") String location) throws Exception - Throws:
Exception
-