接口 WebEndpointMappingFactory<E>
-
- 类型参数:
E
- the type of endpoint
- 所有已知实现类:
AbstractWebEndpointMappingFactory
,FilterRegistrationWebEndpointMappingFactory
,Jackson2WebEndpointMappingFactory
,RegistrationWebEndpointMappingFactory
,ServletRegistrationWebEndpointMappingFactory
,SmartWebEndpointMappingFactory
public interface WebEndpointMappingFactory<E>
The factory interface forWebEndpointMapping
- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 java.util.Optional<WebEndpointMapping<E>>
create(E endpoint)
Create the instance ofWebEndpointMapping
default java.lang.Class<E>
getSourceType()
Get the type of sourcedefault boolean
supports(E endpoint)
Current factory supports the specified endpoint or not
-
-
-
方法详细资料
-
supports
default boolean supports(E endpoint)
Current factory supports the specified endpoint or not- 参数:
endpoint
- could be one of these :ServletRegistration
FilterRegistration
org.springframework.web.servlet.mvc.method.RequestMappingInfo
org.springframework.web.reactive.result.method.RequestMappingInfo
- 返回:
true
if supports,false
otherwise
-
create
java.util.Optional<WebEndpointMapping<E>> create(E endpoint)
Create the instance ofWebEndpointMapping
- 参数:
endpoint
- could be one of these :ServletRegistration
FilterRegistration
org.springframework.web.servlet.mvc.method.RequestMappingInfo
org.springframework.web.reactive.result.method.RequestMappingInfo
- 返回:
WebEndpointMapping
if present
-
getSourceType
@NonNull default java.lang.Class<E> getSourceType()
Get the type of source- 返回:
- the type of source
-
-