T
- the type of the instance to provide@ConsumerType
public interface Provider<T>
T
that are dependent on the current request.
Developers can then provide these instances in the methods added with any of
the route builders.Modifier and Type | Method and Description |
---|---|
T |
createContext(javax.servlet.http.HttpServletRequest httpServletRequest)
Creates an instance of
T for the current request. |
T createContext(javax.servlet.http.HttpServletRequest httpServletRequest)
T
for the current request.httpServletRequest
- the current requestT