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.
|
* 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";
|
public static final String REQUEST_START_TIME = RestfulServer.class.getName() + "REQUEST_START_TIME";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default setting for {@link #setETagSupport(ETagSupportEnum) ETag Support}: {@link ETagSupportEnum#ENABLED}
|
* 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);
|
setInterceptorService(theInterceptorService);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 5.5.0
|
||||||
|
*/
|
||||||
|
protected ConformanceMethodBinding getServerConformanceMethod() {
|
||||||
|
return myServerConformanceMethod;
|
||||||
|
}
|
||||||
|
|
||||||
private void addContentLocationHeaders(RequestDetails theRequest, HttpServletResponse servletResponse, MethodOutcome response, String resourceName) {
|
private void addContentLocationHeaders(RequestDetails theRequest, HttpServletResponse servletResponse, MethodOutcome response, String resourceName) {
|
||||||
if (response != null && response.getId() != null) {
|
if (response != null && response.getId() != null) {
|
||||||
addLocationHeader(theRequest, servletResponse, response, Constants.HEADER_LOCATION, resourceName);
|
addLocationHeader(theRequest, servletResponse, response, Constants.HEADER_LOCATION, resourceName);
|
||||||
|
@ -348,14 +354,14 @@ public class RestfulServer extends HttpServlet implements IRestfulServer<Servlet
|
||||||
myResourceNameToBinding
|
myResourceNameToBinding
|
||||||
.values()
|
.values()
|
||||||
.stream()
|
.stream()
|
||||||
.flatMap(t->t.getMethodBindings().stream())
|
.flatMap(t -> t.getMethodBindings().stream())
|
||||||
.forEach(t->t.close());
|
.forEach(t -> t.close());
|
||||||
myGlobalBinding
|
myGlobalBinding
|
||||||
.getMethodBindings()
|
.getMethodBindings()
|
||||||
.forEach(t->t.close());
|
.forEach(t -> t.close());
|
||||||
myServerBinding
|
myServerBinding
|
||||||
.getMethodBindings()
|
.getMethodBindings()
|
||||||
.forEach(t->t.close());
|
.forEach(t -> t.close());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2033,7 +2039,7 @@ public class RestfulServer extends HttpServlet implements IRestfulServer<Servlet
|
||||||
String message = theFhirContext.getLocalizer().getMessage(RestfulServer.class, "unknownMethod", theRequestType.name(), requestPath, requestDetails.getParameters().keySet());
|
String message = theFhirContext.getLocalizer().getMessage(RestfulServer.class, "unknownMethod", theRequestType.name(), requestPath, requestDetails.getParameters().keySet());
|
||||||
|
|
||||||
IBaseOperationOutcome oo = OperationOutcomeUtil.newInstance(theFhirContext);
|
IBaseOperationOutcome oo = OperationOutcomeUtil.newInstance(theFhirContext);
|
||||||
OperationOutcomeUtil.addIssue(theFhirContext, oo, "error", message, null, "not-supported");
|
OperationOutcomeUtil.addIssue(theFhirContext, oo, "error", message, null, "not-supported");
|
||||||
|
|
||||||
throw new InvalidRequestException(message, oo);
|
throw new InvalidRequestException(message, oo);
|
||||||
}
|
}
|
||||||
|
|
|
@ -110,7 +110,7 @@ public class ConformanceMethodBinding extends BaseResourceReturningMethodBinding
|
||||||
* @see Metadata#cacheMillis()
|
* @see Metadata#cacheMillis()
|
||||||
* @since 4.1.0
|
* @since 4.1.0
|
||||||
*/
|
*/
|
||||||
private void setCacheMillis(long theCacheMillis) {
|
public void setCacheMillis(long theCacheMillis) {
|
||||||
myCacheMillis = theCacheMillis;
|
myCacheMillis = theCacheMillis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue