All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.anysoft.webloader.ServletRequestProperties Maven / Gradle / Ivy

There is a newer version: 1.6.17
Show newest version
package com.anysoft.webloader;

import javax.servlet.http.HttpServletRequest;

import com.anysoft.util.Properties;

/**
 * A Properties Wrapper for HttpServletRequest.
 * 
 * @author Administrator
 * @version 1.0.1
 *
 */
public class ServletRequestProperties extends Properties {

	protected HttpServletRequest request = null;
	
	/**
	 * Constructor
	 * @param req instance of {@code HttpServletRequest}
	 */
	public ServletRequestProperties(HttpServletRequest req){
		request = req;
	}
	
	
	protected void _SetValue(String _name, String _value) {
		//do nothing
	}

	
	protected String _GetValue(String _name) {
		return request != null ? request.getParameter(_name): "";
	}

	
	public void Clear() {
		//do nothing
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy