| java.lang.Object org.apache.velocity.tools.view.ImportSupport
All known Subclasses: org.apache.velocity.tools.struts.TilesTool, org.apache.velocity.tools.view.tools.ImportTool,
ImportSupport | abstract public class ImportSupport (Code) | | Provides methods to import arbitrary local or remote resources as strings.
Based on ImportSupport from the JSTL taglib by Shawn Bayern
author: Marino A. Jonsson since: VelocityTools 1.1 version: $Revision: 477914 $ $Date: 2006-11-21 13:52:11 -0800 (Tue, 21 Nov 2006) $ |
Inner Class :protected static class SafeClosingHttpURLConnectionReader extends Reader | |
DEFAULT_ENCODING | final protected static String DEFAULT_ENCODING(Code) | | Default character encoding for response.
|
LOG | final protected static Log LOG(Code) | | |
VALID_SCHEME_CHARS | final protected static String VALID_SCHEME_CHARS(Code) | | |
getContentTypeAttribute | public static String getContentTypeAttribute(String input, String name)(Code) | | Get the value associated with a content-type attribute.
Syntax defined in RFC 2045, section 5.1.
Parameters: input - the string containing the attributes Parameters: name - the name of the content-type attribute the value associated with a content-type attribute |
isAbsoluteUrl | public static boolean isAbsoluteUrl(String url)(Code) | | Returns true if our current URL is absolute,
false otherwise.
Parameters: url - the url to check out true if the url is absolute |
stripSession | public static String stripSession(String url)(Code) | | Strips a servlet session ID from url. The session ID
is encoded as a URL "path parameter" beginning with "jsessionid=".
We thus remove anything we find between ";jsessionid=" (inclusive)
and either EOS or a subsequent ';' (exclusive).
Parameters: url - the url to strip the session id from the stripped url |
|
|