1 15 package org.apache.tapestry.asset; 16 17 import java.io.IOException ; 18 19 import org.apache.hivemind.Resource; 20 import org.apache.hivemind.impl.MessageFormatter; 21 22 26 class AssetMessages 27 { 28 protected static MessageFormatter _formatter = new MessageFormatter(AssetMessages.class, 29 "AssetStrings"); 30 31 static String missingAsset(String path, Resource resource) 32 { 33 return _formatter.format("missing-asset", path, resource); 34 } 35 36 static String noSuchResource(String resourcePath) 37 { 38 return _formatter.format("no-such-resource", resourcePath); 39 } 40 41 static String unableToReadResource(String resourcePath, IOException cause) 42 { 43 return _formatter.format("unable-to-read-resource", resourcePath, cause); 44 } 45 46 static String md5Mismatch(String path) 47 { 48 return _formatter.format("md5-mismatch", path); 49 } 50 51 static String exceptionReportTitle(String path) 52 { 53 return _formatter.format("exception-report-title", path); 54 } 55 } | Popular Tags |