@ThreadRestricted(value="constructor") public final class PollspaceWAP extends Call
vocount
. Calls to this interface are conventionally prefixed by 'ps'
(wCall=psPollspace
). If you choose a different prefix, then adjust the
parameter names below accordingly. An example request is:
http://reluk.ca:8080/v/wap?wCall=psPollspace&wPretty
The response includes the following components. These are shown in JSON format with explanatory comments:
{ "ps": [ // or other prefix, per wCall query parameter // Compiled polls in natural order: { "name": "POLL NAME 1", "displayTitle": "DISPLAY TITLE", // if any "issueType": "ISSUE TYPE" }, { "name": "POLL NAME 2", "issueType": "ISSUE TYPE" } // and so on, up to 500 ] }
Modifier and Type | Field and Description |
---|---|
static String |
CALL_TYPE
The name to use in the
wCall query parameter, which is "Pollspace". |
static int |
MAX_RESPONSE_SIZE
The maximum number of polls returned per response.
|
Constructor and Description |
---|
PollspaceWAP(String prefix,
Requesting req,
ResponseConfiguration resConfig)
Constructs a PollspaceWAP.
|
Modifier and Type | Method and Description |
---|---|
void |
respond(Responding res)
Responds to the call.
|
public static final String CALL_TYPE
wCall
query parameter, which is "Pollspace". For
example: wCall=psPollspace
.public static final int MAX_RESPONSE_SIZE
public PollspaceWAP(String prefix, Requesting req, ResponseConfiguration resConfig) throws HTTPRequestException
HTTPRequestException
Call.prefix()
,
Call.req()
public void respond(Responding res) throws IOException
Call
respond
in class Call
IOException