com.sas.util
Class ServletParamObjectBase

com.sas.util.ServletParamObjectBase

Deprecated. As of version 3.0, this class has been replaced by com.sas.servlet.util.ServletParamObjectBase Base class for Servlet Parameter objects. Servlet Parameter objects are used to retrieve parameters for servlets. Current implementation only supports retrieving servlet init parameters.

public class ServletParamObjectBase


Constructor Summary
ServletParamObjectBase()
          Deprecated. Construct a new (empty) ServletParamObjectBase object.
ServletParamObjectBase(javax.servlet.GenericServlet servlet)
          Deprecated. Construct a new ServletParamObjectBase object using a servlet.
 
Method Summary
 java.lang.String getParam(java.lang.String param)
          Deprecated. Returns the named parameter.
 java.lang.String getParam(java.lang.String param, java.lang.String defaultValue)
          Deprecated. Returns the named parameter.
 

Constructor Detail

ServletParamObjectBase

public ServletParamObjectBase()
Deprecated. 
Construct a new (empty) ServletParamObjectBase object.


ServletParamObjectBase

public ServletParamObjectBase(javax.servlet.GenericServlet servlet)
Deprecated. 
Construct a new ServletParamObjectBase object using a servlet. The init parameters will be read from the servlet which are set via init parameter tags in the tag or other means depending on the Servlet engine being used.

Parameters:
servlet - The servlet
Method Detail

getParam

public java.lang.String getParam(java.lang.String param)
Deprecated. 
Returns the named parameter.

Parameters:
param - Parameter name
Returns:
The parameter value; null if not found

getParam

public java.lang.String getParam(java.lang.String param,
                                 java.lang.String defaultValue)
Deprecated. 
Returns the named parameter. If the parameter is not found, the default value is returned.

Parameters:
param - Parameter name
defaultValue - The default value if the parameter is not found
Returns:
The parameter value



Copyright © 2009 SAS Institute Inc. All Rights Reserved.