uk.ac.ebi.microarray.zooma.service.impl
Class AjaxZoomaBean

java.lang.Object
  extended by uk.ac.ebi.microarray.zooma.service.impl.AjaxZoomaBean

public class AjaxZoomaBean
extends java.lang.Object

An ajaxified wrapper around an ZoomaService. This class simply delegates any calls to the ajaxified method generateZoomaResponse(javax.servlet.http.HttpSession, net.sf.json.JSONObject) to the underlying service, extracting the required params from the submitted json parameter first.

Author:
Tony Burdett

Constructor Summary
AjaxZoomaBean()
           
 
Method Summary
 net.sf.json.JSONObject generateZoomaResponse(javax.servlet.http.HttpSession session, net.sf.json.JSONObject json)
          Generates a JSON response to the supplied query parameter json.
 void setZoomaService(ZoomaService zoomaService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxZoomaBean

public AjaxZoomaBean()
Method Detail

setZoomaService

public void setZoomaService(ZoomaService zoomaService)

generateZoomaResponse

public net.sf.json.JSONObject generateZoomaResponse(javax.servlet.http.HttpSession session,
                                                    net.sf.json.JSONObject json)
Generates a JSON response to the supplied query parameter json. The JSON object passed as a parameter must look like:

   {
     "value": [***]
   }
 

Parameters:
session - the current http session
json - the json query parameter
Returns:
a json object describing mappings


Copyright © 2010. All Rights Reserved.