Class ServletRegistrationWebEndpointMappingFactory
java.lang.Object
io.microsphere.spring.web.metadata.AbstractWebEndpointMappingFactory<String>
io.microsphere.spring.web.metadata.RegistrationWebEndpointMappingFactory<jakarta.servlet.ServletRegistration>
io.microsphere.spring.web.metadata.ServletRegistrationWebEndpointMappingFactory
- All Implemented Interfaces:
WebEndpointMappingFactory<String>
public class ServletRegistrationWebEndpointMappingFactory
extends RegistrationWebEndpointMappingFactory<jakarta.servlet.ServletRegistration>
WebEndpointMappingFactory
from ServletRegistration
- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
-
ServletContext.getServletRegistrations()
ServletRegistration
-
Field Summary
Fields inherited from class io.microsphere.spring.web.metadata.RegistrationWebEndpointMappingFactory
servletContext
Fields inherited from class io.microsphere.spring.web.metadata.AbstractWebEndpointMappingFactory
logger
-
Constructor Summary
ConstructorsConstructorDescriptionServletRegistrationWebEndpointMappingFactory
(jakarta.servlet.ServletContext servletContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<String>
getPatterns
(jakarta.servlet.ServletRegistration registration) Get the patterns ofRegistration
protected jakarta.servlet.ServletRegistration
getRegistration
(String name, jakarta.servlet.ServletContext servletContext) Methods inherited from class io.microsphere.spring.web.metadata.RegistrationWebEndpointMappingFactory
contribute, doCreate, supports
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
-
Constructor Details
-
ServletRegistrationWebEndpointMappingFactory
public ServletRegistrationWebEndpointMappingFactory(jakarta.servlet.ServletContext servletContext)
-
-
Method Details
-
getRegistration
protected jakarta.servlet.ServletRegistration getRegistration(String name, jakarta.servlet.ServletContext servletContext) - Specified by:
getRegistration
in classRegistrationWebEndpointMappingFactory<jakarta.servlet.ServletRegistration>
- Parameters:
name
- the name ofRegistration
servletContext
-ServletContext
- Returns:
- The
Registration
-
getPatterns
Description copied from class:RegistrationWebEndpointMappingFactory
Get the patterns ofRegistration
- Specified by:
getPatterns
in classRegistrationWebEndpointMappingFactory<jakarta.servlet.ServletRegistration>
- Parameters:
registration
-Registration
- Returns:
- non-null
-