discovery
Class DiscoveryService
java.lang.Object
discovery.DiscoveryService
public class DiscoveryService
- extends java.lang.Object
The DiscoveryService is the controller class in the discovery service. It starts the request
parsing and response creation.
- Author:
- Gunn Olaussen & Kirsti N. Torgersen
Field Summary |
static boolean |
DEBUG
|
Method Summary |
static void |
debug(DiscoQuery req,
DiscoResponse res)
This method is used when in debug mode to write the last incomming request/response pair
to a file. |
static java.lang.String |
getOfferings(javax.servlet.http.HttpServletRequest req)
This method is the static method called from the JSP page to make a request for the
discovery service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public static final boolean DEBUG
- See Also:
- Constant Field Values
DiscoveryService
public DiscoveryService()
getOfferings
public static java.lang.String getOfferings(javax.servlet.http.HttpServletRequest req)
- This method is the static method called from the JSP page to make a request for the
discovery service. This method parses the request and creates a response if possible. If
the query is properly formated and the data requested is present, a response containing
the service offerings is made. Otherwise a message containing the status FAILED is
returned.
- Parameters:
req
- HttpServletRequest The discovery service request
- Returns:
- String The response message
debug
public static void debug(DiscoQuery req,
DiscoResponse res)
- This method is used when in debug mode to write the last incomming request/response pair
to a file.
- Parameters:
req
- DiscoQuery The incomming requestres
- DiscoResponse The response that was created