public class RSRemoteCatalogResolver extends java.lang.Object implements DTSCascadeURIResolver
The idea is that if a file is not in the ZIP Catalog and not in the XML Catalog this resolver will try to obtain a reference of the target file. The file is not locally installed so it will be required to go throw the Internet or open a file connection. In case of using the Internet, this class can capture the request and do further work:
Modifier and Type | Class and Description |
---|---|
static class |
RSRemoteCatalogResolver.CatalogFormat
The Enum CatalogFormat.
|
static class |
RSRemoteCatalogResolver.StaticCatalogEntry
This is the object model representation of an entry in the static catalog.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IGNOREALLREQUESTS
If this property is set to "true" this catalog will be disabled and no requests about the StaticCatalog
file will be ever sent.
|
static java.lang.String |
LocalCopyMasterCatalogFileName
The local copy file name.
|
static java.lang.String |
StaticCatalogNamespace
The Static catalog namespace.
|
static java.lang.String |
SYNCHRONIZEREMOTECATALOG
The synchronizeremotecatalog.
|
Constructor and Description |
---|
RSRemoteCatalogResolver(RSRemoteCatalogGUI theGUI,
javax.xml.transform.URIResolver nextResolver)
Creates an instance of this resolver and sets the resolver passed in as the next resolver to be used
Also, sets the instance of the class that will implement all dialogs with the
end user in order to interact and ask questions and obtain feedback.
|
Modifier and Type | Method and Description |
---|---|
void |
endDTSDiscovery()
End DTS discovery.
|
static java.util.Collection<RSRemoteCatalogResolver.StaticCatalogEntry> |
getEntries()
Gets the entries.
|
static RSRemoteCatalogResolver.StaticCatalogEntry |
getEntry(java.lang.String id)
Returns the entry that corresponds with the id passed in as parameter
if no entry exists in the catalog with that id, then null is returned.
|
static java.util.Date |
getLocalFileLastTimeUpdated()
Gets the local file last time updated.
|
javax.xml.transform.URIResolver |
getNextResolver()
Gets the next resolver.
|
static java.util.Date |
getRemoteFileLastTimeUpdated()
Gets the remote file last time updated.
|
static boolean |
getSynchronizeRemoteCatalog()
Gets the synchronize remote catalog.
|
static java.lang.Object |
getVersion(java.lang.String packageID)
Access to the version number of a package in the remote catalog
returns the version number or 0 if it does not exists.
|
static void |
installEntry(java.lang.String id,
InstallCallBack gui)
Install entry.
|
static void |
processNewFile(InstallCallBack installCallback)
Process new file.
|
static void |
removeIgnoreMessages()
Removes the ignore messages.
|
javax.xml.transform.Source |
resolve(java.lang.String href,
java.lang.String base)
Resolve.
|
void |
setNextResolver(javax.xml.transform.URIResolver newNextResolver)
Sets the next resolver.
|
static boolean |
setSynchronizeRemoteCatalog(boolean newValue)
Sets the synchronize remote catalog.
|
void |
startDTSDiscovery()
Start DTS discovery.
|
static void |
updateRemoteCatalog()
This method physically copies the remote file into the local
destination.
|
public static final java.lang.String LocalCopyMasterCatalogFileName
public static final java.lang.String IGNOREALLREQUESTS
public static final java.lang.String SYNCHRONIZEREMOTECATALOG
public static final java.lang.String StaticCatalogNamespace
public RSRemoteCatalogResolver(RSRemoteCatalogGUI theGUI, javax.xml.transform.URIResolver nextResolver)
Also, sets the instance of the class that will implement all dialogs with the end user in order to interact and ask questions and obtain feedback.
theGUI
- the the guinextResolver
- the next resolverpublic static java.lang.Object getVersion(java.lang.String packageID)
packageID
- the package idpublic static void installEntry(java.lang.String id, InstallCallBack gui)
id
- the idgui
- the guipublic static java.util.Collection<RSRemoteCatalogResolver.StaticCatalogEntry> getEntries()
public static java.util.Date getLocalFileLastTimeUpdated()
public static java.util.Date getRemoteFileLastTimeUpdated()
public static void removeIgnoreMessages()
public static boolean getSynchronizeRemoteCatalog()
public static boolean setSynchronizeRemoteCatalog(boolean newValue)
newValue
- the new valuepublic javax.xml.transform.Source resolve(java.lang.String href, java.lang.String base) throws javax.xml.transform.TransformerException
resolve
in interface javax.xml.transform.URIResolver
href
- the hrefbase
- the basejavax.xml.transform.TransformerException
- the transformer exceptionpublic javax.xml.transform.URIResolver getNextResolver()
getNextResolver
in interface DTSCascadeURIResolver
public void setNextResolver(javax.xml.transform.URIResolver newNextResolver)
setNextResolver
in interface DTSCascadeURIResolver
newNextResolver
- the new next resolverpublic static void updateRemoteCatalog() throws java.io.IOException
java.io.IOException
- Signals that an I/O exception has occurred.public static void processNewFile(InstallCallBack installCallback)
installCallback
- the install callbackpublic static RSRemoteCatalogResolver.StaticCatalogEntry getEntry(java.lang.String id)
id
- the catalog entry idpublic void startDTSDiscovery()
startDTSDiscovery
in interface DTSCascadeURIResolver
public void endDTSDiscovery()
endDTSDiscovery
in interface DTSCascadeURIResolver
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa