接口的使用
org.springframework.beans.factory.DisposableBean
使用DisposableBean的程序包 程序包 说明 org.springframework.aop.framework.autoproxy.target org.springframework.aop.target org.springframework.beans.factory.config SPI interfaces and configuration-related convenience classes for bean factories.org.springframework.beans.factory.serviceloader Support package for the Java 6 ServiceLoader facility.org.springframework.beans.factory.support Classes supporting theorg.springframework.beans.factory
package.org.springframework.beans.factory.wiring Mechanism to determine bean wiring metadata from a bean instance.org.springframework.cache.ehcache Support classes for the open source cache EhCache 2.x, allowing to set up an EhCache CacheManager and Caches as beans in a Spring context.org.springframework.cache.jcache Implementation package for JSR-107 (javax.cache aka "JCache") based caches.org.springframework.context.weaving Load-time weaving support for a Spring application context, building on Spring'sLoadTimeWeaver
abstraction.org.springframework.ejb.access This package contains classes that allow easy access to EJBs.org.springframework.http.client Contains an abstraction over client-side HTTP.org.springframework.http.client.reactive Abstractions for reactive HTTP client support includingClientHttpRequest
andClientHttpResponse
as well as aClientHttpConnector
.org.springframework.jca.cci.connection Provides a utility class for easy ConnectionFactory access, a PlatformTransactionManager for local CCI transactions, and various simple ConnectionFactory proxies/adapters.org.springframework.jca.endpoint This package provides a facility for generic JCA message endpoint management.org.springframework.jca.support Provides generic support classes for JCA usage within Spring, mainly for local setup of a JCA ResourceAdapter and/or ConnectionFactory.org.springframework.jdbc.config Defines the Spring JDBC configuration namespace.org.springframework.jdbc.datasource Provides a utility class for easy DataSource access, a PlatformTransactionManager for a single DataSource, and various simple DataSource implementations.org.springframework.jdbc.datasource.embedded Provides extensible support for creating embedded database instances.org.springframework.jdbc.datasource.init Provides extensible support for initializing databases through scripts.org.springframework.jms.config Support package for declarative messaging configuration, with Java configuration and XML schema support.org.springframework.jms.connection Provides a PlatformTransactionManager implementation for a single JMS ConnectionFactory, and a SingleConnectionFactory adapter.org.springframework.jms.listener This package contains the base message listener container facility.org.springframework.jms.listener.endpoint This package provides JCA-based endpoint management for JMS message listeners.org.springframework.jmx.access Provides support for accessing remote MBean resources.org.springframework.jmx.export This package provides declarative creation and registration of Spring-managed beans as JMX MBeans.org.springframework.jmx.export.annotation Java 5 annotations for MBean exposure.org.springframework.jmx.support Contains support classes for connecting to local and remoteMBeanServer
s and for exposing anMBeanServer
to remote clients.org.springframework.orm.hibernate5 Package providing integration of Hibernate 5.x with Spring concepts.org.springframework.orm.hibernate5.support Classes supporting theorg.springframework.orm.hibernate5
package.org.springframework.orm.jpa Package providing integration of JPA (Java Persistence API) with Spring concepts.org.springframework.orm.jpa.support Classes supporting theorg.springframework.orm.jpa
package.org.springframework.remoting.jaxws Remoting classes for Web Services via JAX-WS (the successor of JAX-RPC), as included in Java 6 and Java EE 5.org.springframework.remoting.rmi Remoting classes for conventional RMI and transparent remoting via RMI invokers.org.springframework.remoting.support Generic support classes for remoting implementations.org.springframework.scheduling.annotation Java 5 annotation for asynchronous method execution.org.springframework.scheduling.commonj Convenience classes for scheduling based on the CommonJ WorkManager/TimerManager facility, as supported by IBM WebSphere 6.0+ and BEA WebLogic 9.0+.org.springframework.scheduling.concurrent Scheduling convenience classes for thejava.util.concurrent
andjavax.enterprise.concurrent
packages, allowing to set up a ThreadPoolExecutor or ScheduledThreadPoolExecutor as a bean in a Spring context.org.springframework.scheduling.config Support package for declarative scheduling configuration, with XML schema being the primary configuration format.org.springframework.scheduling.quartz Support classes for the open source scheduler Quartz, allowing to set up Quartz Schedulers, JobDetails and Triggers as beans in a Spring context.org.springframework.scripting.support Support classes for Spring's scripting package.org.springframework.validation.beanvalidation Support classes for integrating a JSR-303 Bean Validation provider (such as Hibernate Validator) into a Spring ApplicationContext and in particular with Spring's data binding and validation APIs.org.springframework.web.context.support Classes supporting theorg.springframework.web.context
package, such as WebApplicationContext implementations and various utility classes.org.springframework.web.filter Provides generic filter base classes allowing for bean-style configuration.org.springframework.web.multipart.support Support classes for the multipart resolution framework.org.springframework.web.servlet.mvc Standard controller implementations for the Servlet MVC framework that comes with Spring.org.springframework.web.servlet.resource Support classes for serving static resources.org.springframework.web.servlet.view Provides standard View and ViewResolver implementations, including abstract base classes for custom implementations.org.springframework.web.servlet.view.tiles3 Support classes for the integration of Tiles 3 (the standalone version of Tiles) as Spring web view technology.org.springframework.aop.framework.autoproxy.target中DisposableBean的使用
实现DisposableBean的org.springframework.aop.framework.autoproxy.target中的类 修饰符和类型 类 说明 class
AbstractBeanFactoryBasedTargetSourceCreator
Convenient superclass forTargetSourceCreator
implementations that require creating multiple instances of a prototype bean.class
LazyInitTargetSourceCreator
TargetSourceCreator that enforces a LazyInitTargetSource for each bean that is defined as "lazy-init".class
QuickTargetSourceCreator
Convenient TargetSourceCreator using bean name prefixes to create one of three well-known TargetSource types: : CommonsPool2TargetSource % ThreadLocalTargetSource !org.springframework.aop.target中DisposableBean的使用
实现DisposableBean的org.springframework.aop.target中的类 修饰符和类型 类 说明 class
AbstractPoolingTargetSource
Abstract base class for poolingTargetSource
implementations which maintain a pool of target instances, acquiring and releasing a target object from the pool for each method invocation.class
CommonsPool2TargetSource
TargetSource
implementation that holds objects in a configurable Apache Commons2 Pool.class
ThreadLocalTargetSource
Alternative to an object pool.org.springframework.beans.factory.config中DisposableBean的使用
实现DisposableBean的org.springframework.beans.factory.config中的类 修饰符和类型 类 说明 class
AbstractFactoryBean<T>
Simple template superclass forFactoryBean
implementations that creates a singleton or a prototype object, depending on a flag.class
ListFactoryBean
Simple factory for shared List instances.class
MapFactoryBean
Simple factory for shared Map instances.class
ObjectFactoryCreatingFactoryBean
AFactoryBean
implementation that returns a value which is anObjectFactory
that in turn returns a bean sourced from aBeanFactory
.class
ProviderCreatingFactoryBean
AFactoryBean
implementation that returns a value which is a JSR-330Provider
that in turn returns a bean sourced from aBeanFactory
.class
SetFactoryBean
Simple factory for shared Set instances.org.springframework.beans.factory.serviceloader中DisposableBean的使用
实现DisposableBean的org.springframework.beans.factory.serviceloader中的类 修饰符和类型 类 说明 class
AbstractServiceLoaderBasedFactoryBean
Abstract base class for FactoryBeans operating on the JDK 1.6ServiceLoader
facility.class
ServiceFactoryBean
FactoryBean
that exposes the 'primary' service for the configured service class, obtained through the JDK 1.6ServiceLoader
facility.class
ServiceListFactoryBean
FactoryBean
that exposes all services for the configured service class, represented as a List of service objects, obtained through the JDK 1.6ServiceLoader
facility.class
ServiceLoaderFactoryBean
FactoryBean
that exposes the JDK 1.6ServiceLoader
for the configured service class.org.springframework.beans.factory.support中DisposableBean的使用
参数类型为DisposableBean的org.springframework.beans.factory.support中的方法 修饰符和类型 方法 说明 protected void
DefaultSingletonBeanRegistry. destroyBean(String beanName, DisposableBean bean)
Destroy the given bean.void
DefaultSingletonBeanRegistry. registerDisposableBean(String beanName, DisposableBean bean)
Add the given bean to the list of disposable beans in this registry.org.springframework.beans.factory.wiring中DisposableBean的使用
实现DisposableBean的org.springframework.beans.factory.wiring中的类 修饰符和类型 类 说明 class
BeanConfigurerSupport
Convenient base class for bean configurers that can perform Dependency Injection on objects (however they may be created).org.springframework.cache.ehcache中DisposableBean的使用
实现DisposableBean的org.springframework.cache.ehcache中的类 修饰符和类型 类 说明 class
EhCacheManagerFactoryBean
FactoryBean
that exposes an EhCacheCacheManager
instance (independent or shared), configured from a specified config location.org.springframework.cache.jcache中DisposableBean的使用
实现DisposableBean的org.springframework.cache.jcache中的类 修饰符和类型 类 说明 class
JCacheManagerFactoryBean
FactoryBean
for a JCachejavax.cache.CacheManager
, obtaining a pre-definedCacheManager
by name through the standard JCachejavax.cache.Caching
class.org.springframework.context.weaving中DisposableBean的使用
实现DisposableBean的org.springframework.context.weaving中的类 修饰符和类型 类 说明 class
DefaultContextLoadTimeWeaver
DefaultLoadTimeWeaver
bean for use in an application context, decorating an automatically detected internalLoadTimeWeaver
.org.springframework.ejb.access中DisposableBean的使用
实现DisposableBean的org.springframework.ejb.access中的类 修饰符和类型 类 说明 class
SimpleRemoteSlsbInvokerInterceptor
Basic invoker for a remote Stateless Session Bean.class
SimpleRemoteStatelessSessionProxyFactoryBean
ConvenientFactoryBean
for remote SLSB proxies.org.springframework.http.client中DisposableBean的使用
实现DisposableBean的org.springframework.http.client中的类 修饰符和类型 类 说明 class
HttpComponentsAsyncClientHttpRequestFactory
已过时。as of Spring 5.0, with no direct replacementclass
HttpComponentsClientHttpRequestFactory
ClientHttpRequestFactory
implementation that uses Apache HttpComponents HttpClient to create requests.class
Netty4ClientHttpRequestFactory
已过时。as of Spring 5.0, in favor ofReactorClientHttpConnector
class
OkHttp3ClientHttpRequestFactory
ClientHttpRequestFactory
implementation that uses OkHttp 3.x to create requests.org.springframework.http.client.reactive中DisposableBean的使用
实现DisposableBean的org.springframework.http.client.reactive中的类 修饰符和类型 类 说明 class
JettyResourceFactory
Factory to manage Jetty resources, i.e.class
ReactorResourceFactory
Factory to manage Reactor Netty resources, i.e.org.springframework.jca.cci.connection中DisposableBean的使用
实现DisposableBean的org.springframework.jca.cci.connection中的类 修饰符和类型 类 说明 class
SingleConnectionFactory
A CCI ConnectionFactory adapter that returns the same Connection on allgetConnection
calls, and ignores calls toConnection.close()
.org.springframework.jca.endpoint中DisposableBean的使用
实现DisposableBean的org.springframework.jca.endpoint中的类 修饰符和类型 类 说明 class
GenericMessageEndpointManager
Generic bean that manages JCA 1.7 message endpoints within a Spring application context, activating and deactivating the endpoint as part of the application context's lifecycle.org.springframework.jca.support中DisposableBean的使用
实现DisposableBean的org.springframework.jca.support中的类 修饰符和类型 类 说明 class
ResourceAdapterFactoryBean
FactoryBean
that bootstraps the specified JCA 1.7ResourceAdapter
, starting it with a localBootstrapContext
and exposing it for bean references.org.springframework.jdbc.config中DisposableBean的使用
实现DisposableBean的org.springframework.jdbc.config中的类 修饰符和类型 类 说明 class
SortedResourcesFactoryBean
FactoryBean
implementation that takes a list of location Strings and creates a sorted array ofResource
instances.org.springframework.jdbc.datasource中DisposableBean的使用
实现DisposableBean的org.springframework.jdbc.datasource中的类 修饰符和类型 类 说明 class
SingleConnectionDataSource
Implementation ofSmartDataSource
that wraps a single JDBC Connection which is not closed after use.org.springframework.jdbc.datasource.embedded中DisposableBean的使用
实现DisposableBean的org.springframework.jdbc.datasource.embedded中的类 修饰符和类型 类 说明 class
EmbeddedDatabaseFactoryBean
A subclass ofEmbeddedDatabaseFactory
that implementsFactoryBean
for registration as a Spring bean.org.springframework.jdbc.datasource.init中DisposableBean的使用
实现DisposableBean的org.springframework.jdbc.datasource.init中的类 修饰符和类型 类 说明 class
DataSourceInitializer
org.springframework.jms.config中DisposableBean的使用
实现DisposableBean的org.springframework.jms.config中的类 修饰符和类型 类 说明 class
JmsListenerEndpointRegistry
Creates the necessaryMessageListenerContainer
instances for the registered endpoints.org.springframework.jms.connection中DisposableBean的使用
实现DisposableBean的org.springframework.jms.connection中的类 修饰符和类型 类 说明 class
CachingConnectionFactory
class
SingleConnectionFactory
A JMS ConnectionFactory adapter that returns the same Connection from allSingleConnectionFactory.createConnection()
calls, and ignores calls toConnection.close()
.org.springframework.jms.listener中DisposableBean的使用
实现DisposableBean的org.springframework.jms.listener中的类 修饰符和类型 类 说明 class
AbstractJmsListeningContainer
Common base class for all containers which need to implement listening based on a JMS Connection (either shared or freshly obtained for each attempt).class
AbstractMessageListenerContainer
Abstract base class for Spring message listener container implementations.class
AbstractPollingMessageListenerContainer
Base class for listener container implementations which are based on polling.class
DefaultMessageListenerContainer
Message listener container variant that uses plain JMS client APIs, specifically a loop ofMessageConsumer.receive()
calls that also allow for transactional reception of messages (registering them with XA transactions).class
SimpleMessageListenerContainer
Message listener container that uses the plain JMS client API'sMessageConsumer.setMessageListener()
method to create concurrent MessageConsumers for the specified listeners.org.springframework.jms.listener.endpoint中DisposableBean的使用
实现DisposableBean的org.springframework.jms.listener.endpoint中的类 修饰符和类型 类 说明 class
JmsMessageEndpointManager
Extension of the generic JCA 1.5GenericMessageEndpointManager
, adding JMS-specific support for ActivationSpec configuration.org.springframework.jmx.access中DisposableBean的使用
实现DisposableBean的org.springframework.jmx.access中的类 修饰符和类型 类 说明 class
MBeanClientInterceptor
MethodInterceptor
that routes calls to an MBean running on the suppliedMBeanServerConnection
.class
MBeanProxyFactoryBean
Creates a proxy to a managed resource running either locally or remotely.class
NotificationListenerRegistrar
Registrar object that associates a specificNotificationListener
with one or more MBeans in anMBeanServer
(typically via aMBeanServerConnection
).org.springframework.jmx.export中DisposableBean的使用
实现DisposableBean的org.springframework.jmx.export中的类 修饰符和类型 类 说明 class
MBeanExporter
JMX exporter that allows for exposing any Spring-managed bean to a JMXMBeanServer
, without the need to define any JMX-specific information in the bean classes.org.springframework.jmx.export.annotation中DisposableBean的使用
实现DisposableBean的org.springframework.jmx.export.annotation中的类 修饰符和类型 类 说明 class
AnnotationMBeanExporter
Convenient subclass of Spring's standardMBeanExporter
, activating Java 5 annotation usage for JMX exposure of Spring beans:ManagedResource
,ManagedAttribute
,ManagedOperation
, etc.org.springframework.jmx.support中DisposableBean的使用
实现DisposableBean的org.springframework.jmx.support中的类 修饰符和类型 类 说明 class
ConnectorServerFactoryBean
FactoryBean
that creates a JSR-160JMXConnectorServer
, optionally registers it with theMBeanServer
, and then starts it.class
MBeanServerConnectionFactoryBean
FactoryBean
that creates a JMX 1.2MBeanServerConnection
to a remoteMBeanServer
exposed via aJMXServerConnector
.class
MBeanServerFactoryBean
FactoryBean
that obtains aMBeanServer
reference through the standard JMX 1.2MBeanServerFactory
API.org.springframework.orm.hibernate5中DisposableBean的使用
实现DisposableBean的org.springframework.orm.hibernate5中的类 修饰符和类型 类 说明 class
LocalSessionFactoryBean
FactoryBean
that creates a HibernateSessionFactory
.org.springframework.orm.hibernate5.support中DisposableBean的使用
实现DisposableBean的org.springframework.orm.hibernate5.support中的类 修饰符和类型 类 说明 class
OpenSessionInViewFilter
Servlet Filter that binds a Hibernate Session to the thread for the entire processing of the request.org.springframework.orm.jpa中DisposableBean的使用
实现DisposableBean的org.springframework.orm.jpa中的类 修饰符和类型 类 说明 class
AbstractEntityManagerFactoryBean
AbstractFactoryBean
that creates a local JPAEntityManagerFactory
instance within a Spring application context.class
LocalContainerEntityManagerFactoryBean
FactoryBean
that creates a JPAEntityManagerFactory
according to JPA's standard container bootstrap contract.class
LocalEntityManagerFactoryBean
FactoryBean
that creates a JPAEntityManagerFactory
according to JPA's standard standalone bootstrap contract.org.springframework.orm.jpa.support中DisposableBean的使用
实现DisposableBean的org.springframework.orm.jpa.support中的类 修饰符和类型 类 说明 class
OpenEntityManagerInViewFilter
Servlet Filter that binds a JPA EntityManager to the thread for the entire processing of the request.org.springframework.remoting.jaxws中DisposableBean的使用
实现DisposableBean的org.springframework.remoting.jaxws中的类 修饰符和类型 类 说明 class
AbstractJaxWsServiceExporter
Abstract exporter for JAX-WS services, autodetecting annotated service beans (through the JAX-WSWebService
annotation).class
SimpleHttpServerJaxWsServiceExporter
已过时。as of Spring Framework 5.1, in favor ofSimpleJaxWsServiceExporter
class
SimpleJaxWsServiceExporter
Simple exporter for JAX-WS services, autodetecting annotated service beans (through the JAX-WSWebService
annotation) and exporting them with a configured base address (by default "http://localhost:8080/") using the JAX-WS provider's built-in publication support.org.springframework.remoting.rmi中DisposableBean的使用
实现DisposableBean的org.springframework.remoting.rmi中的类 修饰符和类型 类 说明 class
JndiRmiServiceExporter
Service exporter which binds RMI services to JNDI.class
RmiRegistryFactoryBean
FactoryBean
that locates aRegistry
and exposes it for bean references.class
RmiServiceExporter
RMI exporter that exposes the specified service as RMI object with the specified name.org.springframework.remoting.support中DisposableBean的使用
实现DisposableBean的org.springframework.remoting.support中的类 修饰符和类型 类 说明 class
SimpleHttpServerFactoryBean
已过时。as of Spring Framework 5.1, in favor of embedded Tomcat/Jetty/Undertoworg.springframework.scheduling.annotation中DisposableBean的使用
实现DisposableBean的org.springframework.scheduling.annotation中的类 修饰符和类型 类 说明 class
ScheduledAnnotationBeanPostProcessor
Bean post-processor that registers methods annotated with @Scheduled
to be invoked by aTaskScheduler
according to the "fixedRate", "fixedDelay", or "cron" expression provided via the annotation.org.springframework.scheduling.commonj中DisposableBean的使用
实现DisposableBean的org.springframework.scheduling.commonj中的类 修饰符和类型 类 说明 class
TimerManagerAccessor
已过时。as of 5.1, in favor of EE 7'sDefaultManagedTaskScheduler
class
TimerManagerFactoryBean
已过时。as of 5.1, in favor of EE 7'sDefaultManagedTaskScheduler
class
TimerManagerTaskScheduler
已过时。as of 5.1, in favor of EE 7'sDefaultManagedTaskScheduler
org.springframework.scheduling.concurrent中DisposableBean的使用
实现DisposableBean的org.springframework.scheduling.concurrent中的类 修饰符和类型 类 说明 class
ExecutorConfigurationSupport
Base class for setting up aExecutorService
(typically aThreadPoolExecutor
orScheduledThreadPoolExecutor
).class
ForkJoinPoolFactoryBean
A SpringFactoryBean
that builds and exposes a preconfiguredForkJoinPool
.class
ScheduledExecutorFactoryBean
FactoryBean
that sets up aScheduledExecutorService
(by default: aScheduledThreadPoolExecutor
) and exposes it for bean references.class
ThreadPoolExecutorFactoryBean
JavaBean that allows for configuring aThreadPoolExecutor
in bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a bean reference of its nativeExecutorService
type.class
ThreadPoolTaskExecutor
JavaBean that allows for configuring aThreadPoolExecutor
in bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a SpringTaskExecutor
.class
ThreadPoolTaskScheduler
Implementation of Spring'sTaskScheduler
interface, wrapping a nativeScheduledThreadPoolExecutor
.org.springframework.scheduling.config中DisposableBean的使用
实现DisposableBean的org.springframework.scheduling.config中的类 修饰符和类型 类 说明 class
ContextLifecycleScheduledTaskRegistrar
ScheduledTaskRegistrar
subclass which redirects the actual scheduling of tasks to theContextLifecycleScheduledTaskRegistrar.afterSingletonsInstantiated()
callback (as of 4.1.2).class
ScheduledTaskRegistrar
Helper bean for registering tasks with aTaskScheduler
, typically using cron expressions.class
TaskExecutorFactoryBean
FactoryBean
for creatingThreadPoolTaskExecutor
instances, primarily used behind the XML task namespace.org.springframework.scheduling.quartz中DisposableBean的使用
实现DisposableBean的org.springframework.scheduling.quartz中的类 修饰符和类型 类 说明 class
SchedulerFactoryBean
FactoryBean
that creates and configures a QuartzScheduler
, manages its lifecycle as part of the Spring application context, and exposes the Scheduler as bean reference for dependency injection.class
SimpleThreadPoolTaskExecutor
Subclass of Quartz's SimpleThreadPool that implements Spring'sTaskExecutor
interface and listens to Spring lifecycle callbacks.org.springframework.scripting.support中DisposableBean的使用
实现DisposableBean的org.springframework.scripting.support中的类 修饰符和类型 类 说明 class
ScriptFactoryPostProcessor
BeanPostProcessor
that handlesScriptFactory
definitions, replacing each factory with the actual scripted Java object generated by it.org.springframework.validation.beanvalidation中DisposableBean的使用
实现DisposableBean的org.springframework.validation.beanvalidation中的类 修饰符和类型 类 说明 class
LocalValidatorFactoryBean
This is the central class forjavax.validation
(JSR-303) setup in a Spring application context: It bootstraps ajavax.validation.ValidationFactory
and exposes it through the SpringValidator
interface as well as through the JSR-303Validator
interface and theValidatorFactory
interface itself.class
OptionalValidatorFactoryBean
LocalValidatorFactoryBean
subclass that simply turnsValidator
calls into no-ops in case of no Bean Validation provider being available.org.springframework.web.context.support中DisposableBean的使用
实现DisposableBean的org.springframework.web.context.support中的类 修饰符和类型 类 说明 class
ServletContextScope
Scope
wrapper for a ServletContext, i.e. for global web application attributes.org.springframework.web.filter中DisposableBean的使用
实现DisposableBean的org.springframework.web.filter中的类 修饰符和类型 类 说明 class
AbstractRequestLoggingFilter
Base class forFilter
s that perform logging operations before and after a request is processed.class
CharacterEncodingFilter
Servlet Filter that allows one to specify a character encoding for requests.class
CommonsRequestLoggingFilter
Simple request logging filter that writes the request URI (and optionally the query string) to the Commons Log.class
CorsFilter
Filter
that handles CORS preflight requests and intercepts CORS simple and actual requests thanks to aCorsProcessor
implementation (DefaultCorsProcessor
by default) in order to add the relevant CORS response headers (likeAccess-Control-Allow-Origin
) using the providedCorsConfigurationSource
(for example anUrlBasedCorsConfigurationSource
instance.class
DelegatingFilterProxy
Proxy for a standard Servlet Filter, delegating to a Spring-managed bean that implements the Filter interface.class
FormContentFilter
Filter
that parses form data for HTTP PUT, PATCH, and DELETE requests and exposes it as Servlet request parameters.class
ForwardedHeaderFilter
Extract values from "Forwarded" and "X-Forwarded-*" headers, wrap the request and response, and make they reflect the client-originated protocol and address in the following methods:getServerName()
getServerPort()
getScheme()
isSecure()
sendRedirect(String)
.class
GenericFilterBean
Simple base implementation ofFilter
which treats its config parameters (init-param
entries within thefilter
tag inweb.xml
) as bean properties.class
HiddenHttpMethodFilter
Filter
that converts posted method parameters into HTTP methods, retrievable viaHttpServletRequest.getMethod()
.class
HttpPutFormContentFilter
已过时。as of 5.1 in favor ofFormContentFilter
which is the same but also handles DELETE.class
OncePerRequestFilter
Filter base class that aims to guarantee a single execution per request dispatch, on any servlet container.class
RelativeRedirectFilter
OverridesHttpServletResponse.sendRedirect(String)
and handles it by setting the HTTP status and "Location" headers, which keeps the Servlet container from re-writing relative redirect URLs into absolute ones.class
RequestContextFilter
Servlet Filter that exposes the request to the current thread, through bothLocaleContextHolder
andRequestContextHolder
.class
ServletContextRequestLoggingFilter
Simple request logging filter that writes the request URI (and optionally the query string) to the ServletContext log.class
ShallowEtagHeaderFilter
Filter
that generates anETag
value based on the content on the response.org.springframework.web.multipart.support中DisposableBean的使用
实现DisposableBean的org.springframework.web.multipart.support中的类 修饰符和类型 类 说明 class
MultipartFilter
Servlet Filter that resolves multipart requests via aMultipartResolver
.org.springframework.web.servlet.mvc中DisposableBean的使用
实现DisposableBean的org.springframework.web.servlet.mvc中的类 修饰符和类型 类 说明 class
ServletWrappingController
Spring Controller implementation that wraps a servlet instance which it manages internally.org.springframework.web.servlet.resource中DisposableBean的使用
实现DisposableBean的org.springframework.web.servlet.resource中的类 修饰符和类型 类 说明 class
ResourceUrlEncodingFilter
A filter that wraps theHttpServletResponse
and overrides itsencodeURL
method in order to translate internal resource request URLs into public URL paths for external use.org.springframework.web.servlet.view中DisposableBean的使用
实现DisposableBean的org.springframework.web.servlet.view中的类 修饰符和类型 类 说明 class
ResourceBundleViewResolver
AViewResolver
implementation that uses bean definitions in aResourceBundle
, specified by the bundle basename.class
XmlViewResolver
AViewResolver
implementation that uses bean definitions in a dedicated XML file for view definitions, specified by resource location.org.springframework.web.servlet.view.tiles3中DisposableBean的使用
实现DisposableBean的org.springframework.web.servlet.view.tiles3中的类 修饰符和类型 类 说明 class
TilesConfigurer
Helper class to configure Tiles 3.x for the Spring Framework.