public class ServerCapabilityStatementProvider extends Object implements IServerConformanceProvider<CapabilityStatement>
Note: This class is safe to extend, but it is important to note that the same instance of CapabilityStatement is always returned unless setCache(boolean) is called with a value of
false. This means that if you are adding anything to the returned conformance instance on each call you should call setCache(false) in your provider constructor.
| Constructor and Description |
|---|
ServerCapabilityStatementProvider()
No-arg constructor and seetter so that the ServerConfirmanceProvider can be Spring-wired with the RestfulService avoiding the potential reference cycle that would happen.
|
ServerCapabilityStatementProvider(RestfulServer theRestfulServer)
Constructor
|
ServerCapabilityStatementProvider(RestulfulServerConfiguration theServerConfiguration)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPublisher()
Gets the value of the "publisher" that will be placed in the generated conformance statement.
|
CapabilityStatement |
getServerConformance(javax.servlet.http.HttpServletRequest theRequest) |
void |
initializeOperations() |
OperationDefinition |
readOperationDefinition(IdType theId) |
void |
setCache(boolean theCache)
Sets the cache property (default is true).
|
void |
setPublisher(String thePublisher)
Sets the value of the "publisher" that will be placed in the generated conformance statement.
|
void |
setRestfulServer(RestfulServer theRestfulServer) |
public ServerCapabilityStatementProvider()
public ServerCapabilityStatementProvider(RestfulServer theRestfulServer)
public ServerCapabilityStatementProvider(RestulfulServerConfiguration theServerConfiguration)
public String getPublisher()
public void setPublisher(String thePublisher)
public CapabilityStatement getServerConformance(javax.servlet.http.HttpServletRequest theRequest)
getServerConformance in interface IServerConformanceProvider<CapabilityStatement>public void initializeOperations()
public OperationDefinition readOperationDefinition(IdType theId)
public void setCache(boolean theCache)
See the class documentation for an important note if you are extending this class
public void setRestfulServer(RestfulServer theRestfulServer)
setRestfulServer in interface IServerConformanceProvider<CapabilityStatement>Copyright © 2014–2018 University Health Network. All rights reserved.