public class ContentRequestBuilder extends AbstractRequestBuilder implements RequestBuilder
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_ALLOWED_PER_REQUEST
The max number of items you are allowed to get per request.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ContentRequestBuilder(String baseUrl,
String apiKey)
Constructs a new ContentRequestBuilder for the specified API key and Sysomos URL.
|
| Modifier and Type | Method and Description |
|---|---|
URL |
getRequestUrl()
Gets the Request URL based on the local fields.
|
RequestBuilder |
setAddedAfterDate(org.joda.time.DateTime afterDate)
Sets the date after which documents should be returned from Sysomos.
|
RequestBuilder |
setAddedBeforeDate(org.joda.time.DateTime beforeDate)
Sets the date before which documents should be returned from Sysomos.
|
RequestBuilder |
setHeartBeatId(int hid)
Sets the Sysomos Heartbeat ID.
|
RequestBuilder |
setHeartBeatId(String hid)
Sets the Sysomos Heartbeat ID as a String.
|
RequestBuilder |
setOffset(long offset)
Sets the starting offset for the number of documents given the other parameters.
|
RequestBuilder |
setReturnSetSize(long size)
Sets the size of the expected response.
|
executeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecutepublic static final int MAX_ALLOWED_PER_REQUEST
public URL getRequestUrl()
getRequestUrl in interface RequestBuilderpublic RequestBuilder setHeartBeatId(int hid)
RequestBuildersetHeartBeatId in interface RequestBuilderhid - Heartbeat IDpublic RequestBuilder setHeartBeatId(String hid)
RequestBuildersetHeartBeatId in interface RequestBuilderhid - Heartbeat ID stringpublic RequestBuilder setAddedAfterDate(org.joda.time.DateTime afterDate)
RequestBuildersetAddedAfterDate in interface RequestBuilderafterDate - the DateTime instance representing the after datepublic RequestBuilder setAddedBeforeDate(org.joda.time.DateTime beforeDate)
RequestBuildersetAddedBeforeDate in interface RequestBuilderbeforeDate - the DateTime instance representing the before datepublic RequestBuilder setReturnSetSize(long size)
RequestBuildersetReturnSetSize in interface RequestBuildersize - the number of documentspublic RequestBuilder setOffset(long offset)
RequestBuildersetOffset in interface RequestBuilderoffset - the starting offsetCopyright © 2018 The Apache Software Foundation. All rights reserved.