/** * Has the specified header been set already in this response? * * @param name Name of the header to check */ public boolean containsHeader(String name) { return response.containsHeader(name); }
/** * Has the specified header been set already in this response? * * @param name Name of the header to check */ public boolean containsHeader(String name) { checkResponse(); return response.containsHeader(name); }
/** * Has the specified header been set already in this response? * * @param name Name of the header to check */ public boolean containsHeader(String name) { checkResponse(); return response.containsHeader(name); }
if (!response.containsHeader("Date")) { response.addHeader("Date", FastHttpDateFormat.getCurrentDate());
if (! response.containsHeader("Date")){ String date = FastHttpDateFormat.getCurrentDate(); response.addHeader("Date", date);