/** * Removes from this list the first entry whose name equals the specified * name ignoring the case. * * @param name * The name of the entries to be removed (case sensitive). * @return false if no entry has been removed, true otherwise. */ public boolean removeFirst(String name) { return removeFirst(name, false); }
/** * Removes from this list the first entry whose name equals the specified * name ignoring the case. * * @param name * The name of the entries to be removed (case sensitive). * @return false if no entry has been removed, true otherwise. */ public boolean removeFirst(String name) { return removeFirst(name, false); }
/** * Removes from this list the first entry whose name equals the specified * name ignoring the case. * * @param name * The name of the entries to be removed (case sensitive). * @return false if no entry has been removed, true otherwise. */ public boolean removeFirst(String name) { return removeFirst(name, false); }
/** * Manipulate Restlet response headers. * * This implementation removes the Date and Server headers normally added by Restlet. * * @param response */ @Override protected void addResponseHeaders(final HttpResponse response) { super.addResponseHeaders(response); final Series<Parameter> responseHeaders = response.getHttpCall() .getResponseHeaders(); // our servlet container is adding a Date header for all responses // duplicate Date headers are not allowed by HTTP spec responseHeaders.removeFirst("Date"); // Nexus is in charge of setting the main Server header // Restlet would normally add another Server header instead of amending existing one with all products as values responseHeaders.removeFirst("Server"); }