Module org.refcodes.web
Package org.refcodes.web
Interface PreHttpInterceptable<I extends PreHttpInterceptor<?,?>>
- Type Parameters:
I
- The type ofPreHttpInterceptor
to be managed.
- All Known Subinterfaces:
HttpClientInterceptable
,HttpInterceptable<I>
,HttpServerInterceptable
,PreHttpClientInterceptable
,PreHttpServerInterceptable
public interface PreHttpInterceptable<I extends PreHttpInterceptor<?,?>>
The
PreHttpInterceptable
provides base functionality for working with
PreHttpInterceptor
instances.-
Method Summary
Modifier and TypeMethodDescriptionboolean
addPreHttpInterceptor
(I aPreInterceptor) Adds the givenPreHttpInterceptor
instance.boolean
hasPreHttpInterceptor
(I aPreInterceptor) Tests whether the givenPreHttpInterceptor
instance has been added.boolean
removePreHttpInterceptor
(I aPreInterceptor) Removes thePreHttpInterceptor
instance.
-
Method Details
-
hasPreHttpInterceptor
Tests whether the givenPreHttpInterceptor
instance has been added.- Parameters:
aPreInterceptor
- ThePreHttpInterceptor
instance for which to test if it has been added.- Returns:
- True if the given
PreHttpInterceptor
instance has been added already.
-
addPreHttpInterceptor
Adds the givenPreHttpInterceptor
instance. ThePreHttpInterceptor
instance itself acts as the handle which is used when removing the givenPreHttpInterceptor
instance later.- Parameters:
aPreInterceptor
- ThePreHttpInterceptor
instance which is to be added.- Returns:
- True if the
PreHttpInterceptor
instance has been added successfully. If thePreHttpInterceptor
instance has already been added, false is returned.
-
removePreHttpInterceptor
Removes thePreHttpInterceptor
instance. In case thePreHttpInterceptor
instance has not been added before, then false is returned.- Parameters:
aPreInterceptor
- ThePreHttpInterceptor
instance which is to be removed.- Returns:
- True if the
PreHttpInterceptor
instance has been removed successfully. If there was none suchPreHttpInterceptor
instance or if thePreHttpInterceptor
instance has already been removed, then false is returned.
-