Package | Description |
---|---|
javax.servlet |
The javax.servlet package contains a number of classes and interfaces that
describe and define the contracts between a servlet class and the
runtime environment provided for an instance of such a class by a
conforming servlet container.
|
javax.servlet.http |
The javax.servlet.http package contains a number of classes and interfaces
that describe and define the contracts between a servlet class
running under the HTTP protocol and the runtime environment provided
for an instance of such a class by a conforming servlet container.
|
Modifier and Type | Class and Description |
---|---|
class |
GenericFilter
Defines a generic, protocol-independent
filter.
|
Modifier and Type | Method and Description |
---|---|
<T extends Filter> |
ServletContext.createFilter(Class<T> clazz)
Instantiates the given Filter class.
|
Modifier and Type | Method and Description |
---|---|
FilterRegistration.Dynamic |
ServletContext.addFilter(String filterName,
Filter filter)
Registers the given filter instance with this ServletContext
under the given filterName.
|
Modifier and Type | Method and Description |
---|---|
FilterRegistration.Dynamic |
ServletContext.addFilter(String filterName,
Class<? extends Filter> filterClass)
Adds the filter with the given name and class type to this servlet
context.
|
Modifier and Type | Class and Description |
---|---|
class |
HttpFilter
Provides an abstract class to be subclassed to create
an HTTP filter suitable for a Web site.
|
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.