public class PublishRequest extends RequestBase implements BayeuxRequest
| Modifier and Type | Field and Description |
|---|---|
protected static HashMap<String,Object> |
responseTemplate |
channel, clientId, conType, data, desiredConnTypeFlag, event, ext, id, minVersion, reconnectInterval, response, subscription, suppConnTypes, suppConnTypesFlag, timestampFmt, tomcatBayeux, versionCURRENT_REQ_ATTR, JSON_MSG_ARRAY, LAST_REQ_ATTR| Constructor and Description |
|---|
PublishRequest(TomcatBayeux tb,
HttpEvent event,
JSONObject jsReq) |
| Modifier and Type | Method and Description |
|---|---|
int |
process(int prevops)
Send the event message to all registered subscribers.
|
HttpError |
validate()
Check client request for validity.
|
addToDeliveryQueue, deliver, flushMessages, getChannel, getClientId, getEvent, getExt, getId, getJSONArray, getJSONArray, getReconnectInterval, getTimeStamp, getTomcatBayeuxpublic PublishRequest(TomcatBayeux tb, HttpEvent event, JSONObject jsReq) throws JSONException
JSONExceptionpublic HttpError validate()
validate in interface BayeuxRequestvalidate in class RequestBasepublic int process(int prevops)
throws BayeuxException
process in interface BayeuxRequestprocess in class RequestBaseprevops - - the operation requested by the previous request, in case of chained requests.BayeuxException - - if an error was detected, and the appropriate error response couldn't be delivered to the client.Copyright © 2016 JBoss by Red Hat. All rights reserved.