DefaultedHttpContextpublic final class DefaultedHttpContext extends Object implements HttpContext{@link HttpContext} implementation that delegates resolution of an attribute
to the given default {@link HttpContext} instance if the attribute is not
present in the local one. The state of the local context can be mutated,
whereas the default context is treated as read-only. |
Fields Summary |
---|
private final HttpContext | local | private final HttpContext | defaults |
Constructors Summary |
---|
public DefaultedHttpContext(HttpContext local, HttpContext defaults)
super();
if (local == null) {
throw new IllegalArgumentException("HTTP context may not be null");
}
this.local = local;
this.defaults = defaults;
|
|