public interface HttpContext
/ IMPORTANT: Please note HTTP context implementation, even when thread safe, may not be used concurrently by multiple threads, as the context may contain thread unsafe attributes.
Modifier and Type | Field and Description |
---|---|
static String |
RESERVED_PREFIX
The prefix reserved for use by HTTP components.
|
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String id)
Obtains attribute with the given name.
|
Object |
removeAttribute(String id)
Removes attribute with the given name from the context.
|
void |
setAttribute(String id,
Object obj)
Sets value of the attribute with the given name.
|
static final String RESERVED_PREFIX
Object getAttribute(String id)
id
- the attribute name.null
if not set.void setAttribute(String id, Object obj)
id
- the attribute name.obj
- the attribute value.Copyright © 2005-2014 The Apache Software Foundation. All Rights Reserved.