📄 requesthelper.java
字号:
/** * Licensed under the Artistic License; you may not use this file * except in compliance with the License. * You may obtain a copy of the License at * * http://displaytag.sourceforge.net/license.html * * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */package org.displaytag.util;import java.util.Map;/** * A RequestHelper object is used to read parameters from the request. Main features are handling of numeric parameters * and the ability to create Href objects from the current request. * @author Fabrizio Giustina * @version $Revision: 1081 $ ($Author: fgiust $) */public interface RequestHelper{ /** * return the current Href for the request (base url and parameters). * @return Href */ Href getHref(); /** * Reads a String parameter from the request. * @param key String parameter name * @return String parameter value */ String getParameter(String key); /** * Reads an Integer parameter from the request. * @param key String parameter name * @return Integer parameter value or null if the parameter is not found or it can't be transformed to an Integer */ Integer getIntParameter(String key); /** * Returns a Map containing all the parameters in the request. * @return Map */ Map getParameterMap();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -