public static class BoxRequestsEvent.GetEnterpriseEvents extends BoxRequest<E,R>
BoxRequest.BoxRequestHandler, BoxRequest.ContentTypes, BoxRequest.Methods| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FIELD_CREATED_AFTER |
static java.lang.String |
FIELD_CREATED_BEFORE |
static java.lang.String |
FIELD_LIMIT |
static java.lang.String |
FIELD_STREAM_POSITION |
static java.lang.String |
FIELD_STREAM_TYPE |
protected static java.lang.String |
STREAM_TYPE |
static java.lang.String |
STREAM_TYPE_ALL |
static java.lang.String |
STREAM_TYPE_CHANGES |
static java.lang.String |
STREAM_TYPE_SYNC |
mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mSession| Constructor and Description |
|---|
BoxRequestsEvent.GetEnterpriseEvents(java.lang.String requestUrl,
BoxSession session)
Creates an enterprise event stream with the default parameters.
|
| Modifier and Type | Method and Description |
|---|---|
E |
send()
Synchronously make the request to Box and handle the response appropriately.
|
BoxRequestsEvent.GetEnterpriseEvents |
setCreatedAfter(java.util.Date date)
Sets the lower bound on the timestamp of events returned in the request.
|
BoxRequestsEvent.GetEnterpriseEvents |
setCreatedBefore(java.util.Date date)
Sets the upper bound on the timestamp of events returned in the request.
|
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.
|
protected R |
setStreamType(java.lang.String streamType)
Limits the type of events returned.
|
buildUrl, createHttpRequest, createQuery, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getStringBody, importRequestContentMapsFrom, logDebug, parseHashMapEntry, parseJsonObject, setBody, setContentType, setHeaders, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic static final java.lang.String FIELD_CREATED_AFTER
public static final java.lang.String FIELD_CREATED_BEFORE
protected static final java.lang.String STREAM_TYPE
public 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.GetEnterpriseEvents(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.GetEnterpriseEvents setCreatedAfter(java.util.Date date)
date - date events should be created after.public BoxRequestsEvent.GetEnterpriseEvents setCreatedBefore(java.util.Date date)
date - date events should be created before.public R setStreamPosition(java.lang.String streamPosition)
streamPosition - stream position to start from for returning events.protected R setStreamType(java.lang.String streamType)
streamType - the type of events to get.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.