类 RegistrationWebEndpointMappingFactory<R extends javax.servlet.Registration>
- java.lang.Object
-
- io.microsphere.spring.web.metadata.AbstractWebEndpointMappingFactory<java.lang.String>
-
- io.microsphere.spring.web.metadata.RegistrationWebEndpointMappingFactory<R>
-
- 类型参数:
R- The type ofRegistrationWebEndpointMappingFactory
- 所有已实现的接口:
WebEndpointMappingFactory<java.lang.String>
public abstract class RegistrationWebEndpointMappingFactory<R extends javax.servlet.Registration> extends AbstractWebEndpointMappingFactory<java.lang.String>
The abstract class ofAbstractWebEndpointMappingFactoryfor ServletRegistration- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
- 另请参阅:
AbstractWebEndpointMappingFactory
-
-
字段概要
字段 修饰符和类型 字段 说明 protected javax.servlet.ServletContextservletContext
-
构造器概要
构造器 构造器 说明 RegistrationWebEndpointMappingFactory(javax.servlet.ServletContext servletContext)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected voidcontribute(java.lang.String endpoint, javax.servlet.ServletContext servletContext, WebEndpointMapping.Builder<java.lang.String> builder)Contribute theWebEndpointMapping.Builderto create an instance ofWebEndpointMappingprotected WebEndpointMapping<java.lang.String>doCreate(java.lang.String endpoint)protected abstract java.util.Collection<java.lang.String>getPatterns(R registration)Get the patterns ofRegistrationprotected abstract RgetRegistration(java.lang.String name, javax.servlet.ServletContext servletContext)booleansupports(java.lang.String endpoint)Current factory supports the specified endpoint or not-
从类继承的方法 io.microsphere.spring.web.metadata.AbstractWebEndpointMappingFactory
create
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 io.microsphere.spring.web.metadata.WebEndpointMappingFactory
getSourceType
-
-
-
-
方法详细资料
-
supports
public final boolean supports(java.lang.String endpoint)
从接口复制的说明:WebEndpointMappingFactoryCurrent factory supports the specified endpoint or not- 参数:
endpoint- could be one of these :ServletRegistrationFilterRegistrationorg.springframework.web.servlet.mvc.method.RequestMappingInfoorg.springframework.web.reactive.result.method.RequestMappingInfo
- 返回:
trueif supports,falseotherwise
-
doCreate
protected final WebEndpointMapping<java.lang.String> doCreate(java.lang.String endpoint) throws java.lang.Throwable
- 指定者:
doCreate在类中AbstractWebEndpointMappingFactory<java.lang.String>- 抛出:
java.lang.Throwable
-
getRegistration
@NonNull protected abstract R getRegistration(java.lang.String name, javax.servlet.ServletContext servletContext)
- 参数:
name- the name ofRegistrationservletContext-ServletContext- 返回:
- The
Registration
-
getPatterns
@NonNull protected abstract java.util.Collection<java.lang.String> getPatterns(R registration)
Get the patterns ofRegistration- 参数:
registration-Registration- 返回:
- non-null
-
contribute
protected void contribute(java.lang.String endpoint, javax.servlet.ServletContext servletContext, WebEndpointMapping.Builder<java.lang.String> builder) throws java.lang.ThrowableContribute theWebEndpointMapping.Builderto create an instance ofWebEndpointMapping- 参数:
endpoint- the name ofRegistrationservletContext-ServletContextbuilder-WebEndpointMapping.Builder- 抛出:
java.lang.Throwable- an error if contribution failed
-
-