org.ektorp
Class DbPath

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

public class DbPath
extends Object


Constructor Summary
DbPath(String s)
           
 
Method Summary
 String append(String s)
          Appends the string to the dbPath.
static String escape(String s)
           
static DbPath fromString(String s)
           
 String getAllDocsPath()
           
 String getDbName()
           
 String getPath()
           
static String normalize(String dbName)
           
static void validateDbName(String dbName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbPath

public DbPath(String s)
Method Detail

append

public String append(String s)
Appends the string to the dbPath. The String will be escaped, i.e. dbPath.append("/foo/bar") will become "path/foo%2Fbar"

Parameters:
s -
Returns:

getPath

public String getPath()

escape

public static String escape(String s)

fromString

public static DbPath fromString(String s)

normalize

public static String normalize(String dbName)

validateDbName

public static void validateDbName(String dbName)

getAllDocsPath

public String getAllDocsPath()

getDbName

public String getDbName()


Copyright © 2011. All Rights Reserved.