org.experlog.util
Class ESHttpUtils

java.lang.Object
  extended by org.experlog.util.ESHttpUtils

public class ESHttpUtils
extends java.lang.Object


Constructor Summary
ESHttpUtils()
           
 
Method Summary
static java.lang.String getMandatoryParam(javax.servlet.http.HttpServletRequest req, java.lang.String name, java.lang.String msg)
          Get a parameter in an HTTP request: the parameter must be present, otherwise an SQLException is thrown.
static java.lang.String getParamValue(javax.servlet.http.HttpServletRequest req, java.lang.String name)
          Get a parameter in an HTTP request: like HttpServletRequest's getParameter, but the trailing blanks are removed in the value.
static java.lang.String getSessionId(javax.servlet.http.HttpServletRequest req)
          Extract session ID (S_) from HttpServletRequest The session ID should be in the HTTP parameters, but may also be in the HttpSession if cookies are used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ESHttpUtils

public ESHttpUtils()
Method Detail

getMandatoryParam

public static java.lang.String getMandatoryParam(javax.servlet.http.HttpServletRequest req,
                                                 java.lang.String name,
                                                 java.lang.String msg)
                                          throws java.sql.SQLException
Get a parameter in an HTTP request: the parameter must be present, otherwise an SQLException is thrown.

Throws:
java.sql.SQLException

getParamValue

public static java.lang.String getParamValue(javax.servlet.http.HttpServletRequest req,
                                             java.lang.String name)
Get a parameter in an HTTP request: like HttpServletRequest's getParameter, but the trailing blanks are removed in the value.


getSessionId

public static java.lang.String getSessionId(javax.servlet.http.HttpServletRequest req)
Extract session ID (S_) from HttpServletRequest The session ID should be in the HTTP parameters, but may also be in the HttpSession if cookies are used.