package org.odata4j.producer;
import java.util.List;
import java.util.Locale;
/**
* Carries the request headers into a producer
*/
public interface ODataHeadersContext {
/**
* Get an Iterable containing all request header field names.
* @return the Iterable
*/
public Iterable<String> getRequestHeaderFieldNames();
/**
* Get an Iterable of all values for the given header field name.
* @param fieldName
* @return the Iterable
*/
public Iterable<String> getRequestHeaderValues(String fieldName);
/**
* Get the value of a header, makes things easier when you are only
* expecting one.
* @param fieldName
* @return first value of the given header, null if the header is not present
*/
public String getRequestHeaderValue(String fieldName);
/**
* Get the list of languages that are acceptable for the response.
*
* @return The list of acceptable languages for the response
*/
public List<Locale> getAcceptableLanguages();
}