Package io.continual.services.rcvr
Class ReceiverApi<I extends Identity>
- java.lang.Object
-
- io.continual.restHttp.ApiContextHelper<I>
-
- io.continual.services.rcvr.ReceiverApi<I>
-
public class ReceiverApi<I extends Identity> extends ApiContextHelper<I>
Handle inbound user events.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.continual.restHttp.ApiContextHelper
ApiContextHelper.ApiHandler<I extends Identity>, ApiContextHelper.MissingInputException, ApiContextHelper.ResourceAccess
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_PARTITIONstatic StringDEFAULT_TOPICstatic intkDefault_MaxSenderStreamSizestatic StringkSetting_MaxSenderStreamSize-
Fields inherited from class io.continual.restHttp.ApiContextHelper
kContinualProductTag, kContinualSystemsGroup, kDefault_AuthLineHeader, kDefault_DateLineHeader, kDefault_MagicLineHeader, kSetting_AuthLineHeader, kSetting_ContinualProductTag, kSetting_DateLineHeader, kSetting_MagicLineHeader
-
-
Constructor Summary
Constructors Constructor Description ReceiverApi(io.continual.services.ServiceContainer sc, org.json.JSONObject prefs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpostEvents(io.continual.http.service.framework.context.CHttpRequestContext context)voidpostEvents(io.continual.http.service.framework.context.CHttpRequestContext context, String topic)voidpostEvents(io.continual.http.service.framework.context.CHttpRequestContext context, String topic, String eventStreamName)voidusage(io.continual.http.service.framework.context.CHttpRequestContext context)-
Methods inherited from class io.continual.restHttp.ApiContextHelper
canUser, getAccountsSvc, getInternalAccts, getUser, getUser, handleWithApiAuth, handleWithApiAuth, handleWithApiAuthAndAccess, handleWithApiAuthAndAccess, makeResource, readBody, readJsonBody, readJsonObject, readJsonString, sendJson, sendJson, sendNotAuth, sendStatusCodeAndMessage, sendStatusOk, sendStatusOk, sendStatusOkNoContent, setupCorsHeaders
-
-
-
-
Field Detail
-
kSetting_MaxSenderStreamSize
public static final String kSetting_MaxSenderStreamSize
- See Also:
- Constant Field Values
-
kDefault_MaxSenderStreamSize
public static final int kDefault_MaxSenderStreamSize
- See Also:
- Constant Field Values
-
DEFAULT_TOPIC
public static final String DEFAULT_TOPIC
- See Also:
- Constant Field Values
-
DEFAULT_PARTITION
public static final String DEFAULT_PARTITION
- See Also:
- Constant Field Values
-
-
Method Detail
-
usage
public void usage(io.continual.http.service.framework.context.CHttpRequestContext context)
-
postEvents
public void postEvents(io.continual.http.service.framework.context.CHttpRequestContext context)
-
postEvents
public void postEvents(io.continual.http.service.framework.context.CHttpRequestContext context, String topic)
-
-