public interface HttpBridletContext
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(Class<T> cls)
Gets an instance of the specified class if an instance of it was added
previously to this context.
|
HttpBridletRequest |
getRequest()
The HTTP request.
|
HttpBridletResponse |
getResponse()
The HTTP response.
|
<T> void |
set(Class<T> cls,
T data)
Add the data object to the context so it can be retrieve by the get
method.
|
<T> T get(Class<T> cls)
T - The type of the class to search for.cls - The class to search for.<T> void set(Class<T> cls, T data)
T - The type of the class of data.cls - The class of the data.data - The instance to store in the context.HttpBridletRequest getRequest()
HttpBridletResponse getResponse()
Copyright © 2015–2017 Bridje Framework. All rights reserved.