top.jfunc.http.interfacing.AbstractParameterHandler Maven / Gradle / Ivy
package top.jfunc.http.interfacing;
import top.jfunc.http.annotation.*;
import top.jfunc.http.base.FormFile;
import top.jfunc.http.request.FormRequest;
import top.jfunc.http.request.HttpRequest;
import top.jfunc.http.request.MutableStringBodyRequest;
import top.jfunc.http.request.UploadRequest;
import top.jfunc.common.utils.MultiValueMap;
import java.lang.reflect.Array;
import java.util.Map;
import java.util.Objects;
/**
* 参数处理器定义及对应注解的实现
* @see Header
* @see HeaderMap
* @see Query
* @see QueryMap
* @see Route
* @see RouteMap
* @see Part
* @see Field
* @see FieldMap
* @see Body
* @see Url
*
* @author xiongshiyan at 2019/5/24 , contact me with email [email protected] or phone 15208384257
*/
abstract class AbstractParameterHandler{
/**
* 对HttpRequest应用实际参数
* @param r HttpRequest
* @param p 参数值
*/
abstract void apply(HttpRequest r, P p);
/**
* 什么都不干的处理器,比如处理 HttpRequest
* @see HttpRequest
*/
static final class DoNothing extends AbstractParameterHandler
© 2015 - 2025 Weber Informatics LLC | Privacy Policy