fi.hut.tml.xsmiles.mlfc.general
Class XFMUtils

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.general.XFMUtils

public class XFMUtils
extends java.lang.Object

Utility class for parsing e.g., #frames fragment

Author:
Juha

Field Summary
protected  java.lang.String baseURI
           
protected  java.util.Hashtable urlPopulators
           
 
Constructor Summary
XFMUtils(MLFC m)
          Creates the urlpopulators on creation
 
Method Summary
 java.lang.String createFramesURI()
          Create a frames URI from the uriPopulators hashtable.
 java.util.Hashtable decodeURL(java.lang.String url)
          Decodes the XFrames type URI into a hashtable of id-sourcename pairs.
 java.util.Hashtable getURIPopulators()
           
 java.util.Hashtable parseURIs(java.lang.String uriEnd)
          A little obfuscated but works like a russian car.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseURI

protected java.lang.String baseURI

urlPopulators

protected java.util.Hashtable urlPopulators
Constructor Detail

XFMUtils

public XFMUtils(MLFC m)
Creates the urlpopulators on creation

Method Detail

decodeURL

public java.util.Hashtable decodeURL(java.lang.String url)
Decodes the XFrames type URI into a hashtable of id-sourcename pairs. Also saves the hashtable into internal urlPopulators variable.


parseURIs

public java.util.Hashtable parseURIs(java.lang.String uriEnd)
A little obfuscated but works like a russian car. Works also for recursive framesets.

Parameters:
uriEnd - The end of the URI starting from the #frames fragment. #frames(................................$, where dots represent the string, and dollar indicates the end of the URI ALSO sets the tauhka variable to contain the possible portion of the URI after the frameset. Tauhka contains possible cgi parameters.
Returns:
a hashtable which contains the ids and uris
See Also:
decodeURL()

createFramesURI

public java.lang.String createFramesURI()
Create a frames URI from the uriPopulators hashtable. This is needed when updating the current uri of the browser. Compile the framesuri based on the current population, and old (baseURI+cgi parameters) http://ww.com/in.xfm?a=adssda&b=das#frames=(addssda=das


getURIPopulators

public java.util.Hashtable getURIPopulators()
Returns:
a hashtable containing urlpopulators defined within the URI


X-Smiles 1.2