@ThreadRestricted(value="constructor") public final class HarvestWAP extends Call
http://reluk.ca:8080/v/wap?wCall=hHarvest&hPoll=Sys/p/sandbox&hUser=Jill-ProviderNet&hStartDate=1330969452&wPretty
These are the specific parameters for the harvest cache API. See also the general parameters for the web API. The examples shown below assume a call prefix of 'h', but the actual prefix depends on the wCall request parameter. Newest are first in the returned JSON Array.
| Key | Value | Default |
|---|---|---|
| hPoll | Names the poll. | Empty, optional item. |
| hUser | Specify 'hUser=Jim-MailCom' to request messages from a specific user(s). | Empty, optional item. |
| hId | Specify 'hId=1234' to only request messages newer than this serial. This allows you to update a list by only fetching newer slices. | Empty, optional item. |
The response includes the following components. These are shown in JSON format, with explanatory comments:
{
"h": [
{
"id": 16,
"sender": "Mike-ZeleaCom",
"message": {
"content": "At the bottom: (That's our new hack/prototype of a difference bridge. It's ugly as sin. It works poorly on these drafts too, because of the long wrapped ",
"location": "http://mail.zelea.com/list/votorola/2010-May/000369.html"
},
"difference": {
"key": "2891.2893",
"selectand": "a"
}
},
}
| Modifier and Type | Field and Description |
|---|---|
static String |
CALL_TYPE
The name to use in the
wCall query parameter, which is * * *
* "Harvest" . |
| Constructor and Description |
|---|
HarvestWAP(String _prefix,
Requesting _req,
ResponseConfiguration _resConfig)
Constructs a HarvestWAP.
|
| Modifier and Type | Method and Description |
|---|---|
void |
respond(Responding res)
Servlet response, streaming out JSON from the
DiffMessageTable.
|
public static final String CALL_TYPE
wCall query parameter, which is * * *
* "Harvest" . For example: wCall=hHarvest.public HarvestWAP(String _prefix, Requesting _req, ResponseConfiguration _resConfig) throws HTTPRequestException
_prefix - _req - _resConfig - HTTPRequestExceptionpublic void respond(Responding res) throws IOException
respond in class CallIOException