类的使用
cn.taketoday.web.RequestContext
使用RequestContext的程序包
程序包
说明
Web Session Supports like Servlet's Session
This package contains classes used to determine the requested the media types in a request.
Request context parameter resolvers
Request context date parameter resolvers
Support for asynchronous request processing.
Support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor strategy.Web Handler
Common MVC logic for matching incoming requests based on conditions.
Provides the types that make up Infra functional web framework.
Classes supporting the
cn.taketoday.web.servlet.function package.Method handler
Standard controller implementations for the MVC framework use like Framework
Locale support classes for web MVC framework.
Support classes for serving static resources.
Miscellaneous web utility classes, such as HTML escaping,
Log4j initialization, and cookie handling.
Provides standard View and ViewResolver implementations,
including abstract base classes for custom implementations.
Support classes for document generation,
providing View implementations for PDF and Excel.
Support classes for feed generation, providing View implementations for Atom and RSS.
Support classes for the integration of
FreeMarker
as Framework web view technology.
Support classes for the integration of
Groovy Templates as Framework web view technology.
Support classes for providing a View implementation based on JSON serialization.
Support classes for views based on the JSR-223 script engine abstraction
(as included in Java 6+), e.g. using JavaScript via Nashorn on JDK 8.
Support classes for providing a View implementation based on XML Marshalling.
Support classes for XSLT,
providing a View implementation for XSLT stylesheets.
-
cn.taketoday.session中RequestContext的使用
参数类型为RequestContext的cn.taketoday.session中的方法修饰符和类型方法说明DefaultSessionManager.createSession(RequestContext context) SessionManager.createSession(RequestContext context) create a new session associated withRequestContextvoidCompositeSessionIdResolver.expireSession(RequestContext context) voidCookieSessionIdResolver.expireSession(RequestContext exchange) voidHeaderSessionIdResolver.expireSession(RequestContext exchange) voidSessionIdResolver.expireSession(RequestContext exchange) Instruct the client to end the current session.SessionManagerOperations.getAttribute(RequestContext context, String name) DefaultSessionManager.getSession(RequestContext context) DefaultSessionManager.getSession(RequestContext context, boolean create) SessionManager.getSession(RequestContext context) Returns the current session associated with this request, or if the request does not have a session, creates one.SessionManager.getSession(RequestContext context, boolean create) Returns the currentWebSessionassociated with this request or, if there is no current session andcreateis true, returns a new session.SessionManagerOperations.getSession(RequestContext context) Returns the current session associated with this request, or if the request does not have a session, creates one.SessionManagerOperations.getSession(RequestContext context, boolean create) Returns the currentWebSessionassociated with this request or, if there is no current session andcreateis true, returns a new session.CompositeSessionIdResolver.getSessionId(RequestContext context) CookieSessionIdResolver.getSessionId(RequestContext context) HeaderSessionIdResolver.getSessionId(RequestContext context) SessionIdResolver.getSessionId(RequestContext context) Resolving session id from RequestContextSessionManagerOperations.removeAttribute(RequestContext context, String name) Remove the attribute identified bynameand return its value.SessionMethodArgumentResolver.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) protected ObjectWebSessionAttributeParameterResolver.resolveName(String name, ResolvableMethodParameter resolvable, RequestContext context) voidSessionManagerOperations.setAttribute(RequestContext context, String name, Object attribute) Set the attribute defined bynameto the suppliedvalue.voidCompositeSessionIdResolver.setSessionId(RequestContext context, String session) voidCookieSessionIdResolver.setSessionId(RequestContext context, String sessionId) voidHeaderSessionIdResolver.setSessionId(RequestContext context, String sessionId) voidSessionIdResolver.setSessionId(RequestContext context, String sessionId) Send the given session id to the client. -
cn.taketoday.web中RequestContext的使用
修饰符和类型类说明classRequestContext decorator that makes all beans in a given WebApplicationContext accessible as request attributes, through lazy checking once an attribute gets accessed.classDecorating RequestContextclassProvides a convenient implementation of the RequestContext that can be subclassed by developers wishing to adapt the request to web.private static classFactory that exposes the current request-context object on demand.声明为RequestContext的cn.taketoday.web中的字段类型参数类型为RequestContext的cn.taketoday.web中的字段修饰符和类型方法说明DefaultRequestThreadLocal.get()static RequestContextRequestContextHolder.get()current contextabstract RequestContextRequestThreadLocal.get()abstract RequestContextDecoratingRequestContext.getDelegate()RequestContextDecorator.getDelegate()RequestContextUtils.InjectableRequestContext.getDelegate()static RequestContextRequestContextHolder.getRequired()参数类型为RequestContext的cn.taketoday.web中的方法修饰符和类型方法说明default voidHandlerInterceptor.afterProcess(RequestContext request, Object handler, Object result) After Handler processed.protected final voidWebContentGenerator.applyCacheControl(RequestContext response, CacheControl cacheControl) Set the HTTP Cache-Control header according to the given settings.protected final voidWebContentGenerator.applyCacheSeconds(RequestContext response, int cacheSeconds) Apply the given cache seconds and generate corresponding HTTP headers, i.e. allow caching for the given number of seconds in case of a positive value, prevent caching if given a 0 value, do nothing else.default booleanHandlerInterceptor.beforeProcess(RequestContext request, Object handler) Before Handler process.protected final voidWebContentGenerator.checkRequest(RequestContext request) Check the given request for supported methods and a required session, if any.BindingContext.createBinder(RequestContext request, Object target, String objectName) Create aWebDataBinderto apply data binding and validation with on the target, command object.BindingContext.createBinder(RequestContext request, Object target, String objectName, cn.taketoday.core.ResolvableType targetType) Variant ofBindingContext.createBinder(RequestContext, Object, String)with aResolvableTypefor which theDataBinderis created.BindingContext.createBinder(RequestContext context, String objectName) Create aWebDataBinderwithout a target object for type conversion of request values to simple types.protected WebDataBinderBindingContext.createBinderInstance(Object target, String objectName, RequestContext request) Extension point to create the WebDataBinder instance.static <T> TRequestContextUtils.getBean(RequestContext request, Class<T> requiredType) static <T> TRequestContextUtils.getBean(RequestContext request, String beanName) static <T> TRequestContextUtils.getBean(RequestContext request, String beanName, Class<T> requiredType) static BooleanRequestContextUtils.getBooleanParameter(RequestContext request, String name) Get a Boolean parameter, ornullif not present.static booleanRequestContextUtils.getBooleanParameter(RequestContext request, String name, boolean defaultVal) Get a boolean parameter, with a fallback value.static boolean[]RequestContextUtils.getBooleanParameters(RequestContext request, String name) Get an array of boolean parameters, return an empty array if not found.static DoubleRequestContextUtils.getDoubleParameter(RequestContext request, String name) Get a Double parameter, ornullif not present.static doubleRequestContextUtils.getDoubleParameter(RequestContext request, String name, double defaultVal) Get a double parameter, with a fallback value.static double[]RequestContextUtils.getDoubleParameters(RequestContext request, String name) Get an array of double parameters, return an empty array if not found.static FloatRequestContextUtils.getFloatParameter(RequestContext request, String name) Get a Float parameter, ornullif not present.static floatRequestContextUtils.getFloatParameter(RequestContext request, String name, float defaultVal) Get a float parameter, with a fallback value.static float[]RequestContextUtils.getFloatParameters(RequestContext request, String name) Get an array of float parameters, return an empty array if not found.HandlerMapping.getHandler(RequestContext request) Return a handler and any interceptors for this request.static IntegerRequestContextUtils.getIntParameter(RequestContext request, String name) Get an Integer parameter, ornullif not present.static intRequestContextUtils.getIntParameter(RequestContext request, String name, int defaultVal) Get an int parameter, with a fallback value.static int[]RequestContextUtils.getIntParameters(RequestContext request, String name) Get an array of int parameters, return an empty array if not found.static LocaleRequestContextUtils.getLocale(RequestContext request) Retrieve the current locale from the given request, using the LocaleResolver bound to the request by the DispatcherServlet (if available), falling back to the request's accept-header Locale.static LocaleResolverRequestContextUtils.getLocaleResolver(RequestContext request) Return the LocaleResolver that has been bound to the request by the RequestContext.static LongRequestContextUtils.getLongParameter(RequestContext request, String name) Get a Long parameter, ornullif not present.static longRequestContextUtils.getLongParameter(RequestContext request, String name, long defaultVal) Get a long parameter, with a fallback value.static long[]RequestContextUtils.getLongParameters(RequestContext request, String name) Get an array of long parameters, return an empty array if not found.static RedirectModelRequestContextUtils.getOutputRedirectModel(RequestContext request) Return "output" RedirectModel to save attributes for request after redirect.static RedirectModelManagerRequestContextUtils.getRedirectModelManager(RequestContext request) Return theRedirectModelManagerinstance to save flash attributes.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 WebSessionRequestContextUtils.getRequiredSession(RequestContext request) Returns the current session associated with this request, or if the request does not have a session, creates one.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 WebSessionRequestContextUtils.getSession(RequestContext request) Returns the current session associated with this request, or if the request does not have a session, creates one.static WebSessionRequestContextUtils.getSession(RequestContext request, boolean create) Returns the currentWebSessionassociated with this request or, if there is no current session andcreateis true, returns a new session.static StringRequestContextUtils.getSessionId(RequestContext request) Determine the session id of the given request, if any.static SessionManagerRequestContextUtils.getSessionManager(RequestContext request) Return the WebSessionManagerstatic StringRequestContextUtils.getStringParameter(RequestContext request, String name) Get a String parameter, ornullif not present.static StringRequestContextUtils.getStringParameter(RequestContext request, String name, String defaultVal) Get a String parameter, with a fallback value.static String[]RequestContextUtils.getStringParameters(RequestContext request, String name) Get an array of String parameters, return an empty array if not found.static TimeZoneRequestContextUtils.getTimeZone(RequestContext request) Retrieve the current time zone from the given request, using theTimeZoneAwareLocaleContextin theLocaleResolverbound to the request by theDispatcherServlet(if available).private Collection<String>WebContentGenerator.getVaryRequestHeadersToAdd(RequestContext response, String[] varyByRequestHeaders) RequestToViewNameTranslator.getViewName(RequestContext request) Translate the givenRequestContextinto a view name.HandlerAdapter.handle(RequestContext context, Object handler) Use the given handler to handle this request.HandlerExceptionHandler.handleException(RequestContext context, Throwable exception, Object handler) Handle exceptionHttpRequestHandler.handleRequest(RequestContext request) Process the request and return a result object which the DispatcherHandler will handle.voidReturnValueHandler.handleReturnValue(RequestContext context, Object handler, Object returnValue) Handle result of the handlervoidReturnValueHandlerDecorator.handleReturnValue(RequestContext context, Object handler, Object returnValue) voidBindingContext.initBinder(WebDataBinder dataBinder, RequestContext request) Initialize the data binder instance for the given exchange.voidBindingContext.initModel(RequestContext request) Populate the model in the following order: Retrieve "known" session attributes listed as@SessionAttributes.default ObjectHandlerInterceptor.intercept(RequestContext request, InterceptorChain chain) handler's interceptor intercept entranceprotected abstract ObjectInterceptorChain.invokeHandler(RequestContext context, Object handler) process target handlerprotected final voidWebContentGenerator.prepareResponse(RequestContext response) Prepare the given response according to the settings of this generator.final ObjectInterceptorChain.proceed(RequestContext context) Execute next interceptorvoidRequestCompletedListener.requestCompleted(RequestContext request, Throwable notHandled) invoke when request handledLocaleResolver.resolveLocale(RequestContext request) Resolve the current locale via the given request.cn.taketoday.core.i18n.LocaleContextLocaleContextResolver.resolveLocaleContext(RequestContext request) Resolve the current locale context via the given request.static booleanServletDetector.runningInServlet(RequestContext context) static voidRequestContextUtils.saveRedirectModel(String location, RequestContext request) Convenience method that retrieves the"output" RedirectModel, updates it with the path and query params of the target URL, and then saves it using theRedirectModelManager.static voidRequestContextUtils.saveRedirectModel(String location, RequestContext request, RedirectModelManager manager) Convenience method that retrieves the"output" RedirectModel, updates it with the path and query params of the target URL, and then saves it using theRedirectModelManager.voidDefaultRequestThreadLocal.set(RequestContext context) static voidRequestContextHolder.set(RequestContext requestContext) abstract voidRequestThreadLocal.set(RequestContext context) voidLocaleResolver.setLocale(RequestContext request, Locale locale) Set the current locale to the given one.voidLocaleContextResolver.setLocaleContext(RequestContext request, cn.taketoday.core.i18n.LocaleContext localeContext) Set the current locale context to the given one, potentially including a locale with associated time zone information.voidBindingContext.updateModel(RequestContext request) Promote model attributes listed as@SessionAttributesto the session.参数类型为RequestContext的cn.taketoday.web中的构造器限定符构造器说明ContextExposingRequestContext(RequestContext originalRequest, cn.taketoday.context.ApplicationContext context, Set<String> exposedContextBeanNames) Create a new ContextExposingRequestContext for the given request.HandlerMatchingMetadata(RequestContext request) HandlerMatchingMetadata(Object handler, RequestContext request) HandlerMatchingMetadata(Object handler, RequestContext request, PathPatternParser patternParser) RequestContextDecorator(RequestContext delegate) 类型变量类型为RequestContext的cn.taketoday.web中的构造器参数 -
cn.taketoday.web.accept中RequestContext的使用
参数类型为RequestContext的cn.taketoday.web.accept中的方法修饰符和类型方法说明protected abstract StringAbstractMappingContentNegotiationStrategy.getMediaTypeKey(RequestContext request) Extract a key from the request to use to look up media types.protected StringParameterContentNegotiationStrategy.getMediaTypeKey(RequestContext request) protected StringPathExtensionContentNegotiationStrategy.getMediaTypeKey(RequestContext request) (专用程序包) static StringPathExtensionContentNegotiationStrategy.ServletDelegate.getMimeType(RequestContext request, String extension) protected MediaTypeAbstractMappingContentNegotiationStrategy.handleNoMatch(RequestContext request, String key) Override to provide handling when a key is not resolved via.protected MediaTypePathExtensionContentNegotiationStrategy.handleNoMatch(RequestContext request, String extension) Resolve file extension viaServletContext.getMimeType(String)and also delegate to base class for a potentialMediaTypeFactorylookup.AbstractMappingContentNegotiationStrategy.resolveMediaTypeKey(RequestContext webRequest, String key) An alternative toAbstractMappingContentNegotiationStrategy.resolveMediaTypes(RequestContext)that accepts an already extracted key.AbstractMappingContentNegotiationStrategy.resolveMediaTypes(RequestContext context) ContentNegotiationManager.resolveMediaTypes(RequestContext request) ContentNegotiationStrategy.resolveMediaTypes(RequestContext context) Resolve the given request to a list of media types.FixedContentNegotiationStrategy.resolveMediaTypes(RequestContext request) HeaderContentNegotiationStrategy.resolveMediaTypes(RequestContext request) Resolve the given request to a list of media types. -
cn.taketoday.web.bind中RequestContext的使用
参数类型为RequestContext的cn.taketoday.web.bind中的方法修饰符和类型方法说明voidWebDataBinder.bind(RequestContext request) Bind the parameters of the given request to this binder's target, also binding multipart files in case of a multipart request.voidWebDataBinder.construct(RequestContext request) Use a default or single data constructor to create the target by binding request parameters, multipart files, or parts to constructor args.cn.taketoday.beans.PropertyValuesWebDataBinder.getValuesToBind(RequestContext request) method to obtain the values for data binding.参数类型为RequestContext的cn.taketoday.web.bind中的构造器 -
cn.taketoday.web.bind.resolver中RequestContext的使用
修饰符和类型方法说明private voidAbstractMessageConverterMethodProcessor.addContentDispositionHeader(RequestContext request) Check if the path has a file extension and whether the extension is either on the list ofsafe extensionsor explicitlyregistered.RequestResponseBodyAdviceChain.beforeBodyWrite(Object body, cn.taketoday.core.MethodParameter returnType, MediaType contentType, HttpMessageConverter<?> converter, RequestContext context) AbstractMessageConverterMethodProcessor.getAcceptableMediaTypes(RequestContext request) (专用程序包) static StringRequestPartServerHttpRequest.ServletDelegate.getCharacterEncoding(RequestContext request) (专用程序包) static StringAbstractMessageConverterMethodProcessor.ServletDelegate.getMimeType(RequestContext request, String extension) AbstractMessageConverterMethodProcessor.getProducibleMediaTypes(RequestContext request, Class<?> valueClass) Returns the media types that can be produced.AbstractMessageConverterMethodProcessor.getProducibleMediaTypes(RequestContext request, Class<?> valueClass, Type targetType) Returns the media types that can be produced.protected voidAbstractNamedValueResolvingStrategy.handleMissingValue(String name, cn.taketoday.core.MethodParameter parameter, RequestContext request) Invoked when a named value is required, butAbstractNamedValueResolvingStrategy.resolveName(String, ResolvableMethodParameter, RequestContext)returnednulland there is no default value.protected voidRequestParamMethodArgumentResolver.handleMissingValue(String name, cn.taketoday.core.MethodParameter parameter, RequestContext request) protected voidAbstractNamedValueResolvingStrategy.handleMissingValueAfterConversion(String name, cn.taketoday.core.MethodParameter parameter, RequestContext request) Invoked when a named value is present but becomesnullafter conversion.protected voidCookieParameterResolver.CookieValueAnnotationParameterResolver.handleMissingValueAfterConversion(String name, cn.taketoday.core.MethodParameter parameter, RequestContext request) protected voidMatrixParamParameterResolvingStrategy.handleMissingValueAfterConversion(String name, cn.taketoday.core.MethodParameter parameter, RequestContext request) protected voidPathVariableMethodArgumentResolver.handleMissingValueAfterConversion(String name, cn.taketoday.core.MethodParameter parameter, RequestContext request) protected voidRequestHeaderMethodArgumentResolver.handleMissingValueAfterConversion(String name, cn.taketoday.core.MethodParameter parameter, RequestContext request) protected voidRequestParamMethodArgumentResolver.handleMissingValueAfterConversion(String name, cn.taketoday.core.MethodParameter parameter, RequestContext request) protected voidServletParameterResolvers.ForCookie.handleMissingValueAfterConversion(String name, cn.taketoday.core.MethodParameter parameter, RequestContext request) protected voidRequestParamMethodArgumentResolver.handleMissingValueInternal(String name, cn.taketoday.core.MethodParameter parameter, RequestContext request, boolean missingAfterConversion) protected voidAbstractNamedValueResolvingStrategy.handleResolvedValue(Object arg, String name, ResolvableMethodParameter resolvable, RequestContext context) Invoked after a value is resolved.protected voidPathVariableMethodArgumentResolver.handleResolvedValue(Object arg, String name, ResolvableMethodParameter resolvable, RequestContext request) voidHttpEntityMethodProcessor.handleReturnValue(RequestContext context, Object handler, Object returnValue) voidMapMethodProcessor.handleReturnValue(RequestContext context, Object handler, Object returnValue) voidModelMethodProcessor.handleReturnValue(RequestContext context, Object handler, Object returnValue) voidRequestResponseBodyMethodProcessor.handleReturnValue(RequestContext context, Object handler, Object returnValue) private booleanHttpEntityMethodProcessor.isResourceNotModified(RequestContext context, HttpMethod method) private booleanAbstractMessageConverterMethodProcessor.notSafeExtension(RequestContext request, String extension) protected ObjectAbstractMessageConverterMethodArgumentResolver.readWithMessageConverters(RequestContext request, cn.taketoday.core.MethodParameter parameter, Type paramType) Create the method argument value of the expected parameter type by reading from the given request.protected ObjectRequestResponseBodyMethodProcessor.readWithMessageConverters(RequestContext request, cn.taketoday.core.MethodParameter parameter, Type paramType) final ObjectAbstractNamedValueResolvingStrategy.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) AutowiredParameterResolver.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) CookieParameterResolver.AllCookieParameterResolver.resolveArgument(RequestContext requestContext, ResolvableMethodParameter resolvable) ErrorsMethodArgumentResolver.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) HttpEntityMethodProcessor.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) MapMethodProcessor.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) MatrixParamMapParameterResolvingStrategy.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) ModelMethodProcessor.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) ParameterResolvingStrategies.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) ParameterResolvingStrategy.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) Resolve parameterPathVariableMapMethodArgumentResolver.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) Return a Map with all URI template variables or an empty map.PrincipalMethodArgumentResolver.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) RequestContextMethodArgumentResolver.resolveArgument(RequestContext request, ResolvableMethodParameter resolvable) RequestHeaderMapMethodArgumentResolver.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) RequestParamMapMethodArgumentResolver.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) RequestPartMethodArgumentResolver.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) RequestResponseBodyMethodProcessor.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) Throws MethodArgumentNotValidException if validation fails.ServletParameterResolvers.ForCookieArray.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) ServletParameterResolvers.ForHttpSession.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) ServletParameterResolvers.ForHttpSessionAttribute.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) ServletParameterResolvers.ForServletContext.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) ServletParameterResolvers.ForServletRequest.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) ServletParameterResolvers.ForServletResponse.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) ServletRequestMethodArgumentResolver.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) SessionStatusMethodArgumentResolver.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) UriComponentsBuilderParameterStrategy.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) private MediaTypeAbstractMessageConverterMethodProcessor.resolveMediaType(RequestContext request, String extension) static ObjectMultipartResolutionDelegate.resolveMultipartArgument(String name, cn.taketoday.core.MethodParameter parameter, RequestContext request) protected abstract ObjectAbstractNamedValueResolvingStrategy.resolveName(String name, ResolvableMethodParameter resolvable, RequestContext context) Resolve the given parameter type and value name into an argument value.protected ObjectCookieParameterResolver.CookieCollectionParameterResolver.resolveName(String name, ResolvableMethodParameter resolvable, RequestContext context) protected ObjectCookieParameterResolver.CookieValueAnnotationParameterResolver.resolveName(String name, ResolvableMethodParameter resolvable, RequestContext context) protected ObjectCookieParameterResolver.resolveName(String name, ResolvableMethodParameter resolvable, RequestContext context) protected ObjectExpressionValueMethodArgumentResolver.resolveName(String name, ResolvableMethodParameter resolvable, RequestContext context) protected ObjectMatrixParamParameterResolvingStrategy.resolveName(String name, ResolvableMethodParameter resolvable, RequestContext request) protected ObjectParameterResolvingRegistry.RequestAttributeMethodArgumentResolver.resolveName(String name, ResolvableMethodParameter resolvable, RequestContext context) protected ObjectPathVariableMethodArgumentResolver.resolveName(String name, ResolvableMethodParameter resolvable, RequestContext context) protected ObjectRequestHeaderMethodArgumentResolver.resolveName(String name, ResolvableMethodParameter resolvable, RequestContext context) protected ObjectRequestParamMethodArgumentResolver.resolveName(String name, ResolvableMethodParameter resolvable, RequestContext request) protected ObjectServletParameterResolvers.ForCookie.resolveName(String name, ResolvableMethodParameter resolvable, RequestContext context) protected ObjectServletParameterResolvers.ForCookieCollection.resolveName(String name, ResolvableMethodParameter resolvable, RequestContext context) protected ObjectServletParameterResolvers.ForServletContextAttribute.resolveName(String name, ResolvableMethodParameter resolvable, RequestContext context) (专用程序包) static ObjectMultipartResolutionDelegate.ServletDelegate.resolvePart(RequestContext request, String name, cn.taketoday.core.MethodParameter parameter) private voidHttpEntityMethodProcessor.saveRedirectAttributes(RequestContext request, String location) protected voidAbstractMessageConverterMethodArgumentResolver.validateIfApplicable(RequestContext context, cn.taketoday.core.MethodParameter parameter, Object arg) protected <T> voidAbstractMessageConverterMethodProcessor.writeWithMessageConverters(T value, cn.taketoday.core.MethodParameter returnType, RequestContext context) Writes the given return type to the given output message.参数类型为RequestContext的cn.taketoday.web.bind.resolver中的构造器限定符构造器说明RequestPartServerHttpRequest(RequestContext request, String requestPartName) Create a newRequestPartServletServerHttpRequestinstance. -
cn.taketoday.web.bind.resolver.date中RequestContext的使用
修饰符和类型方法说明protected StringAbstractDateParameterResolver.getParameterValue(RequestContext context, ResolvableMethodParameter parameter) AbstractDateParameterResolver.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) -
cn.taketoday.web.bind.support中RequestContext的使用
修饰符和类型方法说明voidDefaultSessionAttributeStore.cleanupAttribute(RequestContext request, String attributeName) voidSessionAttributeStore.cleanupAttribute(RequestContext request, String attributeName) Clean up the specified attribute in the backend session.protected StringDefaultSessionAttributeStore.getAttributeNameInSession(RequestContext request, String attributeName) Calculate the attribute name in the backend session.private WebSessionDefaultSessionAttributeStore.getSession(RequestContext request) DefaultSessionAttributeStore.retrieveAttribute(RequestContext request, String attributeName) SessionAttributeStore.retrieveAttribute(RequestContext request, String attributeName) Retrieve the specified attribute from the backend session.voidDefaultSessionAttributeStore.storeAttribute(RequestContext request, String attributeName, Object attributeValue) voidSessionAttributeStore.storeAttribute(RequestContext request, String attributeName, Object attributeValue) Store the supplied attribute in the backend session. -
cn.taketoday.web.context.async中RequestContext的使用
修饰符和类型方法说明default <T> voidCallableProcessingInterceptor.afterCompletion(RequestContext request, Callable<T> task) Invoked from a container thread when async processing completes for any reason including timeout or network error.default <T> voidDeferredResultProcessingInterceptor.afterCompletion(RequestContext request, DeferredResult<T> deferredResult) Invoked from a container thread when an async request completed for any reason including timeout and network error.voidCallableInterceptorChain.applyBeforeConcurrentHandling(RequestContext request, Callable<?> task) voidDeferredResultInterceptorChain.applyBeforeConcurrentHandling(RequestContext request, DeferredResult<?> deferredResult) CallableInterceptorChain.applyPostProcess(RequestContext request, Callable<?> task, Object concurrentResult) DeferredResultInterceptorChain.applyPostProcess(RequestContext request, DeferredResult<?> deferredResult, Object concurrentResult) voidCallableInterceptorChain.applyPreProcess(RequestContext request, Callable<?> task) voidDeferredResultInterceptorChain.applyPreProcess(RequestContext request, DeferredResult<?> deferredResult) default <T> voidCallableProcessingInterceptor.beforeConcurrentHandling(RequestContext request, Callable<T> task) Invoked before the start of concurrent handling in the original thread in which theCallableis submitted for concurrent handling.default <T> voidDeferredResultProcessingInterceptor.beforeConcurrentHandling(RequestContext request, DeferredResult<T> deferredResult) Invoked immediately before the start of concurrent handling, in the same thread that started it.static ObjectWebAsyncManager.findHttpRequestHandler(RequestContext request) WebAsyncManagerFactory.getWebAsyncManager(RequestContext request) default <T> ObjectCallableProcessingInterceptor.handleError(RequestContext request, Callable<T> task, Throwable t) Invoked from a container thread when an error occurred while processing the async request before theCallabletask completes.default <T> booleanDeferredResultProcessingInterceptor.handleError(RequestContext request, DeferredResult<T> deferredResult, Throwable t) Invoked from a container thread when an error occurred while processing an async request before theDeferredResulthas been set.default <T> ObjectCallableProcessingInterceptor.handleTimeout(RequestContext request, Callable<T> task) Invoked from a container thread when the async request times out before theCallabletask completes.default <T> booleanDeferredResultProcessingInterceptor.handleTimeout(RequestContext request, DeferredResult<T> deferredResult) Invoked from a container thread when an async request times out before theDeferredResulthas been set.<T> booleanTimeoutAsyncProcessingInterceptor.handleTimeout(RequestContext request, DeferredResult<T> result) <T> ObjectTimeoutAsyncProcessingInterceptor.handleTimeout(RequestContext request, Callable<T> task) default <T> voidCallableProcessingInterceptor.postProcess(RequestContext request, Callable<T> task, Object concurrentResult) Invoked after theCallablehas produced a result in the async thread in which theCallableis executed.default <T> voidDeferredResultProcessingInterceptor.postProcess(RequestContext request, DeferredResult<T> deferredResult, Object concurrentResult) Invoked after aDeferredResulthas been set, viaDeferredResult.setResult(Object)orDeferredResult.setErrorResult(Object), and is also ready to handle the concurrent result.default <T> voidCallableProcessingInterceptor.preProcess(RequestContext request, Callable<T> task) Invoked after the start of concurrent handling in the async thread in which theCallableis executed and before the actual invocation of theCallable.default <T> voidDeferredResultProcessingInterceptor.preProcess(RequestContext request, DeferredResult<T> deferredResult) Invoked immediately after the start of concurrent handling, in the same thread that started it.voidCallableInterceptorChain.triggerAfterCompletion(RequestContext request, Callable<?> task) voidDeferredResultInterceptorChain.triggerAfterCompletion(RequestContext request, DeferredResult<?> deferredResult) CallableInterceptorChain.triggerAfterError(RequestContext request, Callable<?> task, Throwable throwable) booleanDeferredResultInterceptorChain.triggerAfterError(RequestContext request, DeferredResult<?> deferredResult, Throwable ex) Determine if further error handling should be bypassed.CallableInterceptorChain.triggerAfterTimeout(RequestContext request, Callable<?> task) voidDeferredResultInterceptorChain.triggerAfterTimeout(RequestContext request, DeferredResult<?> deferredResult) 参数类型为RequestContext的cn.taketoday.web.context.async中的构造器 -
cn.taketoday.web.context.support中RequestContext的使用
修饰符和类型方法说明protected ObjectRequestScope.getAttribute(RequestContext context, String beanName) protected cn.taketoday.context.ApplicationEventRequestHandledEventPublisher.getRequestHandledEvent(RequestContext request, Throwable notHandled) create aRequestHandledEventfor the given request.private WebSessionSessionScope.getSession(RequestContext context) Returns the current session associated with this request, or if the request does not have a session, creates one.private WebSessionSessionScope.getSession(RequestContext request, boolean create) Returns the currentWebSessionassociated with this request or, if there is no current session andcreateis true, returns a new session.SessionManagerDiscover.obtain(RequestContext request) Obtain SessionManagerprotected voidRequestScope.removeAttribute(RequestContext context, String name) voidRequestHandledEventPublisher.requestCompleted(RequestContext request, Throwable notHandled) protected voidRequestScope.setAttribute(RequestContext context, String beanName, Object scopedObject) -
cn.taketoday.web.cors中RequestContext的使用
参数类型为RequestContext的cn.taketoday.web.cors中的方法修饰符和类型方法说明CorsConfigurationSource.getCorsConfiguration(RequestContext request) Return aCorsConfigurationbased on the incoming request.UrlBasedCorsConfigurationSource.getCorsConfiguration(RequestContext request) DefaultCorsProcessor.getHeadersToUse(RequestContext context, boolean isPreFlight) private HttpMethodDefaultCorsProcessor.getMethodToUse(RequestContext request, boolean isPreFlight) protected booleanDefaultCorsProcessor.handleInternal(RequestContext context, CorsConfiguration config, boolean preFlightRequest) Handle the given request.booleanCorsProcessor.process(CorsConfiguration configuration, RequestContext context) Process a request given aCorsConfiguration.booleanDefaultCorsProcessor.process(CorsConfiguration config, RequestContext context) protected voidDefaultCorsProcessor.rejectRequest(RequestContext context) Invoked when one of the CORS checks failed. -
cn.taketoday.web.handler中RequestContext的使用
参数类型为RequestContext的cn.taketoday.web.handler中的方法修饰符和类型方法说明voidMappedInterceptor.afterProcess(RequestContext request, Object handler, Object result) protected ObjectResponseStatusExceptionHandler.applyStatusAndReason(int statusCode, String reason, RequestContext request) Apply the resolved status code and reason to the response.protected voidSimpleMappingExceptionHandler.applyStatusCodeIfPossible(RequestContext request, int statusCode) Apply the specified HTTP status code to the given response, if possible (that is, if not executing within an include request).booleanAbstractHandlerMapping.CorsInterceptor.beforeProcess(RequestContext request, Object handler) booleanCorsHandlerInterceptor.beforeProcess(RequestContext request, Object handler) booleanMappedInterceptor.beforeProcess(RequestContext request, Object handler) protected StringAbstractHandlerExceptionHandler.buildLogMessage(Throwable ex, RequestContext request) Build a log message for the given exception, occurred during processing the given request.protected ResponseEntity<Object>ResponseEntityExceptionHandler.createResponseEntity(Object body, HttpHeaders headers, HttpStatusCode statusCode, RequestContext request) Create theResponseEntityto use from the given body, headers, and statusCode.protected IntegerSimpleMappingExceptionHandler.determineStatusCode(RequestContext request, String viewName) Determine the HTTP status code to apply for the given error view.protected StringSimpleMappingExceptionHandler.determineViewName(Throwable ex, RequestContext request) Determine the view name for the given exception, first checking against the"excludedExecptions", then searching the"exceptionMappings", and finally using the"defaultErrorView"as a fallback.voidDispatcherHandler.dispatch(RequestContext context) Process the actual dispatching to the handler.AbstractHandlerMapping.CorsInterceptor.getCorsConfiguration(RequestContext request) protected CorsConfigurationAbstractHandlerMapping.getCorsConfiguration(Object handler, RequestContext request) Retrieve the CORS configuration for the given handler.AbstractHandlerMapping.PreFlightHandler.getCorsConfiguration(RequestContext request) protected CorsConfigurationCorsHandlerInterceptor.getCorsConfiguration(RequestContext context, Object handler) protected HandlerExecutionChainAbstractHandlerMapping.getCorsHandlerExecutionChain(RequestContext request, HandlerExecutionChain chain, CorsConfiguration config) Update the HandlerExecutionChain for CORS-related handling.private ObjectAbstractUrlHandlerMapping.getDirectMatch(String urlPath, RequestContext request) final ObjectAbstractHandlerMapping.getHandler(RequestContext request) Look up a handler for the given request, falling back to the default handler if no specific one is found.HandlerRegistries.getHandler(RequestContext request) protected HandlerExecutionChainAbstractHandlerMapping.getHandlerExecutionChain(Object handler, RequestContext request) Build aHandlerExecutionChainfor the given handler, including applicable interceptors.protected abstract ObjectAbstractHandlerMapping.getHandlerInternal(RequestContext request) Look up a handler for the given request, returningnullif no specific one is found.protected ObjectAbstractUrlHandlerMapping.getHandlerInternal(RequestContext request) Look up a handler for the URL path of the given request.protected ModelAndViewSimpleMappingExceptionHandler.getModelAndView(String viewName, Throwable ex, RequestContext request) Return a ModelAndView for the given request, view name and exception.HandlerAdapters.handle(RequestContext context, Object handler) InterceptableHandlerAdapterDecorator.handle(RequestContext context, Object handler) protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleAsyncRequestTimeoutException(AsyncRequestTimeoutException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofAsyncRequestTimeoutException.protected ObjectSimpleHandlerExceptionHandler.handleAsyncRequestTimeoutException(AsyncRequestTimeoutException ex, RequestContext request, Object handler) Handle the case where an async request timed out.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleBindException(cn.taketoday.validation.BindException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofBindException.protected ObjectSimpleHandlerExceptionHandler.handleBindException(cn.taketoday.validation.BindException ex, RequestContext request, Object handler) Handle the case where an argument has binding or validation errors and is not followed by another method argument of typeBindingResult.voidDispatcherHandler.handleConcurrentResult(RequestContext context, Object handler, Object concurrentResult) handle async resultsprotected ResponseEntity<Object>ResponseEntityExceptionHandler.handleConversionNotSupported(cn.taketoday.beans.ConversionNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofConversionNotSupportedException.protected ObjectSimpleHandlerExceptionHandler.handleConversionNotSupported(cn.taketoday.beans.ConversionNotSupportedException ex, RequestContext request, Object handler) Handle the case when aWebDataBinderconversion cannot occur.protected ObjectSimpleHandlerExceptionHandler.handleErrorResponse(ErrorResponse errorResponse, RequestContext request, Object handler) Handle anErrorResponseexception.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleErrorResponseException(ErrorResponseException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling of anyErrorResponseException.AbstractHandlerExceptionHandler.handleException(RequestContext context, Throwable ex, Object handler) Check whether this handler is supposed to apply (i.e. if the supplied handler matches any of the configured handlers or handler classes), and then delegate to theAbstractHandlerExceptionHandler.handleInternal(cn.taketoday.web.RequestContext, java.lang.Object, java.lang.Throwable)template method.CompositeHandlerExceptionHandler.handleException(RequestContext context, Throwable exception, Object handler) final ResponseEntity<Object>ResponseEntityExceptionHandler.handleException(Exception ex, RequestContext request) Provides handling for standard Framework MVC exceptions.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleExceptionInternal(Exception ex, Object body, HttpHeaders headers, HttpStatusCode statusCode, RequestContext request) Internal handler method that all others in this class delegate to, for common handling, and for the creation of aResponseEntity.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHandlerNotFoundException(HandlerNotFoundException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofHandlerNotFoundException.protected ObjectSimpleHandlerExceptionHandler.handleHandlerNotFoundException(HandlerNotFoundException ex, RequestContext request, Object handler) Handle the case where no handler was found during the dispatch.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHttpMediaTypeNotAcceptable(HttpMediaTypeNotAcceptableException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofHttpMediaTypeNotAcceptableException.protected ObjectSimpleHandlerExceptionHandler.handleHttpMediaTypeNotAcceptable(HttpMediaTypeNotAcceptableException ex, RequestContext request, Object handler) Handle the case where no message converters were found that were acceptable for the client (expressed via theAcceptheader.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofHttpMediaTypeNotSupportedException.protected ObjectSimpleHandlerExceptionHandler.handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupportedException ex, RequestContext request, Object handler) Handle the case where no message converters were found for PUT or POSTed content.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHttpMessageNotReadable(HttpMessageNotReadableException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofHttpMessageNotReadableException.protected ObjectSimpleHandlerExceptionHandler.handleHttpMessageNotReadable(HttpMessageNotReadableException ex, RequestContext request, Object handler) Handle the case where a message converter cannot read from an HTTP request.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHttpMessageNotWritable(HttpMessageNotWritableException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofHttpMessageNotWritableException.protected ObjectSimpleHandlerExceptionHandler.handleHttpMessageNotWritable(HttpMessageNotWritableException ex, RequestContext request, Object handler) Handle the case where a message converter cannot write to an HTTP request.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHttpRequestMethodNotSupported(HttpRequestMethodNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofHttpRequestMethodNotSupportedException.protected ObjectSimpleHandlerExceptionHandler.handleHttpRequestMethodNotSupported(HttpRequestMethodNotSupportedException ex, RequestContext request, Object handler) Handle the case where no handler was found for the HTTP method.protected abstract ObjectAbstractActionMappingMethodExceptionHandler.handleInternal(RequestContext request, HandlerMethod handlerMethod, Throwable ex) Actually resolve the given exception that got thrown during on handler execution, returning a view(result) that represents a specific error page if appropriate.protected ObjectAbstractActionMappingMethodExceptionHandler.handleInternal(RequestContext request, Object handler, Throwable ex) protected abstract ObjectAbstractHandlerExceptionHandler.handleInternal(RequestContext request, Object handler, Throwable ex) Actually handle the given exception that got thrown during handler execution, returning aresultthat represents a specific error page if appropriate.protected ObjectHandlerExecutionChain.handleInternal(RequestContext context) protected abstract ObjectInterceptableRequestHandler.handleInternal(RequestContext context) perform this handler' behavior internalprotected ObjectResponseStatusExceptionHandler.handleInternal(RequestContext request, Object handler, Throwable ex) protected ObjectSimpleActionMappingMethodExceptionHandler.handleInternal(RequestContext context, HandlerMethod handlerMethod, Throwable ex) protected ObjectSimpleHandlerExceptionHandler.handleInternal(RequestContext request, Object handler, Throwable ex) protected ModelAndViewSimpleMappingExceptionHandler.handleInternal(RequestContext request, Object handler, Throwable ex) Actually resolve the given exception that got thrown during on handler execution, returning a ModelAndView that represents a specific error page if appropriate.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleMethodArgumentNotValid(MethodArgumentNotValidException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofMethodArgumentNotValidException.protected ObjectSimpleHandlerExceptionHandler.handleMethodArgumentNotValidException(MethodArgumentNotValidException ex, RequestContext request, Object handler) Handle the case where an argument annotated with@Validsuch as anRequestBodyorRequestPartargument fails validation.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleMissingPathVariable(MissingPathVariableException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofMissingPathVariableException.protected ObjectSimpleHandlerExceptionHandler.handleMissingPathVariable(MissingPathVariableException ex, RequestContext request, Object handler) Handle the case when a declared path variable does not match any extracted URI variable.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleMissingRequestParameter(MissingRequestParameterException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofMissingRequestParameterException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleMissingRequestPart(MissingRequestPartException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofMissingRequestPartException.protected ObjectSimpleHandlerExceptionHandler.handleMissingRequestPartException(MissingRequestPartException ex, RequestContext request, Object handler) Handle the case where an @RequestPart, aMultipartFile, or ajakarta.servlet.http.Partargument is required but is missing.protected ObjectSimpleHandlerExceptionHandler.handleMissingServletRequestParameter(MissingRequestParameterException ex, RequestContext request, Object handler) Handle the case when a required parameter is missing.protected ObjectNotFoundHandler.handleNotFound(RequestContext request) Process not foundAbstractHandlerMapping.PreFlightHandler.handleRequest(RequestContext request) InterceptableRequestHandler.handleRequest(RequestContext request) performHandlerInterceptoron this handlerNotFoundHandler.handleRequest(RequestContext request) 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.voidReturnValueHandlerManager.handleReturnValue(RequestContext context, Object handler, Object returnValue) voidSelectableReturnValueHandler.handleReturnValue(RequestContext context, Object handler, Object returnValue) protected ObjectDispatcherHandler.handlerNotFound(RequestContext request) No handler found → set appropriate HTTP response status.final ReturnValueHandlerSelectableReturnValueHandler.handleSelectively(RequestContext context, Object handler, Object returnValue) select a handler and handle return-value with selected handlerprotected ResponseEntity<Object>ResponseEntityExceptionHandler.handleTypeMismatch(cn.taketoday.beans.TypeMismatchException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofTypeMismatchException.protected ObjectSimpleHandlerExceptionHandler.handleTypeMismatch(cn.taketoday.beans.TypeMismatchException ex, RequestContext request, Object handler) Handle the case when aWebDataBinderconversion error occurs.MappedInterceptor.intercept(RequestContext request, InterceptorChain chain) protected ObjectInterceptableHandlerAdapterDecorator.Chain.invokeHandler(RequestContext context, Object handler) protected ObjectInterceptableRequestHandler.Chain.invokeHandler(RequestContext context, Object handler) protected voidAbstractHandlerExceptionHandler.logException(Throwable ex, RequestContext request) Log the given exception at warn level, provided that warn logging has been activated through the"warnLogCategory"property.protected voidNotFoundHandler.logNotFound(RequestContext context) private voidDispatcherHandler.logRequest(RequestContext request) private voidDispatcherHandler.logResult(RequestContext request, Throwable failureCause) protected ObjectAbstractUrlHandlerMapping.lookupHandler(RequestContext request) Look up a handler instance for the given URL path.DispatcherHandler.lookupHandler(RequestContext context) Find a suitable handler to handle this HTTP requestbooleanMappedInterceptor.matches(RequestContext request) Check whether this interceptor is mapped to the request.protected voidAbstractHandlerExceptionHandler.prepareResponse(Throwable ex, RequestContext response) Prepare the response for the exceptional case.protected voidAbstractHandlerExceptionHandler.preventCaching(RequestContext response) Prevents the response from being cached, through setting corresponding HTTPCache-Control: no-storeheader.protected voidDispatcherHandler.processDispatchResult(RequestContext request, Object handler, Object returnValue, Throwable exception) Handle the result of handler selection and handler invocation, which is either a view or an Exception to be resolved to a view.protected ObjectDispatcherHandler.processHandlerException(RequestContext request, Object handler, Throwable ex) Determine an error view via the registered HandlerExceptionHandlers.protected voidDispatcherHandler.requestCompleted(RequestContext request, Throwable notHandled) protected ObjectResponseStatusExceptionHandler.resolveResponseStatus(ResponseStatus responseStatus, RequestContext request, Object handler, Throwable ex) Template method that handles the@ResponseStatusannotation.protected ObjectResponseStatusExceptionHandler.resolveResponseStatusException(ResponseStatusException ex, RequestContext request, Object handler) Template method that handles anResponseStatusException.protected voidSimpleHandlerExceptionHandler.sendServerError(Exception ex, RequestContext request) Invoked to send a server error.protected booleanAbstractActionMappingMethodExceptionHandler.shouldApplyTo(RequestContext request, Object handler) Checks if the handler is aHandlerMethodand then delegates to the base class implementation of#shouldApplyTo(HttpServletRequest, Object)passing the bean of theHandlerMethod.protected booleanAbstractHandlerExceptionHandler.shouldApplyTo(RequestContext request, Object handler) Check whether this handler is supposed to apply to the given handler.protected voidAbstractUrlHandlerMapping.validateHandler(Object handler, RequestContext request) Validate the given handler against the current request.protected voidSimpleActionMappingMethodExceptionHandler.writeErrorMessage(Throwable ex, RequestContext context) Write error message to request context, default is write json -
cn.taketoday.web.handler.condition中RequestContext的使用
修饰符和类型方法说明intCompositeRequestCondition.compareTo(CompositeRequestCondition other, RequestContext request) If one instance is empty, the other "wins".intConsumesRequestCondition.compareTo(ConsumesRequestCondition other, RequestContext request) Returns: 0 if the two conditions have the same number of expressions Less than 0 if "this" has more or more specific media type expressions Greater than 0 if "other" has more or more specific media type expressionsintHeadersRequestCondition.compareTo(HeadersRequestCondition other, RequestContext request) Compare to another condition based on header expressions.intParamsRequestCondition.compareTo(ParamsRequestCondition other, RequestContext request) Compare to another condition based on parameter expressions.intPathPatternsRequestCondition.compareTo(PathPatternsRequestCondition other, RequestContext request) Compare the two conditions based on the URL patterns they contain.intProducesRequestCondition.compareTo(ProducesRequestCondition other, RequestContext request) Compares this and another "produces" condition as follows: Sort 'Accept' header media types by quality value viaMimeTypeUtils.sortBySpecificity(List)and iterate the list.intRequestCondition.compareTo(T other, RequestContext request) Compare this condition to another condition in the context of a specific request.intRequestConditionHolder.compareTo(RequestConditionHolder other, RequestContext request) Compare the request conditions held by the two RequestConditionHolder instances after making sure the conditions are of the same type.intRequestMethodsRequestCondition.compareTo(RequestMethodsRequestCondition other, RequestContext request) Returns: 0 if the two conditions contain the same number of HTTP request methods Less than 0 if "this" instance has an HTTP request method but "other" doesn't Greater than 0 "other" has an HTTP request method but "this" doesn'tProducesRequestCondition.getAcceptedMediaTypes(RequestContext request) CompositeRequestCondition.getMatchingCondition(RequestContext request) Delegate to all contained conditions to match the request and return the resulting "matching" condition instances.ConsumesRequestCondition.getMatchingCondition(RequestContext request) Checks if any of the contained media type expressions match the given request 'Content-Type' header and returns an instance that is guaranteed to contain matching expressions only.HeadersRequestCondition.getMatchingCondition(RequestContext request) Returns "this" instance if the request matches all expressions; ornullotherwise.ParamsRequestCondition.getMatchingCondition(RequestContext request) Returns "this" instance if the request matches all param expressions; ornullotherwise.PathPatternsRequestCondition.getMatchingCondition(RequestContext request) Checks if any of the patterns match the given request and returns an instance that is guaranteed to contain matching patterns, sorted.ProducesRequestCondition.getMatchingCondition(RequestContext request) Checks if any of the contained media type expressions match the given request 'Content-Type' header and returns an instance that is guaranteed to contain matching expressions only.RequestCondition.getMatchingCondition(RequestContext request) Check if the condition matches the request returning a potentially new instance created for the current request.RequestConditionHolder.getMatchingCondition(RequestContext request) Get the matching condition for the held request condition wrap it in a new RequestConditionHolder instance.RequestMethodsRequestCondition.getMatchingCondition(RequestContext request) Check if any of the HTTP request methods match the given request and return an instance that contains the matching HTTP request method only.private booleanConsumesRequestCondition.hasBody(RequestContext request) final booleanAbstractNameValueExpression.match(RequestContext request) protected abstract booleanAbstractNameValueExpression.matchName(RequestContext request) protected booleanHeadersRequestCondition.HeaderExpression.matchName(RequestContext request) protected booleanParamsRequestCondition.ParamExpression.matchName(RequestContext request) private RequestMethodsRequestConditionRequestMethodsRequestCondition.matchPreFlight(RequestContext request) On a pre-flight request match to the would-be, actual request.protected abstract booleanAbstractNameValueExpression.matchValue(RequestContext request) protected booleanHeadersRequestCondition.HeaderExpression.matchValue(RequestContext request) protected booleanParamsRequestCondition.ParamExpression.matchValue(RequestContext request) -
cn.taketoday.web.handler.function中RequestContext的使用
修饰符和类型字段说明private final RequestContextDefaultServerRequest.CheckNotModifiedResponse.contextprivate final RequestContextDefaultEntityResponseBuilder.PublisherEntityResponse.DeferredResultSubscriber.requestprivate final RequestContextSseServerResponse.DefaultSseBuilder.requestprivate final RequestContextDefaultServerRequest.requestContextprivate final RequestContextDefaultServerRequest.ServletAttributesMap.requestContextprivate final RequestContextDefaultServerRequest.ServletParametersMap.requestContextprivate final RequestContextDefaultServerRequestBuilder.BuiltServerRequest.requestContextprivate final RequestContextDefaultServerRequestBuilder.requestContext修饰符和类型方法说明DefaultServerRequest.exchange()DefaultServerRequestBuilder.BuiltServerRequest.exchange()RequestPredicates.SubPathServerRequestWrapper.exchange()ServerRequest.exchange()Get the request that this request is based on.修饰符和类型方法说明(专用程序包) static Optional<ServerResponse>DefaultServerRequest.checkNotModified(RequestContext context, Instant lastModified, String etag) static ServerRequestServerRequest.create(RequestContext context, List<HttpMessageConverter<?>> messageReaders) Create a newServerRequestbased on the givenRequestContextand message converters.private DeferredResult<ServerResponse>DefaultAsyncServerResponse.createDeferredResult(RequestContext request) private DeferredResult<ServerResponse>DefaultEntityResponseBuilder.CompletionStageEntityResponse.createDeferredResult(RequestContext request, ServerResponse.Context context) protected final ServerResponseErrorHandlingServerResponse.errorResponse(Throwable t, RequestContext request) static ServerRequestServerRequest.find(RequestContext context) static ServerRequestServerRequest.findRequired(RequestContext context) private static MediaTypeDefaultEntityResponseBuilder.DefaultEntityResponse.getContentType(RequestContext response) protected final ObjectErrorHandlingServerResponse.handleError(Throwable t, RequestContext request, ServerResponse.Context context) protected voidDefaultEntityResponseBuilder.DefaultEntityResponse.tryWriteEntityWithMessageConverters(Object entity, RequestContext request, ServerResponse.Context context) ServerResponse.HeadersBuilder.WriteFunction.write(RequestContext request) Write to the givenservletResponse, or return aModelAndViewto be rendered.(专用程序包) static voidDefaultAsyncServerResponse.writeAsync(RequestContext request, DeferredResult<?> deferredResult) private voidAbstractServerResponse.writeCookies(RequestContext context) protected voidDefaultEntityResponseBuilder.DefaultEntityResponse.writeEntityWithMessageConverters(Object entity, RequestContext request, ServerResponse.Context context) private voidAbstractServerResponse.writeHeaders(RequestContext context) private voidAbstractServerResponse.writeStatusAndHeaders(RequestContext response) AbstractServerResponse.writeTo(RequestContext request, ServerResponse.Context context) DefaultAsyncServerResponse.writeTo(RequestContext request, ServerResponse.Context context) ServerResponse.writeTo(RequestContext request, ServerResponse.Context context) Write this response to the given servlet response.protected abstract ObjectAbstractServerResponse.writeToInternal(RequestContext request, ServerResponse.Context context) protected ObjectDefaultEntityResponseBuilder.CompletionStageEntityResponse.writeToInternal(RequestContext request, ServerResponse.Context context) protected ObjectDefaultEntityResponseBuilder.DefaultEntityResponse.writeToInternal(RequestContext request, ServerResponse.Context context) protected ObjectDefaultEntityResponseBuilder.PublisherEntityResponse.writeToInternal(RequestContext request, ServerResponse.Context context) protected ObjectDefaultRenderingResponseBuilder.DefaultRenderingResponse.writeToInternal(RequestContext request, ServerResponse.Context context) protected ObjectDefaultServerResponseBuilder.WriteFunctionResponse.writeToInternal(RequestContext request, ServerResponse.Context context) protected ObjectModelAndViewRenderingResponseBuilder.ModelAndViewRenderingResponse.writeToInternal(RequestContext request, ServerResponse.Context context) protected ObjectSseServerResponse.writeToInternal(RequestContext request, ServerResponse.Context context) 限定符构造器说明BuiltServerRequest(RequestContext requestContext, HttpMethod method, URI uri, HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, HttpCookie> cookies, Map<String, Object> attributes, cn.taketoday.util.MultiValueMap<String, String> params, InetSocketAddress remoteAddress, byte[] body, List<HttpMessageConverter<?>> messageConverters) protectedCheckNotModifiedResponse(RequestContext context) (专用程序包)DefaultServerRequest(RequestContext requestContext, List<HttpMessageConverter<?>> messageConverters) DefaultSseBuilder(RequestContext request, ServerResponse.Context context, DeferredResult<?> deferredResult) DeferredResultSubscriber(RequestContext request, ServerResponse.Context context, DeferredResult<?> deferredResult) privateServletAttributesMap(RequestContext requestContext) privateServletParametersMap(RequestContext requestContext) -
cn.taketoday.web.handler.function.support中RequestContext的使用
修饰符和类型方法说明protected ObjectRouterFunctionMapping.getHandlerInternal(RequestContext context) HandlerFunctionAdapter.handle(RequestContext context, Object handler) -
cn.taketoday.web.handler.method中RequestContext的使用
修饰符和类型字段说明private final RequestContextResponseBodyEmitterReturnValueHandler.HttpMessageConvertingHandler.request修饰符和类型方法说明private voidAbstractHandlerMethodMapping.addMatchingMappings(Collection<T> mappings, ArrayList<AbstractHandlerMethodMapping.Match<T>> matches, RequestContext request) protected voidActionMappingAnnotationHandler.applyResponseStatus(RequestContext context) Set the response status according to theResponseStatusannotation.protected voidActionMappingAnnotationHandler.applyResponseStatus(RequestContext context, HttpStatusCode status) private voidInvocableHandlerMethod.applyResponseStatus(RequestContext response) Set the response status according to theResponseStatusannotation.AbstractMappingJacksonResponseBodyAdvice.beforeBodyWrite(Object body, cn.taketoday.core.MethodParameter returnType, MediaType contentType, HttpMessageConverter<?> converter, RequestContext context) ResponseBodyAdvice.beforeBodyWrite(Object body, cn.taketoday.core.MethodParameter returnType, MediaType contentType, HttpMessageConverter<?> converter, RequestContext context) Invoked after anHttpMessageConverteris selected and just before its write method is invoked.protected abstract voidAbstractMappingJacksonResponseBodyAdvice.beforeBodyWriteInternal(MappingJacksonValue bodyContainer, MediaType contentType, cn.taketoday.core.MethodParameter returnType, RequestContext request) Invoked only if the converter type isMappingJackson2HttpMessageConverter.protected voidJsonViewResponseBodyAdvice.beforeBodyWriteInternal(MappingJacksonValue value, MediaType contentType, cn.taketoday.core.MethodParameter returnType, RequestContext request) protected voidModelAttributeMethodProcessor.bindRequestParameters(WebDataBinder binder, RequestContext request) Extension point to bind the request to the target object.voidSessionAttributesHandler.cleanupAttributes(RequestContext request) Remove "known" attributes from the session, i.e. attributes listed by name in@SessionAttributesor attributes previously stored in the model that matched by type.intRequestMappingInfo.compareTo(RequestMappingInfo other, RequestContext request) Compares "this" info (i.e. the current instance) with another info in the context of a request.protected voidModelAttributeMethodProcessor.constructAttribute(WebDataBinder binder, RequestContext request) Extension point to create the attribute, binding the request to constructor args.protected ObjectModelAttributeMethodProcessor.createAttribute(String attributeName, cn.taketoday.core.MethodParameter parameter, BindingContext bindingContext, RequestContext request) Extension point to create the model attribute if not found in the model, with subsequent parameter binding through bean properties (unless suppressed).protected ObjectModelAttributeMethodProcessor.createAttributeFromRequestValue(String sourceValue, String attributeName, cn.taketoday.core.MethodParameter parameter, BindingContext binderFactory, RequestContext request) Create a model attribute from a String request value (e.g.private ObjectActionMappingAnnotationHandler.doInvoke(RequestContext context) protected voidResponseBodyEmitter.extendResponse(RequestContext outputMessage) Invoked after the response is updated with the status code and headers, if the ResponseBodyEmitter is wrapped in a ResponseEntity, but before the response is committed, i.e. before the response body has been written to.protected voidSseEmitter.extendResponse(RequestContext outputMessage) protected CorsConfigurationAbstractHandlerMethodMapping.getCorsConfiguration(Object handler, RequestContext request) protected HandlerMethodAbstractHandlerMethodMapping.getHandlerInternal(RequestContext context) Look up a handler method for the given request.protected abstract Comparator<T>AbstractHandlerMethodMapping.getMappingComparator(RequestContext request) Return a comparator for sorting matching mappings.protected Comparator<RequestMappingInfo>RequestMappingInfoHandlerMapping.getMappingComparator(RequestContext request) Provide a Comparator to sort RequestMappingInfos matched to a request.RequestMappingInfo.getMatchingCondition(RequestContext request) Checks if all conditions in this request mapping info match the provided request and returns a potentially new request mapping info with conditions tailored to the current request.protected abstract TAbstractHandlerMethodMapping.getMatchingMapping(T mapping, RequestContext request) Check if a mapping matches the current request and return a (potentially new) mapping with conditions relevant to the current request.protected RequestMappingInfoRequestMappingInfoHandlerMapping.getMatchingMapping(RequestMappingInfo info, RequestContext request) Check if the given RequestMappingInfo matches the current request and return a (potentially new) instance with conditions that match the current request -- for example with a subset of URL patterns.private Collection<MediaType>ReactiveTypeHandler.getMediaTypes(RequestContext request) protected Object[]InvocableHandlerMethod.getMethodArgumentValues(RequestContext request, Object[] providedArgs) Get the method argument values for the current request, checking the provided argument values and falling back to the configured argument resolvers.protected StringModelAttributeMethodProcessor.getRequestValueForAttribute(String attributeName, RequestContext request) Obtain a value from the request that may be used to instantiate the model attribute through type conversion from String to the target type.private WebSessionRequestMappingHandlerAdapter.getSession(RequestContext request) ModelAttributeMethodProcessor.getUriVariables(RequestContext request) final ObjectAbstractHandlerMethodAdapter.handle(RequestContext request, Object handler) This implementation expects the handler to be anHandlerMethod.voidModelAttributeMethodProcessor.handleHandlerMethodReturnValue(RequestContext context, HandlerMethod handler, Object returnValue) Add non-null return values to theBindingContext.protected abstract ObjectAbstractHandlerMethodAdapter.handleInternal(RequestContext request, HandlerMethod handlerMethod) Use the given handler method to handle the request.protected ObjectActionMappingAnnotationHandler.handleInternal(RequestContext context) protected ObjectExceptionHandlerAnnotationExceptionHandler.handleInternal(RequestContext context, HandlerMethod handlerMethod, Throwable target) protected ObjectRequestMappingHandlerAdapter.handleInternal(RequestContext request, HandlerMethod handlerMethod) protected voidAbstractHandlerMethodMapping.handleMatch(AbstractHandlerMethodMapping.Match<T> bestMatch, String directLookupPath, RequestContext request) Invoked when a matching mapping is found.protected voidRequestMappingInfoHandlerMapping.handleMatch(AbstractHandlerMethodMapping.Match<RequestMappingInfo> bestMatch, String directLookupPath, RequestContext request) Expose URI template variables, matrix variables, and producible media types in the request.protected HandlerMethodAbstractHandlerMethodMapping.handleNoMatch(Set<T> mappings, String lookupPath, RequestContext request) Invoked when no matching mapping is not found.protected HandlerMethodRequestMappingInfoHandlerMapping.handleNoMatch(Set<RequestMappingInfo> infos, String lookupPath, RequestContext request) Iterate all RequestMappingInfo's once again, look if any match by URL at least and raise exceptions according to what doesn't match.voidActionMappingAnnotationHandler.handleReturnValue(RequestContext context, Object handler, Object returnValue) voidResponseBodyEmitterReturnValueHandler.handleReturnValue(RequestContext request, Object handler, Object returnValue) ReactiveTypeHandler.handleValue(Object returnValue, cn.taketoday.core.MethodParameter returnType, RequestContext request) Process the given reactive return value and decide whether to adapt it to aResponseBodyEmitteror aDeferredResult.voidInitBinderBindingContext.initBinder(WebDataBinder dataBinder, RequestContext request) Initialize a WebDataBinder with@InitBindermethods.voidInitBinderBindingContext.initModel(RequestContext request) voidModelHandler.initModel(RequestContext request, BindingContext container, HandlerMethod handlerMethod) Populate the model in the following order: Retrieve "known" session attributes listed as@SessionAttributes.protected ObjectActionMappingAnnotationHandler.invoke(RequestContext context, Object... providedArgs) InvocableHandlerMethod.invokeAndHandle(RequestContext request) Invoke the method and handle the statusHandlerMethod.ConcurrentResultHandlerMethod.invokeForRequest(RequestContext request) InvocableHandlerMethod.invokeForRequest(RequestContext request, Object... providedArgs) Invoke the method after resolving its argument values in the context of the given request.ActionMappingAnnotationHandler.invokeHandler(RequestContext request) protected ObjectRequestMappingHandlerAdapter.invokeHandlerMethod(RequestContext request, HandlerMethod handlerMethod) Invoke theRequestMappinghandler method preparing aModelAndViewif view resolution is required.private voidModelHandler.invokeModelAttributeMethods(RequestContext request, BindingContext container, ArrayList<ModelHandler.ModelMethod> modelMethods) Invoke model attribute methods to populate the model.protected HandlerMethodAbstractHandlerMethodMapping.lookupHandlerMethod(String directLookupPath, RequestContext request) Look up the best-matching handler method for the current request.ModelAndViewMethodArgumentResolver.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) ModelAttributeMethodProcessor.resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) Resolve the argument from the model or if not found instantiate it with its default if it is available.ParameterResolverMethodParameter.resolveParameter(RequestContext request) ResolvableMethodParameter.resolveParameter(RequestContext request) simple impl(专用程序包) ObjectSessionAttributesHandler.retrieveAttribute(RequestContext request, String attributeName) A pass-through call to the underlyingSessionAttributeStore.SessionAttributesHandler.retrieveAttributes(RequestContext request) Retrieve "known" attributes from the session, i.e. attributes listed by name in@SessionAttributesor attributes previously stored in the model that matched by type.protected booleanExceptionHandlerAnnotationExceptionHandler.shouldApplyTo(RequestContext request, Object handler) voidSessionAttributesHandler.storeAttributes(RequestContext request, Map<String, ?> attributes) Store a subset of the given attributes in the session.private voidModelHandler.updateBindingResult(RequestContext request, BindingContext bindingContext, cn.taketoday.ui.ModelMap model, SessionAttributesHandler sessionAttributesHandler) AddBindingResultattributes to the model for attributes that require it.voidInitBinderBindingContext.updateModel(RequestContext request) voidModelHandler.updateModel(RequestContext request, BindingContext container, Class<?> handlerMethod) Promote model attributes listed as@SessionAttributesto the session.限定符构造器说明HttpMessageConvertingHandler(RequestContext request, DeferredResult<?> deferredResult) PartialMatch(RequestMappingInfo info, RequestContext request) Create a newRequestMappingInfoHandlerMapping.PartialMatchHelper.PartialMatchinstance.PartialMatchHelper(Set<RequestMappingInfo> infos, RequestContext request) -
cn.taketoday.web.handler.mvc中RequestContext的使用
修饰符和类型方法说明booleanWebContentInterceptor.beforeProcess(RequestContext request, Object handler) protected StringUrlFilenameViewController.extractOperableUrl(RequestContext request) Extract a URL path from the given request, suitable for view name extraction.protected abstract StringAbstractUrlViewController.getViewNameForRequest(RequestContext request) Return the name of the view to render for this request, based on the given lookup path.protected StringUrlFilenameViewController.getViewNameForRequest(RequestContext request) Returns view name based on the URL filename, with prefix/suffix applied when appropriate.AbstractController.handleRequest(RequestContext request) protected abstract ObjectAbstractController.handleRequestInternal(RequestContext request) Template method.protected ModelAndViewAbstractUrlViewController.handleRequestInternal(RequestContext request) Retrieves the URL path to use for lookup and delegates toAbstractUrlViewController.getViewNameForRequest(cn.taketoday.web.RequestContext).protected ObjectParameterizableViewController.handleRequestInternal(RequestContext request) Return a ModelAndView object with the specified view name.protected ModelAndViewServletForwardingController.handleRequestInternal(RequestContext request) protected ModelAndViewServletWrappingController.handleRequestInternal(RequestContext request) Invoke the wrapped Servlet instance. -
cn.taketoday.web.handler.result中RequestContext的使用
修饰符和类型方法说明voidAsyncReturnValueHandler.handleAsyncReturnValue(RequestContext context, Object returnValue) Handle result of the handlerdefault voidHandlerMethodReturnValueHandler.handleHandlerMethodReturnValue(RequestContext context, HandlerMethod handler, Object returnValue) Handle result of the handlervoidAsyncTaskMethodReturnValueHandler.handleReturnValue(RequestContext context, Object handler, Object returnValue) voidCallableMethodReturnValueHandler.handleReturnValue(RequestContext context, Object handler, Object returnValue) voidDeferredResultReturnValueHandler.handleReturnValue(RequestContext context, Object handler, Object returnValue) default voidHandlerMethodReturnValueHandler.handleReturnValue(RequestContext context, Object handler, Object returnValue) Handle result of the handlervoidHttpHeadersReturnValueHandler.handleReturnValue(RequestContext context, Object handler, Object returnValue) voidHttpStatusReturnValueHandler.handleReturnValue(RequestContext context, Object handler, Object returnValue) voidObjectHandlerMethodReturnValueHandler.handleReturnValue(RequestContext context, Object handler, Object returnValue) voidRenderedImageReturnValueHandler.handleReturnValue(RequestContext context, Object handler, Object returnValue) voidStreamingResponseBodyReturnValueHandler.handleReturnValue(RequestContext context, Object handler, Object returnValue) voidVoidReturnValueHandler.handleReturnValue(RequestContext context, Object handler, Object returnValue) mainly for ModelAndViewvoidRenderedImageReturnValueHandler.write(RenderedImage image, RequestContext context) -
cn.taketoday.web.i18n中RequestContext的使用
参数类型为RequestContext的cn.taketoday.web.i18n中的方法修饰符和类型方法说明booleanLocaleChangeInterceptor.beforeProcess(RequestContext request, Object handler) protected LocaleCookieLocaleResolver.determineDefaultLocale(RequestContext request) Determine the default locale for the given request, Called if no locale cookie has been found.protected LocaleSessionLocaleResolver.determineDefaultLocale(RequestContext request) Determine the default locale for the given request, called if noLocalesession attribute has been found.protected TimeZoneCookieLocaleResolver.determineDefaultTimeZone(RequestContext request) Determine the default time zone for the given request, Called if no time zone cookie has been found.protected TimeZoneSessionLocaleResolver.determineDefaultTimeZone(RequestContext request) Determine the default time zone for the given request, called if noTimeZonesession attribute has been found.private LocaleAcceptHeaderLocaleResolver.findSupportedLocale(RequestContext request, List<Locale> supportedLocales) private <T> TSessionLocaleResolver.getSessionAttribute(RequestContext request, String attributeName) private SessionManagerSessionLocaleResolver.getSessionManager(RequestContext request) private voidCookieLocaleResolver.parseLocaleCookieIfNecessary(RequestContext request) AbstractLocaleContextResolver.resolveLocale(RequestContext request) AcceptHeaderLocaleResolver.resolveLocale(RequestContext request) CookieLocaleResolver.resolveLocale(RequestContext request) FixedLocaleResolver.resolveLocale(RequestContext request) SessionLocaleResolver.resolveLocale(RequestContext request) cn.taketoday.core.i18n.LocaleContextCookieLocaleResolver.resolveLocaleContext(RequestContext request) cn.taketoday.core.i18n.LocaleContextFixedLocaleResolver.resolveLocaleContext(RequestContext request) cn.taketoday.core.i18n.LocaleContextSessionLocaleResolver.resolveLocaleContext(RequestContext request) voidAbstractLocaleContextResolver.setLocale(RequestContext request, Locale locale) voidAcceptHeaderLocaleResolver.setLocale(RequestContext request, Locale locale) voidCookieLocaleResolver.setLocale(RequestContext request, Locale locale) voidCookieLocaleResolver.setLocaleContext(RequestContext request, cn.taketoday.core.i18n.LocaleContext localeContext) voidFixedLocaleResolver.setLocaleContext(RequestContext request, cn.taketoday.core.i18n.LocaleContext localeContext) voidSessionLocaleResolver.setLocaleContext(RequestContext request, cn.taketoday.core.i18n.LocaleContext localeContext) private voidSessionLocaleResolver.setSessionAttribute(RequestContext request, String attributeName, Object attribute) -
cn.taketoday.web.resource中RequestContext的使用
参数类型为RequestContext的cn.taketoday.web.resource中的方法修饰符和类型方法说明protected StringCachingResourceResolver.computeKey(RequestContext request, String requestPath) private StringPathResourceResolver.encodeOrDecodeIfNecessary(String path, RequestContext request, cn.taketoday.core.io.Resource location) private StringEncodedResourceResolver.getAcceptEncoding(RequestContext request) private StringCachingResourceResolver.getContentCodingKey(RequestContext request) ResourceHttpRequestHandler.getCorsConfiguration(RequestContext request) Return the specified CORS configuration.final StringResourceUrlProvider.getForRequestUrl(RequestContext request, String requestUrl) A variation onResourceUrlProvider.getForLookupPath(String)that accepts a full request URL path (i.e. including context and servlet path) and returns the full request URL path to expose for public use.private intResourceUrlProvider.getLookupPathIndex(RequestContext request) protected MediaTypeResourceHttpRequestHandler.getMediaType(RequestContext request, cn.taketoday.core.io.Resource resource) Determine the media type for the given request and the resource matched to it.private cn.taketoday.core.io.ResourcePathResourceResolver.getResource(String resourcePath, RequestContext request, List<? extends cn.taketoday.core.io.Resource> locations) protected cn.taketoday.core.io.ResourceResourceHttpRequestHandler.getResource(RequestContext request) DefaultServletHttpRequestHandler.handleRequest(RequestContext request) ResourceHttpRequestHandler.handleRequest(RequestContext request) Processes a resource request.cn.taketoday.core.io.ResourceAbstractResourceResolver.resolveResource(RequestContext request, String requestPath, List<? extends cn.taketoday.core.io.Resource> locations, ResourceResolvingChain chain) cn.taketoday.core.io.ResourceDefaultResourceResolvingChain.resolveResource(RequestContext request, String requestPath, List<? extends cn.taketoday.core.io.Resource> locations) cn.taketoday.core.io.ResourceResourceResolver.resolveResource(RequestContext request, String requestPath, List<? extends cn.taketoday.core.io.Resource> locations, ResourceResolvingChain chain) Resolve the supplied request and request path to aResourcethat exists under one of the given resource locations.cn.taketoday.core.io.ResourceResourceResolvingChain.resolveResource(RequestContext request, String requestPath, List<? extends cn.taketoday.core.io.Resource> locations) Resolve the supplied request and request path to aResourcethat exists under one of the given resource locations.protected abstract cn.taketoday.core.io.ResourceAbstractResourceResolver.resolveResourceInternal(RequestContext request, String requestPath, List<? extends cn.taketoday.core.io.Resource> locations, ResourceResolvingChain chain) protected cn.taketoday.core.io.ResourceCachingResourceResolver.resolveResourceInternal(RequestContext request, String requestPath, List<? extends cn.taketoday.core.io.Resource> locations, ResourceResolvingChain chain) protected cn.taketoday.core.io.ResourceEncodedResourceResolver.resolveResourceInternal(RequestContext request, String requestPath, List<? extends cn.taketoday.core.io.Resource> locations, ResourceResolvingChain chain) protected cn.taketoday.core.io.ResourcePathResourceResolver.resolveResourceInternal(RequestContext request, String requestPath, List<? extends cn.taketoday.core.io.Resource> locations, ResourceResolvingChain chain) protected cn.taketoday.core.io.ResourceVersionResourceResolver.resolveResourceInternal(RequestContext request, String requestPath, List<? extends cn.taketoday.core.io.Resource> locations, ResourceResolvingChain chain) protected cn.taketoday.core.io.ResourceWebJarsResourceResolver.resolveResourceInternal(RequestContext request, String requestPath, List<? extends cn.taketoday.core.io.Resource> locations, ResourceResolvingChain chain) protected StringResourceTransformerSupport.resolveUrlPath(String resourcePath, RequestContext request, cn.taketoday.core.io.Resource resource, ResourceTransformerChain transformerChain) A transformer can use this method when a resource being transformed contains links to other resources.protected voidResourceHttpRequestHandler.setHeaders(RequestContext response, cn.taketoday.core.io.Resource resource, MediaType mediaType) Set headers on the given servlet response.protected StringResourceTransformerSupport.toAbsolutePath(String path, RequestContext request) Transform the given relative request path to an absolute path, taking the path of the given request as a point of reference.cn.taketoday.core.io.ResourceCachingResourceTransformer.transform(RequestContext request, cn.taketoday.core.io.Resource resource, ResourceTransformerChain transformerChain) cn.taketoday.core.io.ResourceCssLinkResourceTransformer.transform(RequestContext request, cn.taketoday.core.io.Resource resource, ResourceTransformerChain transformerChain) cn.taketoday.core.io.ResourceDefaultResourceTransformerChain.transform(RequestContext request, cn.taketoday.core.io.Resource resource) cn.taketoday.core.io.ResourceResourceTransformer.transform(RequestContext request, cn.taketoday.core.io.Resource resource, ResourceTransformerChain transformerChain) Transform the given resource.cn.taketoday.core.io.ResourceResourceTransformerChain.transform(RequestContext request, cn.taketoday.core.io.Resource resource) Transform the given resource. -
cn.taketoday.web.servlet中RequestContext的使用
修饰符和类型方法说明static RequestContextServletUtils.getRequestContext(WebApplicationContext webApplicationContext, HttpServletRequest request, HttpServletResponse response) static RequestContextServletUtils.getRequestContext(ServletRequest request, ServletResponse response) 参数类型为RequestContext的cn.taketoday.web.servlet中的方法修饰符和类型方法说明voidCookieGenerator.addCookie(RequestContext response, String cookieValue) Add a cookie with the given value to the response, using the cookie descriptor settings of this generator.static HttpSessionServletUtils.getHttpSession(RequestContext context) Get HttpSessionstatic HttpSessionServletUtils.getHttpSession(RequestContext context, boolean create) Returns the currentHttpSessionassociated with this request or, if there is no current session andcreateis true, returns a new session.static PartServletUtils.getPart(RequestContext request, String requestPartName) static ServletContextServletUtils.getServletContext(RequestContext context) Gets the servlet context to which this ServletRequest was last dispatched.static HttpServletRequestServletUtils.getServletRequest(RequestContext context) Return an appropriate HttpServletRequest objectstatic HttpServletResponseServletUtils.getServletResponse(RequestContext context) Return an appropriate response objectServletHandlerAdapter.handle(RequestContext context, Object handler) voidCookieGenerator.removeCookie(RequestContext response) Remove the cookie that this generator describes from the response. -
cn.taketoday.web.servlet.filter中RequestContext的使用
修饰符和类型方法说明static voidShallowEtagHeaderFilter.disableContentCaching(RequestContext request) This method can be used to suppress the content caching response wrapper of the ShallowEtagHeaderFilter. -
cn.taketoday.web.servlet.view中RequestContext的使用
修饰符和类型方法说明protected voidInternalResourceView.exposeHelpers(HttpServletRequest servletRequest, RequestContext request) Expose helpers unique to each rendering operation.protected voidJstlView.exposeHelpers(HttpServletRequest servletRequest, RequestContext request) Exposes a JSTL LocalizationContext for Framework's locale and MessageSource.static voidJstlUtils.exposeLocalizationContext(RequestContext request, HttpServletRequest servletRequest) Exposes JSTL-specific request attributes specifying locale and resource bundle for JSTL's formatting and message tags, using Framework's locale and MessageSource.static voidJstlUtils.exposeLocalizationContext(RequestContext request, HttpServletRequest servletRequest, cn.taketoday.context.MessageSource messageSource) Exposes JSTL-specific request attributes specifying locale and resource bundle for JSTL's formatting and message tags, using Framework's locale and MessageSource.protected voidInternalResourceView.renderMergedOutputModel(Map<String, Object> model, RequestContext request) Render the internal resource given the specified model.参数类型为RequestContext的cn.taketoday.web.servlet.view中的构造器限定符构造器说明JstlLocalizationContext(cn.taketoday.context.MessageSource messageSource, HttpServletRequest request, RequestContext requestContext) -
cn.taketoday.web.util中RequestContext的使用
参数类型为RequestContext的cn.taketoday.web.util中的方法修饰符和类型方法说明static <T> TWebUtils.getNativeContext(RequestContext request, Class<T> requiredType) Return an appropriate request object of the specified type, if available, unwrapping the given request as far as necessary.static booleanWebUtils.isSameOrigin(RequestContext request) Check if the request is a same-origin one, based onOrigin,Host,Forwarded,X-Forwarded-Proto,X-Forwarded-HostandX-Forwarded-Portheaders.static booleanWebUtils.isValidOrigin(RequestContext request, Collection<String> allowedOrigins) Check the given request origin against a list of allowed origins. -
cn.taketoday.web.view中RequestContext的使用
修饰符和类型方法说明protected RequestContextAbstractView.getRequestContextToExpose(RequestContext original) Get the request handle to expose toAbstractView.renderMergedOutputModel(java.util.Map<java.lang.String, java.lang.Object>, cn.taketoday.web.RequestContext), i.e. to the view.参数类型为RequestContext的cn.taketoday.web.view中的方法修饰符和类型方法说明protected voidRedirectView.appendCurrentQueryParams(StringBuilder targetUrl, RequestContext request) Append the query string of the current request to the target redirect URL.protected voidAbstractTemplateView.applyContentType(RequestContext response) Apply this view's content type as specified in the "contentType" bean property to the given response.AbstractView.createMergedOutputModel(Map<String, ?> model, RequestContext context) Creates a combined output Map (nevernull) that includes dynamic values and static attributes.protected final StringRedirectView.createTargetUrl(Map<String, Object> model, RequestContext request) Create the target URL by checking if the redirect string is a URI template first, expanding it with the given model, and then optionally appending simple type model attributes as query String parameters.private StringAbstractRedirectModelManager.decodeAndNormalizePath(String path, RequestContext request) protected voidAbstractView.exposeModelAsRequestAttributes(Map<String, Object> model, RequestContext request) Expose the model objects in the given map as request attributes.private voidAbstractTemplateView.exposeSessionAttributes(Map<String, Object> model, RequestContext context) private ViewContentNegotiatingViewResolver.getBestView(List<View> candidateViews, List<MediaType> requestedMediaTypes, RequestContext context) private StringRedirectView.getContextPath(RequestContext request) RedirectView.getCurrentRequestUriVariables(RequestContext request) protected HttpStatusCodeRedirectView.getHttpStatus(RequestContext context, String targetUrl) Determines the status code to use for HTTP compatible requests.private LocaleViewReturnValueHandler.getLocale(RequestContext request) Retrieve the current locale from the given request, using the LocaleResolver bound to the request by the Ioc (if available), falling back to the request's accept-header Locale.private RedirectModelAbstractRedirectModelManager.getMatchingRedirectModel(List<RedirectModel> allMaps, RequestContext request) Return a RedirectModel contained in the given list that matches the request.ContentNegotiatingViewResolver.getMediaTypes(RequestContext context) Determines the list ofMediaTypefor the givenHttpServletRequest.AbstractRedirectModelManager.getOriginatingRequestParams(RequestContext request) private MediaType[]ContentNegotiatingViewResolver.getProducibleMediaTypes(RequestContext context) protected ObjectAbstractRedirectModelManager.getRedirectModelMutex(RequestContext request) Obtain a mutex for modifying the RedirectModel List as handled byAbstractRedirectModelManager.retrieveRedirectModel(cn.taketoday.web.RequestContext)andAbstractRedirectModelManager.updateRedirectModel(java.util.List<cn.taketoday.web.view.RedirectModel>, cn.taketoday.web.RequestContext),protected ObjectSessionRedirectModelManager.getRedirectModelMutex(RequestContext request) protected RequestContextAbstractView.getRequestContextToExpose(RequestContext original) Get the request handle to expose toAbstractView.renderMergedOutputModel(java.util.Map<java.lang.String, java.lang.Object>, cn.taketoday.web.RequestContext), i.e. to the view.private WebSessionSessionRedirectModelManager.getSession(RequestContext context, boolean create) DefaultRequestToViewNameTranslator.getViewName(RequestContext request) Translates the request URI of the incomingRequestContextinto the view name based on the configured parameters.voidViewReturnValueHandler.handleReturnValue(RequestContext context, Object handler, Object returnValue) protected booleanAbstractRedirectModelManager.isRedirectModelForRequest(RedirectModel model, RequestContext request) Whether the given RedirectModel matches the current request.protected voidAbstractView.prepareResponse(RequestContext context) Prepare the given response for rendering.voidAbstractView.render(Map<String, ?> model, RequestContext context) Prepares the view given the specified model, merging it with static attributes and a RequestContext attribute, if necessary.voidView.render(Map<String, ?> model, RequestContext context) Render the view given the specified model.protected final voidAbstractTemplateView.renderMergedOutputModel(Map<String, Object> model, RequestContext request) protected abstract voidAbstractView.renderMergedOutputModel(Map<String, Object> model, RequestContext request) Subclasses must implement this method to actually render the view.protected voidRedirectView.renderMergedOutputModel(Map<String, Object> model, RequestContext request) Convert model to request parameters and redirect to the given URL.protected abstract voidAbstractTemplateView.renderMergedTemplateModel(Map<String, Object> model, RequestContext context) Subclasses must implement this method to actually render the view.voidViewReturnValueHandler.renderView(RequestContext request, ModelAndView mv) ResolveModelAndViewreturn typevoidViewReturnValueHandler.renderView(RequestContext context, View view) rendering aViewvoidViewReturnValueHandler.renderView(RequestContext context, ViewRef viewRef) rendering a view fromviewNamevoidViewReturnValueHandler.renderView(RequestContext context, ViewRef viewRef, Map<String, Object> model) rendering a view fromviewNamevoidViewReturnValueHandler.renderView(RequestContext context, View view, Map<String, Object> model) rendering aViewvoidViewReturnValueHandler.renderView(RequestContext context, CharSequence viewName) rendering a view fromviewNamevoidViewReturnValueHandler.renderView(RequestContext context, String viewName) rendering a view fromviewNamevoidViewReturnValueHandler.renderView(RequestContext context, String viewName, Map<String, Object> model) rendering a view fromviewNameprivate ViewViewReturnValueHandler.resolveViewName(RequestContext context, String viewName, Locale locale) AbstractRedirectModelManager.retrieveAndUpdate(RequestContext context) RedirectModelManager.retrieveAndUpdate(RequestContext context) Find a RedirectModel saved by a previous request that matches to the current request, remove it from underlying storage, and also remove other expired RedirectModel instances.protected abstract List<RedirectModel>AbstractRedirectModelManager.retrieveRedirectModel(RequestContext request) Retrieve saved RedirectModel instances from the underlying storage.protected List<RedirectModel>SessionRedirectModelManager.retrieveRedirectModel(RequestContext request) voidAbstractRedirectModelManager.saveRedirectModel(RequestContext context, RedirectModel redirectModel) voidRedirectModelManager.saveRedirectModel(RequestContext context, RedirectModel redirectModel) Set aRedirectModelto current request contextprotected voidRedirectView.sendRedirect(RequestContext context, String targetUrl) Send a redirect back to the HTTP client.protected voidAbstractView.setResponseContentType(RequestContext context) Set the content type of the response to the configuredcontent typeunless theView.SELECTED_CONTENT_TYPErequest attribute is present and set to a concrete media type.protected abstract voidAbstractRedirectModelManager.updateRedirectModel(List<RedirectModel> redirectModels, RequestContext request) Update the RedirectModel instances in the underlying storage.protected voidSessionRedirectModelManager.updateRedirectModel(List<RedirectModel> redirectModels, RequestContext request) protected voidAbstractView.writeToResponse(RequestContext response, ByteArrayOutputStream baos) Write the given temporary OutputStream to the HTTP response. -
cn.taketoday.web.view.document中RequestContext的使用
修饰符和类型方法说明protected abstract voidAbstractXlsView.buildExcelDocument(Map<String, Object> model, org.apache.poi.ss.usermodel.Workbook workbook, RequestContext context) Application-provided subclasses must implement this method to populate the Excel workbook document, given the model.protected abstract voidAbstractPdfView.buildPdfDocument(Map<String, Object> model, com.lowagie.text.Document document, com.lowagie.text.pdf.PdfWriter writer, RequestContext context) Subclasses must implement this method to build an iText PDF document, given the model.protected voidAbstractPdfView.buildPdfMetadata(Map<String, Object> model, com.lowagie.text.Document document, RequestContext request) Populate the iText Document's meta fields (author, title, etc.).protected org.apache.poi.ss.usermodel.WorkbookAbstractXlsView.createWorkbook(Map<String, Object> model, RequestContext request) Template method for creating the POIWorkbookinstance.protected org.apache.poi.xssf.streaming.SXSSFWorkbookAbstractXlsxStreamingView.createWorkbook(Map<String, Object> model, RequestContext request) This implementation creates aSXSSFWorkbookfor streaming the XLSX format.protected org.apache.poi.ss.usermodel.WorkbookAbstractXlsxView.createWorkbook(Map<String, Object> model, RequestContext request) This implementation creates anXSSFWorkbookfor the XLSX format.protected abstract voidAbstractPdfStamperView.mergePdfDocument(Map<String, Object> model, com.lowagie.text.pdf.PdfStamper stamper, RequestContext context) Subclasses must implement this method to merge the PDF form with the given model data.protected voidAbstractPdfView.prepareWriter(Map<String, Object> model, com.lowagie.text.pdf.PdfWriter writer, RequestContext request) Prepare the given PdfWriter.protected final voidAbstractPdfStamperView.renderMergedOutputModel(Map<String, Object> model, RequestContext request) protected final voidAbstractPdfView.renderMergedOutputModel(Map<String, Object> model, RequestContext request) protected final voidAbstractXlsView.renderMergedOutputModel(Map<String, Object> model, RequestContext request) Renders the Excel view, given the specified model.protected voidAbstractXlsView.renderWorkbook(org.apache.poi.ss.usermodel.Workbook workbook, RequestContext response) The actual render step: taking the POIWorkbookand rendering it to the given response.protected voidAbstractXlsxStreamingView.renderWorkbook(org.apache.poi.ss.usermodel.Workbook workbook, RequestContext response) This implementation disposes of theSXSSFWorkbookwhen done with rendering. -
cn.taketoday.web.view.feed中RequestContext的使用
参数类型为RequestContext的cn.taketoday.web.view.feed中的方法修饰符和类型方法说明protected abstract List<com.rometools.rome.feed.atom.Entry>AbstractAtomFeedView.buildFeedEntries(Map<String, Object> model, RequestContext context) Subclasses must implement this method to build feed entries, given the model.protected final voidAbstractAtomFeedView.buildFeedEntries(Map<String, Object> model, com.rometools.rome.feed.atom.Feed feed, RequestContext context) InvokesAbstractAtomFeedView.buildFeedEntries(Map, RequestContext)to get a list of feed entries.protected abstract voidAbstractFeedView.buildFeedEntries(Map<String, Object> model, T feed, RequestContext context) Subclasses must implement this method to build feed entries, given the model.protected final voidAbstractRssFeedView.buildFeedEntries(Map<String, Object> model, com.rometools.rome.feed.rss.Channel channel, RequestContext context) InvokesAbstractRssFeedView.buildFeedItems(Map, RequestContext)to get a list of feed items.protected abstract List<com.rometools.rome.feed.rss.Item>AbstractRssFeedView.buildFeedItems(Map<String, Object> model, RequestContext context) Subclasses must implement this method to build feed items, given the model.protected voidAbstractFeedView.buildFeedMetadata(Map<String, Object> model, T feed, RequestContext request) Populate the feed metadata (title, link, description, etc.).protected final voidAbstractFeedView.renderMergedOutputModel(Map<String, Object> model, RequestContext request) -
cn.taketoday.web.view.freemarker中RequestContext的使用
修饰符和类型方法说明protected freemarker.template.SimpleHashFreeMarkerView.buildTemplateModel(Map<String, Object> model, RequestContext request) Build a FreeMarker template model for the given model Map.protected voidFreeMarkerView.doRender(Map<String, Object> model, RequestContext context) Render the FreeMarker view to the given response, using the given model map which contains the complete template model to use.protected voidFreeMarkerView.exposeHelpers(Map<String, Object> model, RequestContext request) Expose helpers unique to each rendering operation.protected voidFreeMarkerView.processTemplate(freemarker.template.Template template, freemarker.template.SimpleHash model, RequestContext response) Process the FreeMarker template to the servlet response.protected voidFreeMarkerView.renderMergedTemplateModel(Map<String, Object> model, RequestContext context) Process the model map by merging it with the FreeMarker template. -
cn.taketoday.web.view.groovy中RequestContext的使用
修饰符和类型方法说明protected voidGroovyMarkupView.renderMergedTemplateModel(Map<String, Object> model, RequestContext context) -
cn.taketoday.web.view.json中RequestContext的使用
参数类型为RequestContext的cn.taketoday.web.view.json中的方法修饰符和类型方法说明protected ObjectAbstractJackson2View.filterAndWrapModel(Map<String, Object> model, RequestContext request) Filter and optionally wrap the model inMappingJacksonValuecontainer.protected voidAbstractJackson2View.prepareResponse(RequestContext context) protected voidAbstractJackson2View.renderMergedOutputModel(Map<String, Object> model, RequestContext request) -
cn.taketoday.web.view.script中RequestContext的使用
修饰符和类型方法说明protected voidScriptTemplateView.prepareResponse(RequestContext context) protected voidScriptTemplateView.renderMergedOutputModel(Map<String, Object> model, RequestContext request) -
cn.taketoday.web.view.xml中RequestContext的使用
参数类型为RequestContext的cn.taketoday.web.view.xml中的方法修饰符和类型方法说明protected voidMarshallingView.renderMergedOutputModel(Map<String, Object> model, RequestContext request) -
cn.taketoday.web.view.xslt中RequestContext的使用
参数类型为RequestContext的cn.taketoday.web.view.xslt中的方法修饰符和类型方法说明protected voidXsltView.configureResponse(Map<String, Object> model, RequestContext response, Transformer transformer) Configure the suppliedRequestContext.protected voidXsltView.configureTransformer(Map<String, Object> model, RequestContext response, Transformer transformer) Configure the suppliedTransformerinstance.protected ResultXsltView.createResult(RequestContext response) Create the XSLTResultused to render the result of the transformation.protected voidXsltView.renderMergedOutputModel(Map<String, Object> model, RequestContext request)