com.waveset.session
Class ServletUtil

java.lang.Object
  extended bycom.waveset.session.ServletUtil

public class ServletUtil
extends java.lang.Object


Field Summary
static java.lang.String code_id
           
 
Constructor Summary
ServletUtil()
           
 
Method Summary
static java.lang.Object getAttribute(javax.servlet.http.HttpServletRequest r, java.lang.String name)
          Return the value of an http session attribute
static java.lang.String getHeader(javax.servlet.http.HttpServletRequest r, java.lang.String name)
          Return the value of an http request header, converting empty strings to null.
static java.lang.String getParameter(javax.servlet.http.HttpServletRequest r, java.lang.String name)
          Return the value of a parameter, converting empty strings to null.
static java.lang.String getRemoteUser(javax.servlet.http.HttpServletRequest r)
          Return the value of the http request "remote user" property
static java.util.List getX509Cert(javax.servlet.http.HttpServletRequest r, java.lang.String name)
          For requests made using HTTPS, returns the X509 client certificate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values
Constructor Detail

ServletUtil

public ServletUtil()
Method Detail

getRemoteUser

public static java.lang.String getRemoteUser(javax.servlet.http.HttpServletRequest r)
Return the value of the http request "remote user" property


getAttribute

public static java.lang.Object getAttribute(javax.servlet.http.HttpServletRequest r,
                                            java.lang.String name)
Return the value of an http session attribute


getParameter

public static java.lang.String getParameter(javax.servlet.http.HttpServletRequest r,
                                            java.lang.String name)
Return the value of a parameter, converting empty strings to null.


getHeader

public static java.lang.String getHeader(javax.servlet.http.HttpServletRequest r,
                                         java.lang.String name)
Return the value of an http request header, converting empty strings to null.


getX509Cert

public static java.util.List getX509Cert(javax.servlet.http.HttpServletRequest r,
                                         java.lang.String name)
                                  throws WavesetException
For requests made using HTTPS, returns the X509 client certificate

Throws:
WavesetException