package hirondelle.web4j.config;

import java.util.*;
import hirondelle.web4j.ApplicationInfo;
import hirondelle.web4j.util.Consts;

/**
* Implementation of {@link ApplicationInfo}, required by WEB4J.
*/
public final class AppInfo implements ApplicationInfo {
  
  public String getVersion(){    
    return "3.10.0.0";  
  }
  
  public Date getBuildDate(){
    Calendar calendar = new GregorianCalendar();
    calendar.set(2008, 8, 20, 0, 0, 0); //0-based month, 0s for h:m:s
    return calendar.getTime();
  }
  
  public String getName(){
    return "Fish And Chips Club";
  }
  
  public String getAuthor(){
    return "Hirondelle Systems";
  }
  
  public String getLink(){
    return "http://www.web4j.com/";
  }
  
  public String getMessage(){
    return "Uses web4j.jar version 3.10.0";
  }

  /**
  * Return {@link #getName()} + {@link #getVersion()}. 
  */
  @Override public String toString(){
    return getName() + Consts.SPACE + getVersion();
  }
}