- All Superinterfaces:
PostHttpInterceptable<PostHttpServerInterceptor>
,PostHttpServerInterceptable
,PreHttpInterceptable<PreHttpServerInterceptor>
,PreHttpServerInterceptable
public interface HttpServerInterceptable
extends PreHttpServerInterceptable, PostHttpServerInterceptable
The
HttpServerInterceptable
provides base functionality for working
with HttpServerInterceptor
instances using the
PreHttpServerInterceptable
as well as the
PostHttpServerInterceptable
definitions.-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
addHttpInterceptor
(HttpServerInterceptor aInterceptor) Adds the givenHttpServerInterceptor
instance.default boolean
hasHttpInterceptor
(HttpServerInterceptor aInterceptor) Tests whether the givenHttpServerInterceptor
instance has been added.default boolean
removeHttpInterceptor
(HttpServerInterceptor aInterceptor) Removes theHttpServerInterceptor
instance.Methods inherited from interface org.refcodes.web.PostHttpInterceptable
addPostHttpInterceptor, hasPostHttpInterceptor, removePostHttpInterceptor
Methods inherited from interface org.refcodes.web.PreHttpInterceptable
addPreHttpInterceptor, hasPreHttpInterceptor, removePreHttpInterceptor
-
Method Details
-
hasHttpInterceptor
Tests whether the givenHttpServerInterceptor
instance has been added.- Parameters:
aInterceptor
- TheHttpServerInterceptor
instance for which to test if it has been added.- Returns:
- True in case
PreHttpInterceptable.hasPreHttpInterceptor(PreHttpInterceptor)
andPostHttpInterceptable.hasPostHttpInterceptor(PostHttpInterceptor)
return true.
-
addHttpInterceptor
Adds the givenHttpServerInterceptor
instance. TheHttpServerInterceptor
instance itself acts as the handle which is used when removing the givenHttpServerInterceptor
instance later.- Parameters:
aInterceptor
- TheHttpServerInterceptor
instance which is to be added.- Returns:
- True in case
PreHttpInterceptable.addPreHttpInterceptor(PreHttpInterceptor)
orPostHttpInterceptable.addPostHttpInterceptor(PostHttpInterceptor)
return true.
-
removeHttpInterceptor
Removes theHttpServerInterceptor
instance. In case theHttpServerInterceptor
instance has not been added before, then false is returned.- Parameters:
aInterceptor
- TheHttpServerInterceptor
instance which is to be removed.- Returns:
- True in case
PreHttpInterceptable.removePreHttpInterceptor(PreHttpInterceptor)
orPostHttpInterceptable.removePostHttpInterceptor(PostHttpInterceptor)
return true.
-