| java.lang.Object org.openlaszlo.iv.flash.url.IVUrl
All known Subclasses: org.openlaszlo.iv.flash.url.JSUrl, org.openlaszlo.iv.flash.url.JDBCUrl, org.openlaszlo.iv.flash.url.BufferedUrl, org.openlaszlo.iv.flash.url.FilterUrl, org.openlaszlo.iv.flash.url.JavaUrl, org.openlaszlo.iv.flash.url.URLUrl, org.openlaszlo.iv.flash.url.FileUrl,
IVUrl | abstract public class IVUrl (Code) | | Abstract generator url
Usage example:
// creates url to file 'data.txt' in the same directory where 'file' is
IVUrl url = IVUrl.newUrl( "data.txt", file );
// creates url to http://server/getdata.cgi
IVUrl url = IVUrl.newUrl( "http://server/getdata.cgi?parm=text" );
|
arrayToStream | protected InputStream arrayToStream(String[][] data)(Code) | | Converts specified two-dimensional array of strings into InputStream
Parameters: data - specified array input stream |
getEncoding | public String getEncoding()(Code) | | Returns encoding taken from parameters of this url if it
was specified.
specified in this url encoding or null |
getName | abstract public String getName()(Code) | | Returns name of the url.
name of this url |
getParameter | public String getParameter(String name)(Code) | | Returns parameter of the url by name
Parameters are standard url parameters like 'parm' in: http://server/getdata.cgi?parm=text
Parameters: name - parameter name parameter value or null |
getRef | public String getRef()(Code) | | Returns url reference (the part of url after #)
reference |
hasDataReady | public boolean hasDataReady()(Code) | | Returns true if this url can provide data in name,value format right away
without parsing input stream. If returns true must implement
IVUrl.getData too.
See Also: IVUrl.getData |
lastModified | public long lastModified()(Code) | | Returns timestamp of last time this url was modified
last modified time |
parse | protected void parse(String s) throws IVException(Code) | | Parses parameters of url-string
Parameters are pairs: name=value, separated by ampersand
Parameters: s - url |
parse | protected void parse(String s, int idx)(Code) | | Parses parameters of url-string begining after the specified index (usually index of '?')
Parameters are pairs: name=value, separated by ampersand
Parameters: s - url |
refresh | public void refresh()(Code) | | Refreshes this url. Updates last modified.
|
|
|