@Path(value="/") public class SubscriptionResource extends Object
Modifier and Type | Field and Description |
---|---|
protected Executor |
executor |
protected ConcurrentHashMap<String,Subscriber> |
subscribers |
Constructor and Description |
---|
SubscriptionResource() |
Modifier and Type | Method and Description |
---|---|
Response |
create(UriInfo uriInfo,
String name) |
void |
longPoll(String name,
AsyncResponse response) |
void |
post(HttpHeaders headers,
byte[] content) |
protected ConcurrentHashMap<String,Subscriber> subscribers
protected Executor executor
@POST @Path(value="subscribers") public Response create(@Context UriInfo uriInfo, @FormParam(value="name") String name)
@POST @Path(value="subscription") public void post(@Context HttpHeaders headers, byte[] content)
@GET @Path(value="subscribers/{name}") public void longPoll(@PathParam(value="name") String name, @Suspended AsyncResponse response)
Copyright © 2015. All Rights Reserved.