Package com.google.inject.servlet
Class AbstractServletModuleBinding<T>
java.lang.Object
com.google.inject.servlet.AbstractServletModuleBinding<T>
- All Implemented Interfaces:
ServletModuleBinding
- Direct Known Subclasses:
InstanceFilterBindingImpl
,InstanceServletBindingImpl
,LinkedFilterBindingImpl
,LinkedServletBindingImpl
Abstract implementation for all servlet module bindings
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractServletModuleBinding
(Map<String, String> initParams, T target, UriPatternMatcher patternMatcher) -
Method Summary
Modifier and TypeMethodDescriptionReturns any context params supplied when creating the binding.Returns the pattern used to match against the binding.protected T
Returns the pattern type that this binding was created with.boolean
matchesUri
(String uri) Returns true if the given URI will match this binding.
-
Field Details
-
initParams
-
target
-
patternMatcher
-
-
Constructor Details
-
AbstractServletModuleBinding
AbstractServletModuleBinding(Map<String, String> initParams, T target, UriPatternMatcher patternMatcher)
-
-
Method Details
-
getInitParams
Description copied from interface:ServletModuleBinding
Returns any context params supplied when creating the binding.- Specified by:
getInitParams
in interfaceServletModuleBinding
-
getPattern
Description copied from interface:ServletModuleBinding
Returns the pattern used to match against the binding.- Specified by:
getPattern
in interfaceServletModuleBinding
-
getTarget
-
getUriPatternType
Description copied from interface:ServletModuleBinding
Returns the pattern type that this binding was created with.- Specified by:
getUriPatternType
in interfaceServletModuleBinding
-
matchesUri
Description copied from interface:ServletModuleBinding
Returns true if the given URI will match this binding.- Specified by:
matchesUri
in interfaceServletModuleBinding
-