com.browseengine.bobo.server.protocol
Class BrowseJSONSerializer

java.lang.Object
  extended by com.browseengine.bobo.server.protocol.BrowseJSONSerializer

public class BrowseJSONSerializer
extends Object


Field Summary
static short Operation_Type_And
           
static short Operation_Type_Or
           
static short Selection_Type_Path
           
static short Selection_Type_Range
           
static short Selection_Type_Simple
           
 
Constructor Summary
BrowseJSONSerializer()
           
 
Method Summary
static String serialize(BrowseRequest req)
           
static String serialize(BrowseResult result)
           
static org.json.JSONObject serializeHits(BrowseHit hit)
           
static org.json.JSONObject serializeValues(Map<String,String[]> values)
          TODO: need to add support for multiple values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Selection_Type_Simple

public static final short Selection_Type_Simple
See Also:
Constant Field Values

Selection_Type_Path

public static final short Selection_Type_Path
See Also:
Constant Field Values

Selection_Type_Range

public static final short Selection_Type_Range
See Also:
Constant Field Values

Operation_Type_Or

public static final short Operation_Type_Or
See Also:
Constant Field Values

Operation_Type_And

public static final short Operation_Type_And
See Also:
Constant Field Values
Constructor Detail

BrowseJSONSerializer

public BrowseJSONSerializer()
Method Detail

serialize

public static String serialize(BrowseRequest req)

serializeValues

public static org.json.JSONObject serializeValues(Map<String,String[]> values)
                                           throws org.json.JSONException
TODO: need to add support for multiple values.

Parameters:
doc -
Returns:
Throws:
org.json.JSONException

serializeHits

public static org.json.JSONObject serializeHits(BrowseHit hit)
                                         throws org.json.JSONException
Throws:
org.json.JSONException

serialize

public static String serialize(BrowseResult result)
                        throws org.json.JSONException
Throws:
org.json.JSONException


Copyright © 2005-2012. All Rights Reserved.