Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.wymiwyg.mies.server.install
Class ServerConfigLocalizer  view ServerConfigLocalizer download ServerConfigLocalizer.java

java.lang.Object
  extended byorg.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.


Field Summary
private static org.apache.log4j.Logger logger
           
 
Constructor Summary
ServerConfigLocalizer()
           
 
Method Summary
static java.lang.String createNewURI()
           
static java.lang.String getServerURIFromFile(java.io.File configFile)
           
static java.lang.String getServerURIFromModel(Model model)
           
static void main(java.lang.String[] args)
           
private static void rename(java.io.File sourceFile, java.io.File targetFile, java.lang.String newName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.log4j.Logger logger
Constructor Detail

ServerConfigLocalizer

public ServerConfigLocalizer()
Method Detail

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