Class ServletRegistrationWebEndpointMappingFactory
- java.lang.Object
-
- io.microsphere.spring.web.metadata.AbstractWebEndpointMappingFactory<java.lang.String>
-
- io.microsphere.spring.web.metadata.RegistrationWebEndpointMappingFactory<javax.servlet.ServletRegistration>
-
- io.microsphere.spring.web.metadata.ServletRegistrationWebEndpointMappingFactory
-
- All Implemented Interfaces:
WebEndpointMappingFactory<java.lang.String>
public class ServletRegistrationWebEndpointMappingFactory extends RegistrationWebEndpointMappingFactory<javax.servlet.ServletRegistration>
WebEndpointMappingFactory
fromServletRegistration
- 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
Constructors Constructor Description ServletRegistrationWebEndpointMappingFactory(javax.servlet.ServletContext servletContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Collection<java.lang.String>
getPatterns(javax.servlet.ServletRegistration registration)
Get the patterns ofRegistration
protected javax.servlet.ServletRegistration
getRegistration(java.lang.String name, javax.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
-
-
-
-
Method Detail
-
getRegistration
protected javax.servlet.ServletRegistration getRegistration(java.lang.String name, javax.servlet.ServletContext servletContext)
- Specified by:
getRegistration
in classRegistrationWebEndpointMappingFactory<javax.servlet.ServletRegistration>
- Parameters:
name
- the name ofRegistration
servletContext
-ServletContext
- Returns:
- The
Registration
-
getPatterns
protected java.util.Collection<java.lang.String> getPatterns(javax.servlet.ServletRegistration registration)
Description copied from class:RegistrationWebEndpointMappingFactory
Get the patterns ofRegistration
- Specified by:
getPatterns
in classRegistrationWebEndpointMappingFactory<javax.servlet.ServletRegistration>
- Parameters:
registration
-Registration
- Returns:
- non-null
-
-