org.utgenome.gwt.utgb.server.util
Class ServletUtil

java.lang.Object
  extended by org.utgenome.gwt.utgb.server.util.ServletUtil

public class ServletUtil
extends Object

Utilities to handle servlet context

Author:
leo

Constructor Summary
ServletUtil()
           
 
Method Summary
static String getParameter(javax.servlet.http.HttpServletRequest request, String key, String defalutValue)
          Gets the http request parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletUtil

public ServletUtil()
Method Detail

getParameter

public static String getParameter(javax.servlet.http.HttpServletRequest request,
                                  String key,
                                  String defalutValue)
Gets the http request parameter

Parameters:
request - the servlet request
key - the parameter key
defalutValue - the default value to be returned when the requested parameter is not found
Returns:
the parameter value of the specified key.


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