org.utgenome.gwt.utgb.server
Class RequestHandlerTable

java.lang.Object
  extended by org.utgenome.gwt.utgb.server.RequestHandlerTable

public class RequestHandlerTable
extends Object

RequestHandlerTable holds a set of RequestHandlers and provides a search function to find a request handler that matches the given web request. When the request URL is "refseq/human/hg18/list.json", and there is an action handler, refseq.list,

  • actionHandlername = "refseq.list"
  • actionSuffix = "json"
  • actionPrefix = ""
  • actionContext = "human/hg18"

    Author:
    leo

    Constructor Summary
    RequestHandlerTable()
               
     
    Method Summary
     void add(String handlerName, Class<RequestHandler> handlerClass)
               
     RequestHandler findHandler(String relativeActionURL)
               
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    RequestHandlerTable

    public RequestHandlerTable()
    Method Detail

    add

    public void add(String handlerName,
                    Class<RequestHandler> handlerClass)
    Parameters:
    handlerName - dot-separated handler name (e.g. admin.login, list, etc.). Dot is optional.
    handlerClass -

    findHandler

    public RequestHandler findHandler(String relativeActionURL)


    Copyright © 2007-2012 utgenome.org. All Rights Reserved.