Widen access for utility methods
This commit is contained in:
parent
0ebf274d36
commit
9f77c57e5a
|
@ -124,7 +124,6 @@ public class RestfulServer extends HttpServlet implements IRestfulServer<Servlet
|
|||
* with this key. The value will be a Java {@link Date} with the time that request processing began.
|
||||
*/
|
||||
public static final String REQUEST_START_TIME = RestfulServer.class.getName() + "REQUEST_START_TIME";
|
||||
|
||||
/**
|
||||
* Default setting for {@link #setETagSupport(ETagSupportEnum) ETag Support}: {@link ETagSupportEnum#ENABLED}
|
||||
*/
|
||||
|
@ -196,6 +195,13 @@ public class RestfulServer extends HttpServlet implements IRestfulServer<Servlet
|
|||
setInterceptorService(theInterceptorService);
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 5.5.0
|
||||
*/
|
||||
protected ConformanceMethodBinding getServerConformanceMethod() {
|
||||
return myServerConformanceMethod;
|
||||
}
|
||||
|
||||
private void addContentLocationHeaders(RequestDetails theRequest, HttpServletResponse servletResponse, MethodOutcome response, String resourceName) {
|
||||
if (response != null && response.getId() != null) {
|
||||
addLocationHeader(theRequest, servletResponse, response, Constants.HEADER_LOCATION, resourceName);
|
||||
|
@ -348,14 +354,14 @@ public class RestfulServer extends HttpServlet implements IRestfulServer<Servlet
|
|||
myResourceNameToBinding
|
||||
.values()
|
||||
.stream()
|
||||
.flatMap(t->t.getMethodBindings().stream())
|
||||
.forEach(t->t.close());
|
||||
.flatMap(t -> t.getMethodBindings().stream())
|
||||
.forEach(t -> t.close());
|
||||
myGlobalBinding
|
||||
.getMethodBindings()
|
||||
.forEach(t->t.close());
|
||||
.forEach(t -> t.close());
|
||||
myServerBinding
|
||||
.getMethodBindings()
|
||||
.forEach(t->t.close());
|
||||
.forEach(t -> t.close());
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ public class ConformanceMethodBinding extends BaseResourceReturningMethodBinding
|
|||
* @see Metadata#cacheMillis()
|
||||
* @since 4.1.0
|
||||
*/
|
||||
private void setCacheMillis(long theCacheMillis) {
|
||||
public void setCacheMillis(long theCacheMillis) {
|
||||
myCacheMillis = theCacheMillis;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue