|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.wabit.dao.HttpMessageSender<JSONObject>
ca.sqlpower.wabit.dao.json.JSONHttpMessageSender
public class JSONHttpMessageSender
An HttpMessageSender implementation that specifically sends it's
message content in the JSON format. (see www.json.org).
| Constructor Summary | |
|---|---|
JSONHttpMessageSender(org.apache.http.client.HttpClient httpClient,
WabitServerInfo serverInfo,
java.lang.String wabitWorkspaceUUID)
|
|
| Method Summary | |
|---|---|
void |
clear()
Empties the current queue of messages to be sent. |
void |
flush()
Should the implementation support buffering, calling this will clear the buffered messages and send them. |
void |
send(JSONObject content)
Adds a message for sending. |
| Methods inherited from class ca.sqlpower.wabit.dao.HttpMessageSender |
|---|
getHttpClient, getServerInfo, getServerURI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSONHttpMessageSender(org.apache.http.client.HttpClient httpClient,
WabitServerInfo serverInfo,
java.lang.String wabitWorkspaceUUID)
| Method Detail |
|---|
public void send(JSONObject content)
throws WabitPersistenceException
MessageSenderMessageSender.flush() to actually send the
messages.
WabitPersistenceException
public void flush()
throws WabitPersistenceException
MessageSender
WabitPersistenceExceptionpublic void clear()
MessageSender
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||