| 1 |
|
/*
|
|
|
|
|
| 2 |
|
* License
d to the A
pache Soft
ware Found
ation (ASF
) under on
e or more
|
|
|
|
|
| 3 |
|
* contrib
utor licen
se agreeme
nts. See
the NOTICE
file dist
ributed wi
th
|
|
|
|
|
| 4 |
|
* this wo
rk for add
itional in
formation
regarding
copyright
ownership.
|
|
|
|
|
| 5 |
|
* The ASF
licenses
this file
to You und
er the Apa
che Licens
e, Version
2.0
|
|
|
|
|
| 6 |
|
* (the "L
icense");
you may no
t use this
file exce
pt in comp
liance wit
h
|
|
|
|
|
| 7 |
|
* the Lic
ense. You
may obtai
n a copy o
f the Lice
nse at
|
|
|
|
|
| 8 |
|
*
|
|
|
|
|
| 9 |
|
* ht
tp://www.a
pache.org/
licenses/L
ICENSE-2.0
|
|
|
|
|
| 10 |
|
*
|
|
|
|
|
| 11 |
|
* Unless
required b
y applicab
le law or
agreed to
in writing
, software
|
|
|
|
|
| 12 |
|
* distrib
uted under
the Licen
se is dist
ributed on
an "AS IS
" BASIS,
|
|
|
|
|
| 13 |
|
* WITHOUT
WARRANTIE
S OR CONDI
TIONS OF A
NY KIND, e
ither expr
ess or imp
lied.
|
|
|
|
|
| 14 |
|
* See the
License f
or the spe
cific lang
uage gover
ning permi
ssions and
|
|
|
|
|
| 15 |
|
* limitat
ions under
the Licen
se.
|
|
|
|
|
| 16 |
|
*/
|
|
|
|
|
| 17 |
|
|
|
|
|
|
| 18 |
|
|
|
|
|
|
| 19 |
|
package or
g.apache.c
atalina.co
met;
|
|
|
|
|
| 20 |
|
|
|
|
|
|
| 21 |
|
import jav
a.io.IOExc
eption;
|
|
|
|
|
| 22 |
|
|
|
|
|
|
| 23 |
|
import jav
ax.servlet
.ServletEx
ception;
|
|
|
|
|
| 24 |
|
|
|
|
|
|
| 25 |
|
/**
|
|
|
|
|
| 26 |
|
* A Comet
FilterChai
n is an ob
ject provi
ded by the
servlet c
ontainer t
o the deve
loper
|
|
|
|
|
| 27 |
|
* giving
a view int
o the invo
cation cha
in of a fi
ltered eve
nt for a r
esource. F
ilters
|
|
|
|
|
| 28 |
|
* use the
CometFilt
erChain to
invoke th
e next fil
ter in the
chain, or
if the ca
lling filt
er
|
|
|
|
|
| 29 |
|
* is the
last filte
r in the c
hain, to i
nvoke the
resource a
t the end
of the cha
in.
|
|
|
|
|
| 30 |
|
*
|
|
|
|
|
| 31 |
|
* @author
Remy Mauc
herat
|
|
|
|
|
| 32 |
|
*/
|
|
|
|
|
| 33 |
|
public int
erface Com
etFilterCh
ain {
|
|
|
|
|
| 34 |
|
|
|
|
|
|
| 35 |
|
|
|
|
|
|
| 36 |
|
/**
|
|
|
|
|
| 37 |
|
* Cau
ses the ne
xt filter
in the cha
in to be i
nvoked, or
if the ca
lling filt
er is the
last filte
r
|
|
|
|
|
| 38 |
|
* in
the chain,
causes th
e resource
at the en
d of the c
hain to be
invoked.
|
|
|
|
|
| 39 |
|
*
|
|
|
|
|
| 40 |
|
* @pa
ram event
the event
to pass al
ong the ch
ain.
|
|
|
|
|
| 41 |
|
*/
|
|
|
|
|
| 42 |
|
public
void doFi
lterEvent(
CometEvent
event) th
rows IOExc
eption, Se
rvletExcep
tion;
|
|
|
|
|
| 43 |
|
|
|
|
|
|
| 44 |
|
|
|
|
|
|
| 45 |
|
}
|
|
|
|
|