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
servletContextFields inherited from class io.microsphere.spring.web.metadata.AbstractWebEndpointMappingFactory
logger -
Constructor Summary
ConstructorsConstructorDescriptionServletRegistrationWebEndpointMappingFactory(jakarta.servlet.ServletContext servletContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<String>getMethods(jakarta.servlet.ServletRegistration registration) Gets the HTTP methods of the given registrationprotected Collection<String>getMethods(Class<?> servletClass) protected Collection<String>getMethodsFromHttpServlet(Class<?> servletClass) protected Collection<String>getPatterns(jakarta.servlet.ServletRegistration registration) Get the patterns ofRegistrationprotected jakarta.servlet.ServletRegistrationgetRegistration(String name, jakarta.servlet.ServletContext servletContext) Methods inherited from class io.microsphere.spring.web.metadata.RegistrationWebEndpointMappingFactory
contribute, doCreate, getKind, supportsMethods inherited from class io.microsphere.spring.web.metadata.AbstractWebEndpointMappingFactory
createMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.microsphere.spring.web.metadata.WebEndpointMappingFactory
getSourceType
-
Constructor Details
-
ServletRegistrationWebEndpointMappingFactory
public ServletRegistrationWebEndpointMappingFactory(jakarta.servlet.ServletContext servletContext)
-
-
Method Details
-
getMethods
Description copied from class:RegistrationWebEndpointMappingFactoryGets the HTTP methods of the given registration- Specified by:
getMethodsin classRegistrationWebEndpointMappingFactory<jakarta.servlet.ServletRegistration>- Parameters:
registration- the registration- Returns:
- the HTTP methods of the given registration
-
getMethods
-
getMethodsFromHttpServlet
-
getRegistration
protected jakarta.servlet.ServletRegistration getRegistration(String name, jakarta.servlet.ServletContext servletContext) - Specified by:
getRegistrationin classRegistrationWebEndpointMappingFactory<jakarta.servlet.ServletRegistration>- Parameters:
name- the name ofRegistrationservletContext-ServletContext- Returns:
- The
Registration
-
getPatterns
Description copied from class:RegistrationWebEndpointMappingFactoryGet the patterns ofRegistration- Specified by:
getPatternsin classRegistrationWebEndpointMappingFactory<jakarta.servlet.ServletRegistration>- Parameters:
registration-Registration- Returns:
- non-null
-