Class MongoUtils
java.lang.Object
org.eclipse.jetty.nosql.mongodb.MongoUtils
Some utility methods for manipulating mongo data. This class facilitates testing.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic StringdecodeName(String name) static ObjectdecodeValue(Object valueToDecode) static ObjectencodeName(Object value) static StringencodeName(String name) static ObjectgetNestedValue(org.bson.Document sessionDocument, String nestedKey) Dig through a given dbObject for the nested value 
- 
Constructor Details
- 
MongoUtils
public MongoUtils() 
 - 
 - 
Method Details
- 
decodeValue
- Returns:
 - the decoded object value from MongoDB binary data
 - Throws:
 IOExceptionClassNotFoundException
 - 
decodeName
 - 
encodeName
 - 
encodeName
- Returns:
 - the encoded object value suitable for MongoDB storage
 - Throws:
 IOException
 - 
getNestedValue
 
 -