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.
|
execute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
public static final int MAX_ALLOWED_PER_REQUEST
public URL getRequestUrl()
getRequestUrl
in interface RequestBuilder
public RequestBuilder setHeartBeatId(int hid)
RequestBuilder
setHeartBeatId
in interface RequestBuilder
hid
- Heartbeat IDpublic RequestBuilder setHeartBeatId(String hid)
RequestBuilder
setHeartBeatId
in interface RequestBuilder
hid
- Heartbeat ID stringpublic RequestBuilder setAddedAfterDate(org.joda.time.DateTime afterDate)
RequestBuilder
setAddedAfterDate
in interface RequestBuilder
afterDate
- the DateTime
instance representing the after datepublic RequestBuilder setAddedBeforeDate(org.joda.time.DateTime beforeDate)
RequestBuilder
setAddedBeforeDate
in interface RequestBuilder
beforeDate
- the DateTime
instance representing the before datepublic RequestBuilder setReturnSetSize(long size)
RequestBuilder
setReturnSetSize
in interface RequestBuilder
size
- the number of documentspublic RequestBuilder setOffset(long offset)
RequestBuilder
setOffset
in interface RequestBuilder
offset
- the starting offsetCopyright © 2018 The Apache Software Foundation. All rights reserved.