Skip to content
Snippets Groups Projects

Start 0.8.1 SNAPSHOT release

Merged Martin Lowe requested to merge malowe/eclipsefdn-api-common:malowe/main/0.8.0 into main
19 files
+ 249
275
Compare changes
  • Side-by-side
  • Inline
Files
19
@@ -14,7 +14,6 @@ package org.eclipsefoundation.core.model;
import java.net.URI;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -31,7 +30,6 @@ import javax.ws.rs.core.UriInfo;
import org.apache.commons.lang3.StringUtils;
import org.eclipsefoundation.core.config.PaginationConfig;
import org.eclipsefoundation.core.namespace.DefaultUrlParameterNames;
import org.eclipsefoundation.core.namespace.DeprecatedHeader;
import org.eclipsefoundation.core.namespace.RequestHeaderNames;
import org.eclipsefoundation.core.namespace.UrlParameterNamespace.UrlParameter;
import org.eclipsefoundation.core.request.CacheBypassFilter;
@@ -248,20 +246,6 @@ public class DefaultRequestWrapper implements RequestWrapper {
return request.getHeader(RequestHeaderNames.ACCESS_VERSION);
}
/**
* Set the deprecation header in the response object for the client.
*
* @param d the date that the endpoint was deprecated
* @param msg information about the deprecation
*/
@Override
public void setDeprecatedHeader(Date d, String msg) {
if (getResponse() != null) {
getResponse().setHeader(DeprecatedHeader.NAME, DeprecatedHeader.getValue(d, msg));
}
headers.add(DeprecatedHeader.NAME, DeprecatedHeader.getValue(d, msg));
}
/**
* Set a header in the response object for the client.
*
Loading