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>
WebEndpointMappingFactoryfromServletRegistration- 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>getMethods(java.lang.Class<?> servletClass)protected java.util.Collection<java.lang.String>getMethods(javax.servlet.ServletRegistration registration)Gets the HTTP methods of the given registrationprotected java.util.Collection<java.lang.String>getMethodsFromHttpServlet(java.lang.Class<?> servletClass)protected java.util.Collection<java.lang.String>getPatterns(javax.servlet.ServletRegistration registration)Get the patterns ofRegistrationprotected javax.servlet.ServletRegistrationgetRegistration(java.lang.String name, javax.servlet.ServletContext servletContext)-
Methods inherited from class io.microsphere.spring.web.metadata.RegistrationWebEndpointMappingFactory
contribute, doCreate, getKind, 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
-
getMethods
protected java.util.Collection<java.lang.String> getMethods(javax.servlet.ServletRegistration registration)
Description copied from class:RegistrationWebEndpointMappingFactoryGets the HTTP methods of the given registration- Specified by:
getMethodsin classRegistrationWebEndpointMappingFactory<javax.servlet.ServletRegistration>- Parameters:
registration- the registration- Returns:
- the HTTP methods of the given registration
-
getMethods
protected java.util.Collection<java.lang.String> getMethods(java.lang.Class<?> servletClass)
-
getMethodsFromHttpServlet
protected java.util.Collection<java.lang.String> getMethodsFromHttpServlet(java.lang.Class<?> servletClass)
-
getRegistration
protected javax.servlet.ServletRegistration getRegistration(java.lang.String name, javax.servlet.ServletContext servletContext)- Specified by:
getRegistrationin classRegistrationWebEndpointMappingFactory<javax.servlet.ServletRegistration>- Parameters:
name- the name ofRegistrationservletContext-ServletContext- Returns:
- The
Registration
-
getPatterns
protected java.util.Collection<java.lang.String> getPatterns(javax.servlet.ServletRegistration registration)
Description copied from class:RegistrationWebEndpointMappingFactoryGet the patterns ofRegistration- Specified by:
getPatternsin classRegistrationWebEndpointMappingFactory<javax.servlet.ServletRegistration>- Parameters:
registration-Registration- Returns:
- non-null
-
-