public class NetworkApplicationInformation extends Object
This class encapsulates information about DICOM network devices.
Modifier and Type | Field and Description |
---|---|
static String |
propertyName_DicomRemoteAEs |
static String |
resourceName_PublicStorageSCPs |
Constructor and Description |
---|
NetworkApplicationInformation()
Construct an empty container for properties of DICOM network devices.
|
NetworkApplicationInformation(Properties properties)
Extract the DICOM network properties from the supplied properties.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String localName,
ApplicationEntity ae)
Add a new AE.
|
void |
add(String localName,
String aeTitle,
String hostname,
int port,
String queryModel,
String primaryDeviceType)
Add a new AE.
|
void |
addAll(NetworkApplicationInformation infoToAdd)
Add all the entries in the supplied map except any that are already present.
|
void |
addAll(Properties properties)
Extract the DICOM network properties from the supplied properties.
|
void |
addPublicStorageSCPs() |
ApplicationEntityMap |
getApplicationEntityMap()
Return the application entity map.
|
String |
getApplicationEntityTitleFromLocalName(String localName)
Find the AET an application entity given its local name.
|
String |
getLDIFRepresentation(String rootDN)
Make an LDAP LDIF representation of the network information.
|
Set |
getListOfApplicationEntityTitlesOfApplicationEntities()
Return the set of local names of application entities.
|
Set |
getListOfLocalNamesOfApplicationEntities()
Return the set of local names of application entities.
|
String |
getLocalNameFromApplicationEntityTitle(String aet)
Find the local name of an application entity given its AET.
|
Properties |
getProperties(Properties properties)
Retrieve the DICOM network properties.
|
void |
remove(String localName)
Remove an AE.
|
void |
removeAll()
Completely empty all information.
|
String |
toString() |
public static final String propertyName_DicomRemoteAEs
public static final String resourceName_PublicStorageSCPs
public NetworkApplicationInformation()
Construct an empty container for properties of DICOM network devices.
public NetworkApplicationInformation(Properties properties) throws DicomNetworkException
Extract the DICOM network properties from the supplied properties.
properties
- DicomNetworkException
public void add(String localName, ApplicationEntity ae) throws DicomNetworkException
Add a new AE.
localName
- ae
- DicomNetworkException
- if local name or AET already used, or either is null or emptypublic void add(String localName, String aeTitle, String hostname, int port, String queryModel, String primaryDeviceType) throws DicomNetworkException
Add a new AE.
localName
- aeTitle
- port
- queryModel
- null if unknownprimaryDeviceType
- null if unknownDicomNetworkException
- if local name or AET already used, or either is null or emptypublic void addAll(NetworkApplicationInformation infoToAdd)
Add all the entries in the supplied map except any that are already present.
infoToAdd
- the information to addpublic void addAll(Properties properties) throws DicomNetworkException
Extract the DICOM network properties from the supplied properties.
properties
- DicomNetworkException
public void addPublicStorageSCPs() throws IOException, DicomNetworkException
IOException
DicomNetworkException
public ApplicationEntityMap getApplicationEntityMap()
Return the application entity map.
public String getApplicationEntityTitleFromLocalName(String localName)
Find the AET an application entity given its local name.
localName
- the local name of the AEpublic String getLDIFRepresentation(String rootDN)
Make an LDAP LDIF representation of the network information.
rootDN
- the root distinguished name to attach the DICOM configuration information belowldapadd
public Set getListOfApplicationEntityTitlesOfApplicationEntities()
Return the set of local names of application entities.
public Set getListOfLocalNamesOfApplicationEntities()
Return the set of local names of application entities.
public String getLocalNameFromApplicationEntityTitle(String aet)
Find the local name of an application entity given its AET.
aet
- the application entity titlepublic Properties getProperties(Properties properties)
Retrieve the DICOM network properties.
param properties the existing properties to add to (removing any properties already there), or null if nonepublic void remove(String localName)
Remove an AE.
localName
- public void removeAll()
Completely empty all information.