FileDocCategorySizeDatePackage
AccessLog.javaAPI DocGlassfish v2 API3367Wed Jul 11 10:00:58 BST 2007com.sun.enterprise.tools.upgrade.transform.elements

AccessLog

public class AccessLog extends GenericElement
author
Hans Hrasna

Fields Summary
Constructors Summary
public AccessLog()
Creates a new instance of ApplicationRef

    
Methods Summary
public voidtransform(org.w3c.dom.Element element, org.w3c.dom.Element parentSource, org.w3c.dom.Element parentResult)
element - application-ref parentSource - server or cluster parentResult - server or cluster

            super.transform(element,parentSource,parentResult);
            String rotationSuffix = element.getAttribute("rotation-suffix");
            logger.log(Level.FINE, stringManager.getString("upgrade.transform.accesslog.rotationSuffix", rotationSuffix));
            if(rotationSuffix.equals("%YYYY;%MM;%DD;-%hh;h%mm;m%ss;s")) {
                return;
            }
            try {
                new SimpleDateFormat(rotationSuffix);
            }catch(IllegalArgumentException iae) {
                logger.log(Level.WARNING, stringManager.getString("upgrade.transfrorm.incompatible.rotation-suffix.format",rotationSuffix));
            }catch(NullPointerException npe) {
                logger.log(Level.WARNING, stringManager.getString("upgrade.transfrorm.incompatible.rotation-suffix.format",npe.getMessage()));
            }