public interface HttpServerContext
| 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.
|
<T> void |
set(Class<T> cls,
T data)
Add the data object to the context so it can be retrive 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.Copyright © 2015–2016 Bridje Framework. All rights reserved.