亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? requestutils.java

?? spring framework 2.5.4源代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*
 * Copyright 2002-2007 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.springframework.web.bind;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;

import org.springframework.web.HttpRequestMethodNotSupportedException;

/**
 * Parameter extraction methods, for an approach distinct from data binding,
 * in which parameters of specific types are required.
 *
 * <p>This approach is very useful for simple submissions, where binding
 * request parameters to a command object would be overkill.
 *
 * @author Rod Johnson
 * @author Juergen Hoeller
 * @author Keith Donald
 * @deprecated as of Spring 2.0: use ServletRequestUtils instead
 * @see ServletRequestUtils
 */
public abstract class RequestUtils {

	/**
	 * Throw a ServletException if the given HTTP request method should be rejected.
	 * @param request request to check
	 * @param method method (such as "GET") which should be rejected
	 * @throws ServletException if the given HTTP request is rejected
	 */
	public static void rejectRequestMethod(HttpServletRequest request, String method) throws ServletException {
		if (request.getMethod().equals(method)) {
			throw new HttpRequestMethodNotSupportedException(method);
		}
	}


	/**
	 * Get an Integer parameter, or <code>null</code> if not present.
	 * Throws an exception if it the parameter value isn't a number.
	 * @param request current HTTP request
	 * @param name the name of the parameter
	 * @return the Integer value, or <code>null</code> if not present
	 * @throws ServletRequestBindingException a subclass of ServletException,
	 * so it doesn't need to be caught
	 */
	public static Integer getIntParameter(HttpServletRequest request, String name)
			throws ServletRequestBindingException {

		return ServletRequestUtils.getIntParameter(request, name);
	}

	/**
	 * Get an int parameter, with a fallback value. Never throws an exception.
	 * Can pass a distinguished value as default to enable checks of whether it was supplied.
	 * @param request current HTTP request
	 * @param name the name of the parameter
	 * @param defaultVal the default value to use as fallback
	 */
	public static int getIntParameter(HttpServletRequest request, String name, int defaultVal) {
		return ServletRequestUtils.getIntParameter(request, name, defaultVal);
	}

	/**
	 * Get an array of int parameters, return an empty array if not found.
	 * @param request current HTTP request
	 * @param name the name of the parameter with multiple possible values
	 */
	public static int[] getIntParameters(HttpServletRequest request, String name) {
		return ServletRequestUtils.getIntParameters(request, name);
	}

	/**
	 * Get an int parameter, throwing an exception if it isn't found or isn't a number.
	 * @param request current HTTP request
	 * @param name the name of the parameter
	 * @throws ServletRequestBindingException a subclass of ServletException,
	 * so it doesn't need to be caught
	 */
	public static int getRequiredIntParameter(HttpServletRequest request, String name)
			throws ServletRequestBindingException {

		return ServletRequestUtils.getRequiredIntParameter(request, name);
	}

	/**
	 * Get an array of int parameters, throwing an exception if not found or one is not a number..
	 * @param request current HTTP request
	 * @param name the name of the parameter with multiple possible values
	 * @throws ServletRequestBindingException a subclass of ServletException,
	 * so it doesn't need to be caught
	 */
	public static int[] getRequiredIntParameters(HttpServletRequest request, String name)
			throws ServletRequestBindingException {

		return ServletRequestUtils.getRequiredIntParameters(request, name);
	}


	/**
	 * Get a Long parameter, or <code>null</code> if not present.
	 * Throws an exception if it the parameter value isn't a number.
	 * @param request current HTTP request
	 * @param name the name of the parameter
	 * @return the Long value, or <code>null</code> if not present
	 * @throws ServletRequestBindingException a subclass of ServletException,
	 * so it doesn't need to be caught
	 */
	public static Long getLongParameter(HttpServletRequest request, String name)
			throws ServletRequestBindingException {

		return ServletRequestUtils.getLongParameter(request, name);
	}

	/**
	 * Get a long parameter, with a fallback value. Never throws an exception.
	 * Can pass a distinguished value as default to enable checks of whether it was supplied.
	 * @param request current HTTP request
	 * @param name the name of the parameter
	 * @param defaultVal the default value to use as fallback
	 */
	public static long getLongParameter(HttpServletRequest request, String name, long defaultVal) {
		return ServletRequestUtils.getLongParameter(request, name, defaultVal);
	}

	/**
	 * Get an array of long parameters, return an empty array if not found.
	 * @param request current HTTP request
	 * @param name the name of the parameter with multiple possible values
	 */
	public static long[] getLongParameters(HttpServletRequest request, String name) {
		return ServletRequestUtils.getLongParameters(request, name);
	}

	/**
	 * Get a long parameter, throwing an exception if it isn't found or isn't a number.
	 * @param request current HTTP request
	 * @param name the name of the parameter
	 * @throws ServletRequestBindingException a subclass of ServletException,
	 * so it doesn't need to be caught
	 */
	public static long getRequiredLongParameter(HttpServletRequest request, String name)
			throws ServletRequestBindingException {

		return ServletRequestUtils.getRequiredLongParameter(request, name);
	}

	/**
	 * Get an array of long parameters, throwing an exception if not found or one is not a number.
	 * @param request current HTTP request
	 * @param name the name of the parameter with multiple possible values
	 * @throws ServletRequestBindingException a subclass of ServletException,
	 * so it doesn't need to be caught
	 */
	public static long[] getRequiredLongParameters(HttpServletRequest request, String name)
			throws ServletRequestBindingException {

		return ServletRequestUtils.getRequiredLongParameters(request, name);
	}


	/**
	 * Get a Float parameter, or <code>null</code> if not present.
	 * Throws an exception if it the parameter value isn't a number.
	 * @param request current HTTP request
	 * @param name the name of the parameter
	 * @return the Float value, or <code>null</code> if not present
	 * @throws ServletRequestBindingException a subclass of ServletException,
	 * so it doesn't need to be caught
	 */
	public static Float getFloatParameter(HttpServletRequest request, String name)
			throws ServletRequestBindingException {

		return ServletRequestUtils.getFloatParameter(request, name);
	}

	/**
	 * Get a float parameter, with a fallback value. Never throws an exception.
	 * Can pass a distinguished value as default to enable checks of whether it was supplied.
	 * @param request current HTTP request
	 * @param name the name of the parameter
	 * @param defaultVal the default value to use as fallback
	 */
	public static float getFloatParameter(HttpServletRequest request, String name, float defaultVal) {
		return ServletRequestUtils.getFloatParameter(request, name, defaultVal);
	}

	/**
	 * Get an array of float parameters, return an empty array if not found.
	 * @param request current HTTP request
	 * @param name the name of the parameter with multiple possible values
	 */
	public static float[] getFloatParameters(HttpServletRequest request, String name) {
		return ServletRequestUtils.getFloatParameters(request, name);
	}

	/**
	 * Get a float parameter, throwing an exception if it isn't found or isn't a number.
	 * @param request current HTTP request
	 * @param name the name of the parameter
	 * @throws ServletRequestBindingException a subclass of ServletException,
	 * so it doesn't need to be caught
	 */
	public static float getRequiredFloatParameter(HttpServletRequest request, String name)
			throws ServletRequestBindingException {

		return ServletRequestUtils.getRequiredFloatParameter(request, name);
	}

	/**
	 * Get an array of float parameters, throwing an exception if not found or one is not a number.
	 * @param request current HTTP request
	 * @param name the name of the parameter with multiple possible values
	 * @throws ServletRequestBindingException a subclass of ServletException,
	 * so it doesn't need to be caught
	 */
	public static float[] getRequiredFloatParameters(HttpServletRequest request, String name)
			throws ServletRequestBindingException {

		return ServletRequestUtils.getRequiredFloatParameters(request, name);
	}


	/**
	 * Get a Double parameter, or <code>null</code> if not present.
	 * Throws an exception if it the parameter value isn't a number.
	 * @param request current HTTP request
	 * @param name the name of the parameter
	 * @return the Double value, or <code>null</code> if not present
	 * @throws ServletRequestBindingException a subclass of ServletException,
	 * so it doesn't need to be caught
	 */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩av电影天堂| 男女性色大片免费观看一区二区| 亚洲黄色av一区| 国内精品不卡在线| 欧美三级视频在线| 欧美国产乱子伦 | 91精品黄色片免费大全| 久久蜜桃香蕉精品一区二区三区| 亚洲精品美国一| 国产成人欧美日韩在线电影| 91精品国产综合久久久久久漫画| 一区二区视频免费在线观看| 成人美女视频在线看| 日韩精品专区在线| 三级成人在线视频| 欧美一区二区三级| 亚洲精品国产a| 成人黄色片在线观看| 久久奇米777| 另类中文字幕网| 欧美高清精品3d| 丝袜美腿亚洲色图| 欧美男男青年gay1069videost| 亚洲另类春色国产| 日本韩国欧美一区| 亚洲男人都懂的| 色综合久久精品| 亚洲乱码中文字幕| 91一区二区在线| 亚洲欧美日韩国产中文在线| av亚洲精华国产精华| 综合久久久久综合| 成人毛片老司机大片| 亚洲欧洲在线观看av| av电影在线观看一区| 亚洲色图清纯唯美| 在线免费精品视频| 亚洲一区成人在线| 91精品国产丝袜白色高跟鞋| 麻豆91免费看| 国产日韩欧美精品在线| 国产精品一区二区在线看| 欧美精彩视频一区二区三区| 成人综合日日夜夜| 亚洲精品中文在线| 欧美裸体bbwbbwbbw| 美腿丝袜亚洲三区| 欧美国产视频在线| 欧美一a一片一级一片| 日本欧美一区二区| 久久久久久久久久久99999| 国产999精品久久久久久绿帽| 亚洲视频一区在线观看| 欧美色图一区二区三区| 奇米精品一区二区三区在线观看| 精品粉嫩超白一线天av| 岛国一区二区在线观看| 亚洲午夜激情av| 欧美一二区视频| 成人免费黄色大片| 亚洲国产aⅴ天堂久久| 午夜久久久久久| 777欧美精品| 国产综合一区二区| 国产精品私人影院| 99久久国产综合精品麻豆| 亚洲制服欧美中文字幕中文字幕| 欧美精品视频www在线观看| 欧美tickling挠脚心丨vk| 国产不卡视频一区二区三区| 亚洲国产美国国产综合一区二区 | 亚洲一区二区三区四区在线免费观看 | 欧美国产乱子伦| 欧美日韩免费一区二区三区视频| 美国精品在线观看| 中文字幕高清一区| 欧美精品在线视频| 色综合久久久久久久久久久| 久久福利视频一区二区| 亚洲精品国产视频| 久久亚洲综合色| 欧美猛男gaygay网站| 懂色av一区二区在线播放| 日本不卡一区二区三区高清视频| 中文一区一区三区高中清不卡| 欧美美女喷水视频| 91免费小视频| 国产精品一区二区久久精品爱涩 | 国产精品一区二区男女羞羞无遮挡| 亚洲乱码国产乱码精品精小说| 久久免费午夜影院| 欧美精品xxxxbbbb| 91久久一区二区| 白白色亚洲国产精品| 精品一区二区三区欧美| 午夜久久久久久久久久一区二区| 中文字幕亚洲视频| 国产亚洲综合av| 日韩精品中文字幕一区二区三区 | 欧美激情综合五月色丁香| 日韩欧美亚洲国产精品字幕久久久| 一本到不卡免费一区二区| 成人午夜在线免费| 国产成人免费视| 国产精品一区二区在线观看网站 | 欧美激情一区二区三区| 2020日本不卡一区二区视频| 日韩欧美三级在线| 日韩区在线观看| 精品久久久久久久久久久院品网 | 99九九99九九九视频精品| 国产91在线观看丝袜| 国产原创一区二区| 国产综合久久久久久鬼色 | 1000部国产精品成人观看| 国产精品色呦呦| 国产精品久久久久影院色老大| 久久嫩草精品久久久精品| 精品1区2区在线观看| 久久久亚洲精品一区二区三区| 久久综合色之久久综合| 久久久久久免费毛片精品| 日本一区二区三区视频视频| 亚洲国产精品激情在线观看| 亚洲午夜影视影院在线观看| 一区二区三区在线观看网站| 亚洲综合色丁香婷婷六月图片| 亚洲国产成人va在线观看天堂| 午夜亚洲国产au精品一区二区| 奇米色一区二区| 国产麻豆精品久久一二三| 成人动漫精品一区二区| 色综合久久九月婷婷色综合| 欧美色图免费看| 精品国内片67194| 国产精品网友自拍| 亚洲另类中文字| 毛片不卡一区二区| 高清不卡一区二区| 日本道精品一区二区三区| 欧美日韩免费一区二区三区视频| 欧美一卡二卡三卡四卡| 国产情人综合久久777777| 亚洲精品v日韩精品| 日韩电影一区二区三区| 高清国产一区二区| 欧美日韩视频专区在线播放| www久久精品| 一区二区三区四区蜜桃| 免费成人小视频| 99麻豆久久久国产精品免费| 在线综合视频播放| 国产欧美日韩在线看| 亚洲gay无套男同| 国产成人日日夜夜| 91精品久久久久久久91蜜桃| 中文字幕乱码亚洲精品一区| 午夜av区久久| 不卡的av中国片| 欧美成人高清电影在线| 亚洲欧美一区二区三区极速播放| 六月婷婷色综合| 欧美午夜电影在线播放| 国产亚洲欧美激情| 爽好久久久欧美精品| 波多野结衣亚洲| 久久这里只有精品6| 亚洲成人免费在线| 99re视频精品| 国产欧美精品一区二区色综合朱莉| 日韩高清在线一区| 91论坛在线播放| 国产网站一区二区| 免费在线观看视频一区| 欧美三区免费完整视频在线观看| 国产精品久久久久一区二区三区| 久久97超碰国产精品超碰| 67194成人在线观看| 亚洲免费在线观看视频| 高清在线观看日韩| 久久蜜桃av一区精品变态类天堂| 日韩专区在线视频| 色综合天天综合网天天看片| 国产精品乱码人人做人人爱 | 91麻豆自制传媒国产之光| 国产午夜三级一区二区三| 青草av.久久免费一区| 欧美色国产精品| 亚洲第一综合色| 在线视频一区二区免费| 一区二区三区欧美亚洲| 91麻豆蜜桃一区二区三区| 亚洲欧美在线视频观看| 成人久久18免费网站麻豆| 国产女人18毛片水真多成人如厕 | 亚洲欧美怡红院| 99精品国产91久久久久久| 国产精品美女视频| 99re热视频精品| 一区二区三区四区激情|