类 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 ofAbstractWebEndpointMappingFactory
for ServletRegistration
- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
- 另请参阅:
AbstractWebEndpointMappingFactory
-
-
字段概要
字段 修饰符和类型 字段 说明 protected javax.servlet.ServletContext
servletContext
-
构造器概要
构造器 构造器 说明 RegistrationWebEndpointMappingFactory(javax.servlet.ServletContext servletContext)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected void
contribute(java.lang.String endpoint, javax.servlet.ServletContext servletContext, WebEndpointMapping.Builder<java.lang.String> builder)
Contribute theWebEndpointMapping.Builder
to create an instance ofWebEndpointMapping
protected WebEndpointMapping<java.lang.String>
doCreate(java.lang.String endpoint)
protected abstract java.util.Collection<java.lang.String>
getPatterns(R registration)
Get the patterns ofRegistration
protected abstract R
getRegistration(java.lang.String name, javax.servlet.ServletContext servletContext)
boolean
supports(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)
从接口复制的说明:WebEndpointMappingFactory
Current factory supports the specified endpoint or not- 参数:
endpoint
- could be one of these :ServletRegistration
FilterRegistration
org.springframework.web.servlet.mvc.method.RequestMappingInfo
org.springframework.web.reactive.result.method.RequestMappingInfo
- 返回:
true
if supports,false
otherwise
-
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 ofRegistration
servletContext
-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.Throwable
Contribute theWebEndpointMapping.Builder
to create an instance ofWebEndpointMapping
- 参数:
endpoint
- the name ofRegistration
servletContext
-ServletContext
builder
-WebEndpointMapping.Builder
- 抛出:
java.lang.Throwable
- an error if contribution failed
-
-