org.edg.info
Class Decoder

java.lang.Object
  extended byorg.edg.info.Decoder

public class Decoder
extends java.lang.Object

used for decoding a PublisherDescription. Could become a placeholder for other servlet code that can't be tested.


Method Summary
static org.edg.info.system.PublisherDescription decodePublisherDescription(java.lang.String code)
          Retrieves a PublisherDescription from it's String representation.
static java.lang.String getQuery(java.lang.String[] tableNames, java.lang.String predicate)
          Reconstructs a SELECT query from a list of table names and a predicate (WHERE clause).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getQuery

public static java.lang.String getQuery(java.lang.String[] tableNames,
                                        java.lang.String predicate)
Reconstructs a SELECT query from a list of table names and a predicate (WHERE clause).

Parameters:
tableNames -
predicate -
Returns:

decodePublisherDescription

public static org.edg.info.system.PublisherDescription decodePublisherDescription(java.lang.String code)
                                                                           throws org.glite.rgma.system.RGMAException
Retrieves a PublisherDescription from it's String representation.

Parameters:
code - the request string that combines the connection ID and Servlet URL.
Returns:
a PublisherDescription based on the connection ID, Servlet URL and flag
Throws:
org.glite.rgma.system.RGMAException - if an error occurs when looking for the connection ID.