类的使用
cn.taketoday.web.bind.RequestBindingException
使用RequestBindingException的程序包
程序包
说明
Request context parameter resolvers
Request context date parameter resolvers
Web Handler
-
cn.taketoday.web中RequestBindingException的使用
修饰符和类型方法说明static BooleanRequestContextUtils.getBooleanParameter(RequestContext request, String name) Get a Boolean parameter, ornullif not present.static DoubleRequestContextUtils.getDoubleParameter(RequestContext request, String name) Get a Double parameter, ornullif not present.static FloatRequestContextUtils.getFloatParameter(RequestContext request, String name) Get a Float parameter, ornullif not present.static IntegerRequestContextUtils.getIntParameter(RequestContext request, String name) Get an Integer parameter, ornullif not present.static LongRequestContextUtils.getLongParameter(RequestContext request, String name) Get a Long parameter, ornullif not present.static booleanRequestContextUtils.getRequiredBooleanParameter(RequestContext request, String name) Get a boolean parameter, throwing an exception if it isn't found or isn't a boolean.static boolean[]RequestContextUtils.getRequiredBooleanParameters(RequestContext request, String name) Get an array of boolean parameters, throwing an exception if not found or one isn't a boolean.static doubleRequestContextUtils.getRequiredDoubleParameter(RequestContext request, String name) Get a double parameter, throwing an exception if it isn't found or isn't a number.static double[]RequestContextUtils.getRequiredDoubleParameters(RequestContext request, String name) Get an array of double parameters, throwing an exception if not found or one is not a number.static floatRequestContextUtils.getRequiredFloatParameter(RequestContext request, String name) Get a float parameter, throwing an exception if it isn't found or isn't a number.static float[]RequestContextUtils.getRequiredFloatParameters(RequestContext request, String name) Get an array of float parameters, throwing an exception if not found or one is not a number.static intRequestContextUtils.getRequiredIntParameter(RequestContext request, String name) Get an int parameter, throwing an exception if it isn't found or isn't a number.static int[]RequestContextUtils.getRequiredIntParameters(RequestContext request, String name) Get an array of int parameters, throwing an exception if not found or one is not a number..static longRequestContextUtils.getRequiredLongParameter(RequestContext request, String name) Get a long parameter, throwing an exception if it isn't found or isn't a number.static long[]RequestContextUtils.getRequiredLongParameters(RequestContext request, String name) Get an array of long parameters, throwing an exception if not found or one is not a number.static StringRequestContextUtils.getRequiredStringParameter(RequestContext request, String name) Get a String parameter, throwing an exception if it isn't found.static String[]RequestContextUtils.getRequiredStringParameters(RequestContext request, String name) Get an array of String parameters, throwing an exception if not found.static StringRequestContextUtils.getStringParameter(RequestContext request, String name) Get a String parameter, ornullif not present.protected final TbooleanRequestContextUtils.BooleanParser.parseBoolean(String name, String parameter) boolean[]RequestContextUtils.BooleanParser.parseBooleans(String name, String[] values) doubleRequestContextUtils.DoubleParser.parseDouble(String name, String parameter) double[]RequestContextUtils.DoubleParser.parseDoubles(String name, String[] values) floatRequestContextUtils.FloatParser.parseFloat(String name, String parameter) float[]RequestContextUtils.FloatParser.parseFloats(String name, String[] values) intint[]longlong[]RequestContextUtils.LongParser.parseLongs(String name, String[] values) protected final voidRequestContextUtils.ParameterParser.validateRequiredParameter(String name, Object parameter) RequestContextUtils.StringParser.validateRequiredString(String name, String value) String[]RequestContextUtils.StringParser.validateRequiredStrings(String name, String[] values) -
cn.taketoday.web.bind中RequestBindingException的使用
修饰符和类型类说明classMethodParameter can't be resolvedclassRequestBindingExceptionsubclass that indicates that a matrix variable expected in the method parameters of an@RequestMappingmethod is not present among the matrix variables extracted from the URL.classRequestBindingExceptionsubclass that indicates that a path variable expected in the method parameters of an@RequestMappingmethod is not present among the URI variables extracted from the URL.classRequestBindingExceptionsubclass that indicates a missing parameter.classBase class forRequestBindingExceptionexceptions that could not bind because the request value is required but is either missing or otherwise resolves tonullafter conversion.classRequestBindingExceptionsubclass that indicates an unsatisfied parameter condition, as typically expressed using an@RequestMappingannotation at the@Controllertype level. -
cn.taketoday.web.bind.resolver中RequestBindingException的使用
修饰符和类型类说明classRequestBindingExceptionsubclass that indicates that a request cookie expected in the method parameters of an@RequestMappingmethod is not present.classRequestBindingExceptionsubclass that indicates that a request header expected in the method parameters of an@RequestMappingmethod is not present.classRaised when the part of a "multipart/form-data" request identified by its name cannot be found.classParameter can't convert to target class修饰符和类型方法说明protected voidMatrixParamParameterResolvingStrategy.handleMissingValue(String name, cn.taketoday.core.MethodParameter parameter) -
cn.taketoday.web.bind.resolver.date中RequestBindingException的使用
-
cn.taketoday.web.handler中RequestBindingException的使用
修饰符和类型方法说明protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleRequestBindingException(RequestBindingException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofRequestBindingException.protected ObjectSimpleHandlerExceptionHandler.handleRequestBindingException(RequestBindingException ex, RequestContext request, Object handler) Handle the case when an unrecoverable binding exception occurs - e.g.