Purple Code

com.purpletech.util
Class ServletUtils

java.lang.Object
  |
  +--com.purpletech.util.ServletUtils

public class ServletUtils
extends java.lang.Object


Constructor Summary
ServletUtils()
           
 
Method Summary
static EntryList getParameterList(javax.servlet.ServletRequest request)
          Return all parameters as a java.util.List of Map.Entry records
static java.lang.String getParamString(javax.servlet.ServletRequest request)
          Get a string containing all the current parameters in HTTP GET format (foo=bar&baf=baz)
static java.lang.String getParamString(javax.servlet.ServletRequest request, java.lang.String[] exclude)
           
static java.lang.String getRedirectString(javax.servlet.http.HttpServletRequest request)
          Get a URI that will redirect the browser to this page, suitable for embedding in a GET request, as <input type=hidden name=redirect value="<%=ServletUtils.getRedirectString(request)%>"%gt;
static java.lang.String getRedirectString(javax.servlet.http.HttpServletRequest request, java.lang.String[] exclude)
           
static java.lang.String makelink(java.lang.String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletUtils

public ServletUtils()
Method Detail

makelink

public static java.lang.String makelink(java.lang.String url)

getParameterList

public static EntryList getParameterList(javax.servlet.ServletRequest request)
Return all parameters as a java.util.List of Map.Entry records


getRedirectString

public static java.lang.String getRedirectString(javax.servlet.http.HttpServletRequest request)
Get a URI that will redirect the browser to this page, suitable for embedding in a GET request, as <input type=hidden name=redirect value="<%=ServletUtils.getRedirectString(request)%>"%gt;


getRedirectString

public static java.lang.String getRedirectString(javax.servlet.http.HttpServletRequest request,
                                                 java.lang.String[] exclude)

getParamString

public static java.lang.String getParamString(javax.servlet.ServletRequest request)
Get a string containing all the current parameters in HTTP GET format (foo=bar&baf=baz)


getParamString

public static java.lang.String getParamString(javax.servlet.ServletRequest request,
                                              java.lang.String[] exclude)

Documentation generated March 5 2003