public class DelegatingHasContextAndHeaders extends Object implements HasContextAndHeaders
| コンストラクタと説明 |
|---|
DelegatingHasContextAndHeaders(HasContextAndHeaders delegate) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
contextSize() |
void |
copyContextAndHeadersFrom(HasContextAndHeaders other)
copies over the context and the headers
|
void |
copyContextFrom(HasContext other)
Copies the context from the given context holder to this context holder.
|
void |
copyHeadersFrom(HasHeaders from) |
ImmutableOpenMap<Object,Object> |
getContext() |
<V> V |
getFromContext(Object key) |
<V> V |
getFromContext(Object key,
V defaultValue) |
<V> V |
getHeader(String key) |
Set<String> |
getHeaders() |
boolean |
hasHeader(String key) |
boolean |
hasInContext(Object key)
Checks if the context contains an entry with the given key
|
boolean |
isContextEmpty()
Checks if the context is empty.
|
void |
putAllInContext(com.carrotsearch.hppc.ObjectObjectAssociativeContainer<Object,Object> map)
Attaches the given values to the context
|
<V> void |
putHeader(String key,
V value) |
<V> V |
putInContext(Object key,
Object value)
Attaches the given value to the context.
|
public DelegatingHasContextAndHeaders(HasContextAndHeaders delegate)
public <V> void putHeader(String key, V value)
putHeader インタフェース内 HasHeaderspublic void copyContextAndHeadersFrom(HasContextAndHeaders other)
HasContextAndHeaderscopyContextAndHeadersFrom インタフェース内 HasContextAndHeadersother - another object supporting headers and contextpublic <V> V getHeader(String key)
getHeader インタフェース内 HasHeaderspublic boolean hasHeader(String key)
hasHeader インタフェース内 HasHeaderspublic <V> V putInContext(Object key, Object value)
HasContextputInContext インタフェース内 HasContextnull if there was none.public Set<String> getHeaders()
getHeaders インタフェース内 HasHeaderspublic void copyHeadersFrom(HasHeaders from)
copyHeadersFrom インタフェース内 HasHeaderspublic void putAllInContext(com.carrotsearch.hppc.ObjectObjectAssociativeContainer<Object,Object> map)
HasContextputAllInContext インタフェース内 HasContextpublic <V> V getFromContext(Object key)
getFromContext インタフェース内 HasContextHasContext.putInContext(Object, Object)public <V> V getFromContext(Object key, V defaultValue)
getFromContext インタフェース内 HasContextdefaultValue - The default value that should be returned for the given key, if no
value is currently associated with it.HasContext.putInContext(Object, Object)public boolean hasInContext(Object key)
HasContexthasInContext インタフェース内 HasContextpublic int contextSize()
contextSize インタフェース内 HasContextpublic boolean isContextEmpty()
HasContextisContextEmpty インタフェース内 HasContextpublic ImmutableOpenMap<Object,Object> getContext()
getContext インタフェース内 HasContextpublic void copyContextFrom(HasContext other)
HasContextcopyContextFrom インタフェース内 HasContextCopyright © 2009–2016. All rights reserved.