public class NetworkApplicationInformation
extends java.lang.Object
This class encapsulates information about DICOM network devices.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
propertyName_DicomRemoteAEs |
static java.lang.String |
resourceName_PublicStorageSCPs |
Constructor and Description |
---|
NetworkApplicationInformation()
Construct an empty container for properties of DICOM network devices.
|
NetworkApplicationInformation(java.util.Properties properties)
Extract the DICOM network properties from the supplied properties.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String localName,
ApplicationEntity ae)
Add a new AE.
|
void |
add(java.lang.String localName,
java.lang.String aeTitle,
java.lang.String hostname,
int port,
java.lang.String queryModel,
java.lang.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(java.util.Properties properties)
Extract the DICOM network properties from the supplied properties.
|
void |
addPublicStorageSCPs() |
ApplicationEntityMap |
getApplicationEntityMap()
Return the application entity map.
|
java.lang.String |
getApplicationEntityTitleFromLocalName(java.lang.String localName)
Find the AET an application entity given its local name.
|
java.lang.String |
getLDIFRepresentation(java.lang.String rootDN)
Make an LDAP LDIF representation of the network information.
|
java.util.Set |
getListOfApplicationEntityTitlesOfApplicationEntities()
Return the set of local names of application entities.
|
java.util.Set |
getListOfLocalNamesOfApplicationEntities()
Return the set of local names of application entities.
|
java.lang.String |
getLocalNameFromApplicationEntityTitle(java.lang.String aet)
Find the local name of an application entity given its AET.
|
java.util.Properties |
getProperties(java.util.Properties properties)
Retrieve the DICOM network properties.
|
void |
remove(java.lang.String localName)
Remove an AE.
|
void |
removeAll()
Completely empty all information.
|
java.lang.String |
toString() |
public static final java.lang.String propertyName_DicomRemoteAEs
public static final java.lang.String resourceName_PublicStorageSCPs
public NetworkApplicationInformation()
Construct an empty container for properties of DICOM network devices.
public NetworkApplicationInformation(java.util.Properties properties) throws DicomNetworkException
Extract the DICOM network properties from the supplied properties.
properties
- DicomNetworkException
public void add(java.lang.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(java.lang.String localName, java.lang.String aeTitle, java.lang.String hostname, int port, java.lang.String queryModel, java.lang.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(java.util.Properties properties) throws DicomNetworkException
Extract the DICOM network properties from the supplied properties.
properties
- DicomNetworkException
public void addPublicStorageSCPs() throws java.io.IOException, DicomNetworkException
java.io.IOException
DicomNetworkException
public ApplicationEntityMap getApplicationEntityMap()
Return the application entity map.
public java.lang.String getApplicationEntityTitleFromLocalName(java.lang.String localName)
Find the AET an application entity given its local name.
localName
- the local name of the AEpublic java.lang.String getLDIFRepresentation(java.lang.String rootDN)
Make an LDAP LDIF representation of the network information.
rootDN
- the root distinguished name to attach the DICOM configuration information belowldapadd
public java.util.Set getListOfApplicationEntityTitlesOfApplicationEntities()
Return the set of local names of application entities.
public java.util.Set getListOfLocalNamesOfApplicationEntities()
Return the set of local names of application entities.
public java.lang.String getLocalNameFromApplicationEntityTitle(java.lang.String aet)
Find the local name of an application entity given its AET.
aet
- the application entity titlepublic java.util.Properties getProperties(java.util.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(java.lang.String localName)
Remove an AE.
localName
- public void removeAll()
Completely empty all information.
public java.lang.String toString()
toString
in class java.lang.Object