Class RequestMappingMetadataWebEndpointMappingFactory
java.lang.Object
io.microsphere.spring.web.metadata.AbstractWebEndpointMappingFactory<HandlerMetadata<H,M>>
io.microsphere.spring.webmvc.metadata.HandlerMappingWebEndpointMappingFactory<org.springframework.web.method.HandlerMethod,org.springframework.web.servlet.mvc.method.RequestMappingInfo>
io.microsphere.spring.webmvc.metadata.RequestMappingMetadataWebEndpointMappingFactory
- All Implemented Interfaces:
WebEndpointMappingFactory<HandlerMetadata<org.springframework.web.method.HandlerMethod,
org.springframework.web.servlet.mvc.method.RequestMappingInfo>>
public class RequestMappingMetadataWebEndpointMappingFactory
extends HandlerMappingWebEndpointMappingFactory<org.springframework.web.method.HandlerMethod,org.springframework.web.servlet.mvc.method.RequestMappingInfo>
WebEndpointMappingFactory
based on Spring WebMVC RequestMappingInfo
- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
-
RequestMapping
RequestMappingInfo
-
Field Summary
Fields inherited from class io.microsphere.spring.web.metadata.AbstractWebEndpointMappingFactory
logger
-
Constructor Summary
ConstructorsConstructorDescriptionRequestMappingMetadataWebEndpointMappingFactory
(org.springframework.web.servlet.HandlerMapping handlerMapping) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
contribute
(org.springframework.web.method.HandlerMethod handlerMethod, org.springframework.web.servlet.mvc.method.RequestMappingInfo requestMappingInfo, org.springframework.web.servlet.HandlerMapping handlerMapping, WebEndpointMapping.Builder<org.springframework.web.method.HandlerMethod> builder) Contribute theWebEndpointMapping.Builder
to create an instance ofWebEndpointMapping
protected org.springframework.web.method.HandlerMethod
getHandler
(HandlerMetadata<org.springframework.web.method.HandlerMethod, org.springframework.web.servlet.mvc.method.RequestMappingInfo> handlerMetadata) protected Collection<String>
getPatterns
(org.springframework.web.method.HandlerMethod handler, org.springframework.web.servlet.mvc.method.RequestMappingInfo requestMappingInfo) Methods inherited from class io.microsphere.spring.webmvc.metadata.HandlerMappingWebEndpointMappingFactory
doCreate, getMetadata
Methods inherited from class io.microsphere.spring.web.metadata.AbstractWebEndpointMappingFactory
create
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.microsphere.spring.web.metadata.WebEndpointMappingFactory
getSourceType, supports
-
Constructor Details
-
RequestMappingMetadataWebEndpointMappingFactory
public RequestMappingMetadataWebEndpointMappingFactory(org.springframework.web.servlet.HandlerMapping handlerMapping)
-
-
Method Details
-
getHandler
protected org.springframework.web.method.HandlerMethod getHandler(HandlerMetadata<org.springframework.web.method.HandlerMethod, org.springframework.web.servlet.mvc.method.RequestMappingInfo> handlerMetadata) - Overrides:
getHandler
in classHandlerMappingWebEndpointMappingFactory<org.springframework.web.method.HandlerMethod,
org.springframework.web.servlet.mvc.method.RequestMappingInfo>
-
getPatterns
protected Collection<String> getPatterns(org.springframework.web.method.HandlerMethod handler, org.springframework.web.servlet.mvc.method.RequestMappingInfo requestMappingInfo) Description copied from class:HandlerMappingWebEndpointMappingFactory
- Specified by:
getPatterns
in classHandlerMappingWebEndpointMappingFactory<org.springframework.web.method.HandlerMethod,
org.springframework.web.servlet.mvc.method.RequestMappingInfo> - Parameters:
handler
-Handler
requestMappingInfo
-Metadata
- Returns:
- non-null
-
contribute
protected void contribute(org.springframework.web.method.HandlerMethod handlerMethod, org.springframework.web.servlet.mvc.method.RequestMappingInfo requestMappingInfo, org.springframework.web.servlet.HandlerMapping handlerMapping, WebEndpointMapping.Builder<org.springframework.web.method.HandlerMethod> builder) Description copied from class:HandlerMappingWebEndpointMappingFactory
Contribute theWebEndpointMapping.Builder
to create an instance ofWebEndpointMapping
- Overrides:
contribute
in classHandlerMappingWebEndpointMappingFactory<org.springframework.web.method.HandlerMethod,
org.springframework.web.servlet.mvc.method.RequestMappingInfo> - Parameters:
handlerMethod
-Handler
requestMappingInfo
-Metadata
handlerMapping
-HandlerMapping
builder
-WebEndpointMapping.Builder
-