org.utgenome.gwt.utgb.server
Class DefaultRequestMap
java.lang.Object
org.utgenome.gwt.utgb.server.DefaultRequestMap
- All Implemented Interfaces:
- RequestMap
public class DefaultRequestMap
- extends Object
- implements RequestMap
DefaultRequestMap 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 = "list" actionSuffix = "json" actionPrefix = "refseq/human/hg18"
- Author:
- leo
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultRequestMap
public DefaultRequestMap()
loadActionPackage
public static void loadActionPackage(ClassLoader classLoader,
String packageName,
String actionPrefix)
getJavaClass
public static Class<?> getJavaClass(ClassLoader classLoader,
org.xerial.util.io.VirtualFile vf,
String baseJavaPackage)
findRequestHandlerClass
protected static Class<RequestHandler> findRequestHandlerClass(String handlerName)
findRequestHandler
protected static RequestHandler findRequestHandler(String handlerName)
map
public RequestHandler map(RequestURI requestURI,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- Specified by:
map
in interface RequestMap
- Returns:
Copyright © 2007-2012 utgenome.org. All Rights Reserved.