Module org.refcodes.web
Package org.refcodes.web
Interface PostHttpInterceptable<I extends PostHttpInterceptor<?,?>>
- Type Parameters:
I
- The type ofPostHttpInterceptor
to be managed.
- All Known Subinterfaces:
HttpClientInterceptable
,HttpInterceptable<I>
,HttpServerInterceptable
,PostHttpClientInterceptable
,PostHttpServerInterceptable
public interface PostHttpInterceptable<I extends PostHttpInterceptor<?,?>>
The
PostHttpInterceptable
provides base functionality for working
with PostHttpInterceptor
instances.-
Method Summary
Modifier and TypeMethodDescriptionboolean
addPostHttpInterceptor
(I aPostInterceptor) Adds the givenPostHttpInterceptor
instance.boolean
hasPostHttpInterceptor
(I aPostInterceptor) Tests whether the givenPostHttpInterceptor
instance has been added.boolean
removePostHttpInterceptor
(I aPostInterceptor) Removes thePostHttpInterceptor
instance.
-
Method Details
-
hasPostHttpInterceptor
Tests whether the givenPostHttpInterceptor
instance has been added.- Parameters:
aPostInterceptor
- ThePostHttpInterceptor
instance for which to test if it has been added.- Returns:
- True if the given
PostHttpInterceptor
instance has been added already.
-
addPostHttpInterceptor
Adds the givenPostHttpInterceptor
instance. ThePostHttpInterceptor
instance itself acts as the handle which is used when removing the givenPostHttpInterceptor
instance later.- Parameters:
aPostInterceptor
- ThePostHttpInterceptor
instance which is to be added.- Returns:
- True if the
PostHttpInterceptor
instance has been added successfully. If thePostHttpInterceptor
instance has already been added, false is returned.
-
removePostHttpInterceptor
Removes thePostHttpInterceptor
instance. In case thePostHttpInterceptor
instance has not been added before, then false is returned.- Parameters:
aPostInterceptor
- ThePostHttpInterceptor
instance which is to be removed.- Returns:
- True if the
PostHttpInterceptor
instance has been removed successfully. If there was none suchPostHttpInterceptor
instance or if thePostHttpInterceptor
instance has already been removed, then false is returned.
-