- java.lang.Object
-
- com.aoapps.taglib.Functions
-
public final class Functions extends Object
Tag library function implementations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
addLastModified(String url)
static String
encodeURL(String url)
static String
getAbsolutePath(String relPath)
static String
getAbsoluteURL(String relPath)
static String
getDecimalTimeLength(Long millis)
static long
getLastModified(String url)
Gets the lastModified or0
when not known.static String
getProjectVersion(String lib, String groupId, String artifactId, String def)
static boolean
isForwarded()
static boolean
isRtl()
static String
join(Iterable<?> iter, String separator)
static String
message(String key)
-
-
-
Method Detail
-
getLastModified
public static long getLastModified(String url) throws MalformedURLException, URISyntaxException
Gets the lastModified or0
when not known.
-
addLastModified
public static String addLastModified(String url) throws MalformedURLException
- Throws:
MalformedURLException
-
getAbsolutePath
public static String getAbsolutePath(String relPath) throws MalformedURLException
-
getProjectVersion
public static String getProjectVersion(String lib, String groupId, String artifactId, String def) throws IOException
- Throws:
IOException
-
isForwarded
public static boolean isForwarded()
-
isRtl
public static boolean isRtl()
-
message
public static String message(String key) throws JspTagException
- Throws:
JspTagException
-
-