Fix up comnpile issue
This commit is contained in:
parent
f47597d2ec
commit
deae820ebe
|
@ -38,6 +38,13 @@ public class RestulfulServerConfiguration {
|
|||
private IServerAddressStrategy serverAddressStrategy;
|
||||
private String conformanceDate;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public RestulfulServerConfiguration() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the resourceBindings
|
||||
* @return the resourceBindings
|
||||
|
|
|
@ -72,7 +72,6 @@ public class ServerConformanceProvider implements IServerConformanceProvider<Con
|
|||
private IdentityHashMap<OperationMethodBinding, String> myOperationBindingToName;
|
||||
private HashMap<String, List<OperationMethodBinding>> myOperationNameToBindings;
|
||||
private String myPublisher = "Not provided";
|
||||
|
||||
private RestulfulServerConfiguration myServerConfiguration;
|
||||
|
||||
/*
|
||||
|
@ -595,10 +594,15 @@ public class ServerConformanceProvider implements IServerConformanceProvider<Con
|
|||
myPublisher = thePublisher;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRestfulServer(RestfulServer theRestfulServer) {
|
||||
myServerConfiguration = theRestfulServer.createConfiguration();
|
||||
}
|
||||
|
||||
RestulfulServerConfiguration getServerConfiguration() {
|
||||
return myServerConfiguration;
|
||||
}
|
||||
|
||||
private void sortRuntimeSearchParameters(List<RuntimeSearchParam> searchParameters) {
|
||||
Collections.sort(searchParameters, new Comparator<RuntimeSearchParam>() {
|
||||
@Override
|
||||
|
|
|
@ -568,11 +568,12 @@ public class ServerConformanceProviderDstu3Test {
|
|||
|
||||
RestfulServer rsNoType = new RestfulServer(ourCtx);
|
||||
rsNoType.registerProvider(new SearchProviderWithListNoType());
|
||||
ServerConformanceProvider sc = new ServerConformanceProvider(rsNoType);
|
||||
rsNoType.setServerConformanceProvider(sc);
|
||||
ServerConformanceProvider scNoType = new ServerConformanceProvider(rsNoType);
|
||||
rsNoType.setServerConformanceProvider(scNoType);
|
||||
rsNoType.init(createServletConfig());
|
||||
|
||||
Conformance conformance = sc.getServerConformance(createHttpServletRequest());
|
||||
scNoType.getServerConfiguration().setConformanceDate("2011-02-22T11:22:33Z");
|
||||
|
||||
Conformance conformance = scNoType.getServerConformance(createHttpServletRequest());
|
||||
String confNoType = ourCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(conformance);
|
||||
ourLog.info(confNoType);
|
||||
|
||||
|
@ -581,6 +582,7 @@ public class ServerConformanceProviderDstu3Test {
|
|||
ServerConformanceProvider scWithType = new ServerConformanceProvider(rsWithType);
|
||||
rsWithType.setServerConformanceProvider(scWithType);
|
||||
rsWithType.init(createServletConfig());
|
||||
scWithType.getServerConfiguration().setConformanceDate("2011-02-22T11:22:33Z");
|
||||
|
||||
Conformance conformanceWithType = scWithType.getServerConformance(createHttpServletRequest());
|
||||
String confWithType = ourCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(conformanceWithType);
|
||||
|
|
Loading…
Reference in New Issue