java.lang.Object
org.wymiwyg.mies.server.install.ServerConfigLocalizer
- public class ServerConfigLocalizer
- extends java.lang.Object
This class is used to adapt the distribution file containing mies:ThisServer
to a site specific URL.
If a file in the target location already exists, this class extracts the existing
URI, otherwise a new URI is generated. The rest of the existing file
is ignored.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static org.apache.log4j.Logger logger
ServerConfigLocalizer
public ServerConfigLocalizer()
main
public static void main(java.lang.String[] args)
throws RDFException,
java.io.IOException
rename
private static void rename(java.io.File sourceFile,
java.io.File targetFile,
java.lang.String newName)
throws RDFException,
java.io.IOException
createNewURI
public static java.lang.String createNewURI()
getServerURIFromFile
public static java.lang.String getServerURIFromFile(java.io.File configFile)
throws RDFException,
java.io.IOException
getServerURIFromModel
public static java.lang.String getServerURIFromModel(Model model)
throws RDFException