Class PubnubResource
- java.lang.Object
-
- org.apache.camel.quarkus.component.pubnub.it.PubnubResource
-
@Path("/pubnub") public class PubnubResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.camel.ConsumerTemplateconsumerTemplate(package private) org.apache.camel.CamelContextcontext(package private) org.apache.camel.ProducerTemplateproducerTemplate(package private) StringpublishKey(package private) StringsecretKey(package private) StringsubscribeKey
-
Constructor Summary
Constructors Constructor Description PubnubResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringfire(String message)StringgetState()intherenow()inthistory()Stringpresence()javax.ws.rs.core.Responsepublish(String channel, String message)com.pubnub.api.PubNubpubNub()voidsetState()Stringsubscribe()
-
-
-
Field Detail
-
publishKey
String publishKey
-
subscribeKey
String subscribeKey
-
secretKey
String secretKey
-
producerTemplate
@Inject org.apache.camel.ProducerTemplate producerTemplate
-
consumerTemplate
@Inject org.apache.camel.ConsumerTemplate consumerTemplate
-
context
@Inject org.apache.camel.CamelContext context
-
-
Method Detail
-
publish
@Path("/publish/{channel}") @POST @Produces("text/plain") public javax.ws.rs.core.Response publish(@PathParam("channel") String channel, String message) throws Exception- Throws:
Exception
-
subscribe
@Path("/subscribe") @GET @Produces("text/plain") public String subscribe() throws Exception- Throws:
Exception
-
fire
@Path("/fire") @POST @Produces("text/plain") public String fire(String message) throws Exception- Throws:
Exception
-
presence
@Path("/presence") @GET @Produces("text/plain") public String presence() throws Exception- Throws:
Exception
-
setState
@Path("/state") @POST @Produces("text/plain") public void setState() throws Exception- Throws:
Exception
-
getState
@Path("/state") @GET @Produces("text/plain") public String getState() throws Exception- Throws:
Exception
-
history
@Path("/history") @GET @Produces("text/plain") public int history() throws Exception- Throws:
Exception
-
herenow
@Path("/herenow") @GET @Produces("text/plain") public int herenow() throws Exception- Throws:
Exception
-
pubNub
@Produces @Singleton @Named public com.pubnub.api.PubNub pubNub()
-
-