1 23 24 28 29 package com.sun.enterprise.tools.upgrade.transform.elements; 30 31 35 import java.text.SimpleDateFormat ; 36 import java.util.logging.Level ; 37 import org.w3c.dom.Element ; 38 39 40 public class AccessLog extends GenericElement { 41 42 43 public AccessLog() { 44 } 45 50 public void transform(Element element, Element parentSource, Element parentResult){ 51 super.transform(element,parentSource,parentResult); 52 String rotationSuffix = element.getAttribute("rotation-suffix"); 53 if(rotationSuffix.equals("%YYYY;%MM;%DD;-%hh;h%mm;m%ss;s")) { 54 return; 55 } 56 try { 57 new SimpleDateFormat (rotationSuffix); 58 }catch(IllegalArgumentException iae) { 59 logger.log(Level.WARNING, stringManager.getString("upgrade.transfrorm.incompatible.rotation-suffix.format",rotationSuffix)); 60 }catch(NullPointerException npe) { 61 62 } 63 } 64 65 } 66 | Popular Tags |