List of usage examples for org.apache.commons.httpclient.util DateUtil PATTERN_ASCTIME
String PATTERN_ASCTIME
To view the source code for org.apache.commons.httpclient.util DateUtil PATTERN_ASCTIME.
Click Source Link
From source file:gov.nih.nci.caintegrator.domain.application.AbstractPersistedAnalysisJob.java
/** * Retrieves the header for the toString() of subclasses. * @param type of job./* w w w .j av a 2 s. c om*/ * @return the header */ protected String retrieveHeader(String type) { String nl = "\n"; StringBuffer sb = new StringBuffer(); sb.append("Job Type: ").append(type).append(nl); sb.append("Job ID: ").append(getId()).append(nl); sb.append("Date: ").append(DateUtil.formatDate(new Date(), DateUtil.PATTERN_ASCTIME)).append(nl); if (getSubscription() != null && getSubscription().getStudy() != null) { sb.append("Study Name: ").append(getSubscription().getStudy().getShortTitleText()).append(nl); } return sb.toString(); }