public class QueryOptionsListHandle extends BaseHandle<InputStream,OperationNotSupported> implements QueryOptionsListReadHandle, QueryOptionsListResults
A QueryOptionsListHandle is used to access the list of named query options that exist on the server.
UNKNOWN_LENGTH| Constructor and Description |
|---|
QueryOptionsListHandle()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
HashMap<String,String> |
getValuesMap()
Returns a HashMap of the named query options from the server.
|
void |
setFormat(Format format)
Sets the format associated with this handle.
|
QueryOptionsListHandle |
withFormat(Format format)
Fluent setter for the format associated with this handle.
|
getByteLength, getFormat, getMimetype, getServerTimestamp, setByteLength, setMimetype, setServerTimestamppublic void setFormat(Format format)
Sets the format associated with this handle.
This handle only supports XML.
setFormat in interface ContentDescriptorsetFormat in class BaseHandle<InputStream,OperationNotSupported>format - The format, which must be Format.XML or an exception will be raised.public QueryOptionsListHandle withFormat(Format format)
Fluent setter for the format associated with this handle.
This handle only supports XML.
format - The format, which must be Format.XML or an exception will be raised.public HashMap<String,String> getValuesMap()
Returns a HashMap of the named query options from the server.
The keys are the names of the query options, the values are the corresponding URIs on the server.
getValuesMap in interface QueryOptionsListResultsCopyright © 2013-2017 MarkLogic Corporation.