RequestMappingInfoHandlerMapping that creates
RequestMappingInfo instances from type-level and method-level
@RequestMapping and @HttpExchange
annotations.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private RequestMappingInfo. | |
| private RequestedContentTypeResolver | |
| private StringValueResolver | |
| private static final RequestMethod[] | |
| private static final String[] | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterPropertiesSet()
Overrides org. Implements org. Detects handler methods at initialization. |
| private RequestMappingInfo | |
| protected RequestMappingInfo | createRequestMappingInfo(RequestMapping requestMapping, RequestCondition<?> customCondition)
Create a |
| protected RequestMappingInfo | createRequestMappingInfo(HttpExchange httpExchange, RequestCondition<?> customCondition)
Create a |
| private static List | |
| public RequestedContentTypeResolver | |
| protected RequestCondition | Returns: the condition, ornullthe handler method for which to create the condition method)Protected method to provide a custom method-level request condition. |
| protected RequestCondition | Returns: the condition, ornullthe handler type for which to create the condition handlerType)Protected method to provide a custom type-level request condition. |
| protected RequestMappingInfo | Returns: the createdRequestMappingInfo, or null if the method
does not have a @RequestMapping or @HttpExchange annotationthe method to provide a mapping for method, Class<?> the handler type, possibly a subtype of the method's
declaring class handlerType)Implements abstract org. Uses type-level and method-level |
| public Map | |
| protected CorsConfiguration | initCorsConfiguration(Object handler, Method method, RequestMappingInfo mappingInfo)
Overrides org. Extract and return the CORS configuration for the mapping. |
| protected boolean | isHandler(Class<?>
the type of the bean being checked beanType)Implements abstract org. Whether the given type is a handler with handler methods. |
| protected void | registerHandlerMethod(Object
the bean name of the handler or the handler instance handler, Method the method to register method, RequestMappingInfo the mapping conditions associated with the handler method mapping)Overrides org. Register a handler method and its unique mapping. |
| public void | registerMapping(RequestMappingInfo
the mapping for the handler method mapping, Object the handler handler, Method the method method)Overrides org. Register the given mapping. |
| private String | |
| protected String[] | Returns: a new array with updated patternsResolve placeholder values in the given array of patterns. |
| public void | setContentTypeResolver(RequestedContentTypeResolver contentTypeResolver)
Set the |
| public void | setEmbeddedValueResolver(StringValueResolver resolver)
Implements org. Set the StringValueResolver to use for resolving embedded definition values. |
| public void | setPathPrefixes(Map<String, Predicate<Class<?>>>
a map with path prefixes as key prefixes)Configure path prefixes to apply to controller methods. |
| private static RequestMethod[] | |
| private static String[] | |
| private void | |
| private void |
| config | back to summary |
|---|---|
| private RequestMappingInfo. | |
| contentTypeResolver | back to summary |
|---|---|
| private RequestedContentTypeResolver contentTypeResolver | |
| embeddedValueResolver | back to summary |
|---|---|
| private StringValueResolver embeddedValueResolver
| |
| EMPTY_REQUEST_METHOD_ARRAY | back to summary |
|---|---|
| private static final RequestMethod[] EMPTY_REQUEST_METHOD_ARRAY | |
| EMPTY_STRING_ARRAY | back to summary |
|---|---|
| private static final String[] EMPTY_STRING_ARRAY | |
| pathPrefixes | back to summary |
|---|---|
| private final Map<String, Predicate<Class<?>>> pathPrefixes | |
| RequestMappingHandlerMapping | back to summary |
|---|---|
| public RequestMappingHandlerMapping() | |
| afterPropertiesSet | back to summary |
|---|---|
| public void afterPropertiesSet() Overrides org. Implements org. Doc from org. Detects handler methods at initialization.
| |
| createRequestMappingInfo | back to summary |
|---|---|
private RequestMappingInfo createRequestMappingInfo(AnnotatedElement element)
| |
| createRequestMappingInfo | back to summary |
|---|---|
| protected RequestMappingInfo createRequestMappingInfo(RequestMapping requestMapping, RequestCondition<?> customCondition) Create a | |
| createRequestMappingInfo | back to summary |
|---|---|
| protected RequestMappingInfo createRequestMappingInfo(HttpExchange httpExchange, RequestCondition<?> customCondition) Create a
| |
| getAnnotationDescriptors | back to summary |
|---|---|
| private static List | |
| getContentTypeResolver | back to summary |
|---|---|
| public RequestedContentTypeResolver getContentTypeResolver() Return the configured | |
| getCustomMethodCondition | back to summary |
|---|---|
| protected RequestCondition Protected method to provide a custom method-level request condition. The custom Consider extending
| |
| getCustomTypeCondition | back to summary |
|---|---|
| protected RequestCondition Protected method to provide a custom type-level request condition. The custom Consider extending
| |
| getMappingForMethod | back to summary |
|---|---|
| protected RequestMappingInfo getMappingForMethod(Method method, Class<?> handlerType) Implements abstract org. Uses type-level and method-level
| |
| getPathPrefixes | back to summary |
|---|---|
| public Map The configured path prefixes as a read-only, possibly empty map.
| |
| initCorsConfiguration | back to summary |
|---|---|
| protected CorsConfiguration initCorsConfiguration(Object handler, Method method, RequestMappingInfo mappingInfo) Overrides org. Doc from org. Extract and return the CORS configuration for the mapping.
| |
| isHandler | back to summary |
|---|---|
| protected boolean isHandler(Class<?> beanType) Implements abstract org. Doc from org. Whether the given type is a handler with handler methods.
Expects a handler to have a type-level @ | |
| registerHandlerMethod | back to summary |
|---|---|
| protected void registerHandlerMethod(Object handler, Method method, RequestMappingInfo mapping) Overrides org. Doc from org. Register a handler method and its unique mapping. Invoked at startup for each detected handler method.
| |
| registerMapping | back to summary |
|---|---|
| public void registerMapping(RequestMappingInfo mapping, Object handler, Method method) Overrides org. Doc from org. Register the given mapping. This method may be invoked at runtime after initialization has completed.
| |
| resolveCorsAnnotationValue | back to summary |
|---|---|
| private String resolveCorsAnnotationValue(String value) | |
| resolveEmbeddedValuesInPatterns | back to summary |
|---|---|
| protected String[] resolveEmbeddedValuesInPatterns(String[] patterns) Resolve placeholder values in the given array of patterns.
| |
| setContentTypeResolver | back to summary |
|---|---|
| public void setContentTypeResolver(RequestedContentTypeResolver contentTypeResolver) Set the | |
| setEmbeddedValueResolver | back to summary |
|---|---|
| public void setEmbeddedValueResolver(StringValueResolver resolver) Implements org. Doc from org. Set the StringValueResolver to use for resolving embedded definition values.
| |
| setPathPrefixes | back to summary |
|---|---|
| public void setPathPrefixes(Map<String, Predicate<Class<?>>> prefixes) Configure path prefixes to apply to controller methods. Prefixes are used to enrich the mappings of every Consider using
| |
| toMethodArray | back to summary |
|---|---|
| private static RequestMethod[] toMethodArray(String method) | |
| toStringArray | back to summary |
|---|---|
| private static String[] toStringArray(String value) | |
| updateConsumesCondition | back to summary |
|---|---|
| private void updateConsumesCondition(RequestMappingInfo info, Method method) | |
| updateCorsConfig | back to summary |
|---|---|
| private void updateCorsConfig(CorsConfiguration config, CrossOrigin annotation) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Annotation | |
| private final MergedAnnotation |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public String |
| annotation | back to summary |
|---|---|
| private final Annotation annotation | |
| root | back to summary |
|---|---|
| private final MergedAnnotation<?> root | |
| AnnotationDescriptor | back to summary |
|---|---|
| pack-priv AnnotationDescriptor(MergedAnnotation<Annotation> mergedAnnotation) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |