dispatcher.forward(request, response);
}
@Override
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
CacheBuilder cacheBuilder = (CacheBuilder) getServletContext().getAttribute("cacheBuilder");
String searchGBAN = request.getParameter("vGBAN");
request.setAttribute("total", searchGBAN);
//check the influenza cache first
Influenza_N_P_CR_Element myRec = influenzaCache.get(searchGBAN);
if (myRec != null) {
myLogger.trace("Searching nucleiodCache for " + myRec.getGanNucleoid());
Nucleotide_Protein_Element nucldet = nucleiodCache.get(myRec.getGanNucleoid());
request.setAttribute("Nucleotide", nucldet);
// Display the protein details
Map<String, String> myProt = myRec.getProtein_Data();
Map<String, String> myMap = new HashMap<String, String>();
for (String x : myProt.keySet()) {
myLogger.trace("Searching proteinCache for " + x);
Nucleotide_Protein_Element myProtdet = proteinCache.get(x);
String protein_CR = myProt.get(x);
myMap.put(myProtdet.getGenbankAccessionNumber(), protein_CR);
}
request.setAttribute("PMap", myMap);
}
//Retrieve the cache cluster memebers
List<Address> myList = cacheBuilder.getCacheManager().getMembers();
List<String> k = new ArrayList<String>();
for (Address ad : myList)
k.add(ad.toString());
request.setAttribute("CMap", k);