/** * Copyright 2011 OpenDDR LLC * This software is distributed under the terms of the GNU Lesser General Public License. * * * This file is part of OpenDDR Simple APIs. * OpenDDR Simple APIs is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, version 3 of the License. * * OpenDDR Simple APIs is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with Simple APIs. If not, see . * */ using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace W3c.Ddr.Simple { /// /// Evidence is the general term applied to providing information to the DDR to allow it to determine the Delivery Context. /// /// /// In the DDR Simple API implementations must support Evidence consisting of HTTP Header name and value pairs. Implementations must treat HTTP Header names in a case insensitive manner. HTTP Header values may be case sensitive, depending on the header concerned. Other types of Evidence may be supported by implementations. They are not defined in http://www.w3.org/TR/DDR-Simple-API/ Recommendation. /// public interface IEvidence { /// /// Add Evidence /// /// Header name /// Header value void Put(String key, String value); /// /// Query Evidence /// /// Header name /// Return true if requested evidence exist bool Exist(String key); /// /// Retrieve Evidence /// /// Header name /// Return the value of the Evidence identified by key String Get(String key); } }