|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Evidence
An interface representing evidence that is to be supplied to getPropertyValue
or getPropertyValues methods of Service
.
The purpose of Evidence is to represent available information with which to identify the delivery context.
In accordance with the minimum requirements of the DDR Simple API, this interface can support the
representation of evidence as HTTP headers.
Consumers of HTTP evidence must support case-insensitive field names as per RFC 2616 section 4.2.
Service.newHTTPEvidence()
Method Summary | |
---|---|
boolean |
exists(java.lang.String key)
True if a value for the specified key exists. |
java.lang.String |
get(java.lang.String key)
Get the value corresponding to the key. |
void |
put(java.lang.String key,
java.lang.String value)
Add a key / value pair to the collection of evidence. |
Method Detail |
---|
void put(java.lang.String key, java.lang.String value)
key
- The key that identifies an element of the evidence.value
- The value of the identified element.boolean exists(java.lang.String key)
key
- The unique key that identifies an element of the evidence.
java.lang.String get(java.lang.String key)
key
- The key that identifies an element of the evidence.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |