Interface WebEndpointMappingFactory<E>
-
- Type Parameters:
E- the type of endpoint
- All Known Implementing Classes:
AbstractWebEndpointMappingFactory,FilterRegistrationWebEndpointMappingFactory,Jackson2WebEndpointMappingFactory,RegistrationWebEndpointMappingFactory,ServletRegistrationWebEndpointMappingFactory,SmartWebEndpointMappingFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface WebEndpointMappingFactory<E>The factory interface forWebEndpointMapping- Since:
- 1.0.0
- Author:
- Mercy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Optional<WebEndpointMapping<E>>create(E endpoint)Create the instance ofWebEndpointMappingdefault java.lang.Class<E>getSourceType()Get the type of sourcedefault booleansupports(E endpoint)Current factory supports the specified endpoint or not
-
-
-
Method Detail
-
supports
default boolean supports(E endpoint)
Current factory supports the specified endpoint or not- Parameters:
endpoint- could be one of these :ServletRegistrationFilterRegistrationorg.springframework.web.servlet.mvc.method.RequestMappingInfoorg.springframework.web.reactive.result.method.RequestMappingInfo
- Returns:
trueif supports,falseotherwise
-
create
@Nonnull java.util.Optional<WebEndpointMapping<E>> create(E endpoint)
Create the instance ofWebEndpointMapping- Parameters:
endpoint- could be one of these :ServletRegistrationFilterRegistrationorg.springframework.web.servlet.mvc.method.RequestMappingInfoorg.springframework.web.reactive.result.method.RequestMappingInfo
- Returns:
WebEndpointMappingif present
-
getSourceType
@Nonnull default java.lang.Class<E> getSourceType()
Get the type of source- Returns:
- the type of source
-
-