public class HttpSupported extends Object
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
HttpSupported.HttpErrorCodeException
封装HTTP错误码
|
| 构造器和说明 |
|---|
HttpSupported() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected static String |
getParameter(javax.servlet.http.HttpServletRequest req,
String name) |
protected static <T> T |
getParameter(javax.servlet.http.HttpServletRequest req,
String name,
Class<T> type) |
protected static <T> T |
getParameter(javax.servlet.http.HttpServletRequest req,
String name,
Class<T> type,
T defaultValue) |
protected static <T> T |
getParameter(javax.servlet.http.HttpServletRequest req,
String name,
com.alibaba.jvm.sandbox.module.debug.HttpSupported.Converter<T> converter,
T defaultValue) |
protected static String |
getParameter(javax.servlet.http.HttpServletRequest req,
String name,
String defaultString) |
protected static <T> List<T> |
getParameters(javax.servlet.http.HttpServletRequest req,
String name,
Class<T> type,
T... defaultValueArray) |
protected static <T> List<T> |
getParameters(javax.servlet.http.HttpServletRequest req,
String name,
com.alibaba.jvm.sandbox.module.debug.HttpSupported.Converter<T> converter,
T... defaultValueArray) |
protected static <T> void |
regConverter(com.alibaba.jvm.sandbox.module.debug.HttpSupported.Converter<T> converter,
Class<T>... typeArray)
注册类型转换器
|
protected static <T> void regConverter(com.alibaba.jvm.sandbox.module.debug.HttpSupported.Converter<T> converter,
Class<T>... typeArray)
T - 类型converter - 转换器typeArray - 类型的Java类数组protected static <T> T getParameter(javax.servlet.http.HttpServletRequest req,
String name,
com.alibaba.jvm.sandbox.module.debug.HttpSupported.Converter<T> converter,
T defaultValue)
throws HttpSupported.HttpErrorCodeException
protected static <T> List<T> getParameters(javax.servlet.http.HttpServletRequest req, String name, com.alibaba.jvm.sandbox.module.debug.HttpSupported.Converter<T> converter, T... defaultValueArray) throws HttpSupported.HttpErrorCodeException
protected static String getParameter(javax.servlet.http.HttpServletRequest req, String name) throws HttpSupported.HttpErrorCodeException
protected static String getParameter(javax.servlet.http.HttpServletRequest req, String name, String defaultString) throws HttpSupported.HttpErrorCodeException
protected static <T> T getParameter(javax.servlet.http.HttpServletRequest req,
String name,
Class<T> type)
throws HttpSupported.HttpErrorCodeException
protected static <T> T getParameter(javax.servlet.http.HttpServletRequest req,
String name,
Class<T> type,
T defaultValue)
throws HttpSupported.HttpErrorCodeException
protected static <T> List<T> getParameters(javax.servlet.http.HttpServletRequest req, String name, Class<T> type, T... defaultValueArray) throws HttpSupported.HttpErrorCodeException
Copyright © 2018 Alibaba Open Source. All rights reserved.