nl.justobjects.pushlet.util
Class Servlets

java.lang.Object
  extended by nl.justobjects.pushlet.util.Servlets

public class Servlets
extends java.lang.Object

Servlet utilities.

Version:
$Id: Servlets.java,v 1.2 2007/11/23 21:10:17 justb Exp $
Author:
Just van den Broecke - Just Objects ©

Constructor Summary
Servlets()
           
 
Method Summary
static java.lang.String getParameter(javax.servlet.http.HttpServletRequest aRequest, java.lang.String aName)
          Get parameter; if not set or empty return null.
static java.lang.String getParameter(javax.servlet.http.HttpServletRequest aRequest, java.lang.String aName, java.lang.String aDefault)
          Get parameter; if not set or empty return specified default value.
static void setNoCacheHeaders(javax.servlet.http.HttpServletResponse aResponse)
          Set HTTP headers to prevent caching.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Servlets

public Servlets()
Method Detail

getParameter

public static java.lang.String getParameter(javax.servlet.http.HttpServletRequest aRequest,
                                            java.lang.String aName)
Get parameter; if not set or empty return null.


getParameter

public static java.lang.String getParameter(javax.servlet.http.HttpServletRequest aRequest,
                                            java.lang.String aName,
                                            java.lang.String aDefault)
Get parameter; if not set or empty return specified default value.


setNoCacheHeaders

public static void setNoCacheHeaders(javax.servlet.http.HttpServletResponse aResponse)
Set HTTP headers to prevent caching.



Copyright 2000-2003 - Just Objects B.V.