public static class BoxRequestsEvent.GetUserEvents extends BoxRequest<E,R>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.Methods| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FIELD_LIMIT |
static java.lang.String |
FIELD_STREAM_POSITION |
static java.lang.String |
FIELD_STREAM_TYPE |
static java.lang.String |
STREAM_TYPE_ALL |
static java.lang.String |
STREAM_TYPE_CHANGES |
static java.lang.String |
STREAM_TYPE_SYNC |
JSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mSession| Constructor and Description |
|---|
BoxRequestsEvent.GetUserEvents(java.lang.String requestUrl,
BoxSession session)
Creates a user event stream request with the default parameters.
|
| Modifier and Type | Method and Description |
|---|---|
E |
send()
Synchronously make the request to Box and handle the response appropriately.
|
R |
setFilterDuplicates(boolean filterDuplicates)
Sets whether or not the list of events contains duplicates which can be returned due to syncing issues.
|
R |
setLimit(int limit)
Sets the maximum number of events to return in the list of events.
|
R |
setPreviousListEvents(E listEvents)
Convenience method.
|
R |
setStreamPosition(java.lang.String streamPosition)
Sets the stream position of items that should be returned.
|
BoxRequestsEvent.GetUserEvents |
setStreamType(java.lang.String streamType)
Sets the stream type to limit the type of events in the response.
|
buildUrl, createHttpRequest, createQuery, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getStringBody, importRequestContentMapsFrom, logDebug, logRequest, parseHashMapEntry, parseJsonObject, setBody, setContentType, setHeaders, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic static final java.lang.String STREAM_TYPE_ALL
public static final java.lang.String STREAM_TYPE_CHANGES
public static final java.lang.String STREAM_TYPE_SYNC
public static final java.lang.String FIELD_STREAM_POSITION
public static final java.lang.String FIELD_STREAM_TYPE
public static final java.lang.String FIELD_LIMIT
public BoxRequestsEvent.GetUserEvents(java.lang.String requestUrl,
BoxSession session)
requestUrl - URL for the events endpoint.session - the authenticated session that will be used to make the request with.public BoxRequestsEvent.GetUserEvents setStreamType(java.lang.String streamType)
streamType - type of events to return. Can be "all", "changes", or "sync".public R setStreamPosition(java.lang.String streamPosition)
streamPosition - stream position to start from for returning events.public R setLimit(int limit)
limit - max number of events to request.public R setFilterDuplicates(boolean filterDuplicates)
filterDuplicates - true to do duplicate removal, false to allow returned list to contain the duplicates.public R setPreviousListEvents(E listEvents)
listEvents - A list of events to add to.public E send()
throws BoxException
BoxRequestsend in class BoxRequest<E extends BoxJsonObject,R extends BoxRequest<E,R>>BoxException - thrown if there was a problem with handling the request.