Modifier and Type | Method and Description |
---|---|
Collection<AttributeRepository.AttributeKey<?>> |
AttributeRepository.attributeKeys() |
Modifier and Type | Method and Description |
---|---|
default <T> T |
AttributeStore.computeAttributeIfAbsent(AttributeRepository.AttributeKey<T> key,
Function<? super AttributeRepository.AttributeKey<T>,? extends T> resolver)
If the specified key is not already associated with a value (or is mapped
to
null ), attempts to compute its value using the given mapping
function and enters it into this map unless null . |
<T> T |
AttributeRepository.getAttribute(AttributeRepository.AttributeKey<T> key)
Returns the value of the user-defined attribute.
|
static <A> AttributeRepository |
AttributeRepository.ofKeyValuePair(AttributeRepository.AttributeKey<A> key,
A value) |
<T> T |
AttributeStore.removeAttribute(AttributeRepository.AttributeKey<T> key)
Removes the user-defined attribute
|
default <T> T |
FactoryManager.resolveAttribute(AttributeRepository.AttributeKey<T> key) |
default <T> T |
AttributeRepository.resolveAttribute(AttributeRepository.AttributeKey<T> key)
Attempts to resolve the associated value by going up the store's
hierarchy (if any)
|
static <T> T |
FactoryManager.resolveAttribute(FactoryManager manager,
AttributeRepository.AttributeKey<T> key) |
<T> T |
AttributeStore.setAttribute(AttributeRepository.AttributeKey<T> key,
T value)
Sets a user-defined attribute.
|
Modifier and Type | Method and Description |
---|---|
default <T> T |
AttributeStore.computeAttributeIfAbsent(AttributeRepository.AttributeKey<T> key,
Function<? super AttributeRepository.AttributeKey<T>,? extends T> resolver)
If the specified key is not already associated with a value (or is mapped
to
null ), attempts to compute its value using the given mapping
function and enters it into this map unless null . |
static AttributeRepository |
AttributeRepository.ofAttributesMap(Map<AttributeRepository.AttributeKey<?>,?> attributes) |
Modifier and Type | Method and Description |
---|---|
Collection<AttributeRepository.AttributeKey<?>> |
AbstractChannel.attributeKeys() |
Modifier and Type | Method and Description |
---|---|
<T> T |
AbstractChannel.computeAttributeIfAbsent(AttributeRepository.AttributeKey<T> key,
Function<? super AttributeRepository.AttributeKey<T>,? extends T> resolver) |
<T> T |
AbstractChannel.getAttribute(AttributeRepository.AttributeKey<T> key) |
<T> T |
AbstractChannel.removeAttribute(AttributeRepository.AttributeKey<T> key) |
default <T> T |
Channel.resolveAttribute(AttributeRepository.AttributeKey<T> key) |
static <T> T |
Channel.resolveAttribute(Channel channel,
AttributeRepository.AttributeKey<T> key)
Attempts to use the channel attribute, if not found then tries the session
|
<T> T |
AbstractChannel.setAttribute(AttributeRepository.AttributeKey<T> key,
T value) |
Modifier and Type | Method and Description |
---|---|
<T> T |
AbstractChannel.computeAttributeIfAbsent(AttributeRepository.AttributeKey<T> key,
Function<? super AttributeRepository.AttributeKey<T>,? extends T> resolver) |
Modifier and Type | Method and Description |
---|---|
Collection<AttributeRepository.AttributeKey<?>> |
AbstractFactoryManager.attributeKeys() |
Modifier and Type | Method and Description |
---|---|
<T> T |
AbstractFactoryManager.computeAttributeIfAbsent(AttributeRepository.AttributeKey<T> key,
Function<? super AttributeRepository.AttributeKey<T>,? extends T> resolver) |
<T> T |
AbstractFactoryManager.getAttribute(AttributeRepository.AttributeKey<T> key) |
<T> T |
AbstractFactoryManager.removeAttribute(AttributeRepository.AttributeKey<T> key) |
<T> T |
AbstractFactoryManager.setAttribute(AttributeRepository.AttributeKey<T> key,
T value) |
Modifier and Type | Method and Description |
---|---|
<T> T |
AbstractFactoryManager.computeAttributeIfAbsent(AttributeRepository.AttributeKey<T> key,
Function<? super AttributeRepository.AttributeKey<T>,? extends T> resolver) |
Modifier and Type | Method and Description |
---|---|
default <T> T |
Session.resolveAttribute(AttributeRepository.AttributeKey<T> key) |
static <T> T |
Session.resolveAttribute(Session session,
AttributeRepository.AttributeKey<T> key)
Attempts to use the session's attribute, if not found then tries the factory manager
|
Modifier and Type | Method and Description |
---|---|
Collection<AttributeRepository.AttributeKey<?>> |
SessionHelper.attributeKeys() |
Modifier and Type | Method and Description |
---|---|
<T> T |
SessionHelper.computeAttributeIfAbsent(AttributeRepository.AttributeKey<T> key,
Function<? super AttributeRepository.AttributeKey<T>,? extends T> resolver) |
<T> T |
SessionHelper.getAttribute(AttributeRepository.AttributeKey<T> key) |
<T> T |
SessionHelper.removeAttribute(AttributeRepository.AttributeKey<T> key) |
<T> T |
SessionHelper.setAttribute(AttributeRepository.AttributeKey<T> key,
T value) |
Modifier and Type | Method and Description |
---|---|
<T> T |
SessionHelper.computeAttributeIfAbsent(AttributeRepository.AttributeKey<T> key,
Function<? super AttributeRepository.AttributeKey<T>,? extends T> resolver) |
Modifier and Type | Field and Description |
---|---|
static AttributeRepository.AttributeKey<Map<PublicKey,Boolean>> |
CachingPublicKeyAuthenticator.CACHE_ATTRIBUTE
The
AttributeKey
used to store the cached authentication results on the session instance |
Modifier and Type | Method and Description |
---|---|
Collection<AttributeRepository.AttributeKey<?>> |
Handle.attributeKeys() |
Modifier and Type | Method and Description |
---|---|
<T> T |
Handle.computeAttributeIfAbsent(AttributeRepository.AttributeKey<T> key,
Function<? super AttributeRepository.AttributeKey<T>,? extends T> resolver) |
<T> T |
Handle.getAttribute(AttributeRepository.AttributeKey<T> key) |
<T> T |
Handle.removeAttribute(AttributeRepository.AttributeKey<T> key) |
<T> T |
Handle.setAttribute(AttributeRepository.AttributeKey<T> key,
T value) |
Modifier and Type | Method and Description |
---|---|
<T> T |
Handle.computeAttributeIfAbsent(AttributeRepository.AttributeKey<T> key,
Function<? super AttributeRepository.AttributeKey<T>,? extends T> resolver) |
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.