org.ektorp
Class Options

java.lang.Object
  extended by org.ektorp.Options

public class Options
extends Object

Author:
henrik

Constructor Summary
Options()
           
 
Method Summary
 Map<String,String> getOptions()
           
 Options includeConflicts()
          The loaded doc will include the special field '_conflicts' that contains all the conflicting revisions of the document.
 Options includeRevisions()
          The loaded doc will include the special field '_revisions' that describes all document revisions that exists in the database.
 boolean isEmpty()
           
 Options param(String name, String value)
          Adds a parameter to the GET request sent to the database.
 Options revision(String rev)
          Retrieve a specific revision of the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Options

public Options()
Method Detail

includeConflicts

public Options includeConflicts()
The loaded doc will include the special field '_conflicts' that contains all the conflicting revisions of the document.

Returns:

includeRevisions

public Options includeRevisions()
The loaded doc will include the special field '_revisions' that describes all document revisions that exists in the database.

Returns:

revision

public Options revision(String rev)
Retrieve a specific revision of the document.

Returns:

param

public Options param(String name,
                     String value)
Adds a parameter to the GET request sent to the database.

Parameters:
name -
value -
Returns:

getOptions

public Map<String,String> getOptions()

isEmpty

public boolean isEmpty()


Copyright © 2011. All Rights Reserved.