|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.smartfrog.sfcore.languages.sf.DefaultIncludeHandler
public class DefaultIncludeHandler
This is the default include handler for the SmartFrog parser. This simply creates a new parser and returns an AttributeList. The include name is located using SFSystem.stringToURl which will try to use the name as a URL, or make a file URL to locate it. Otherwise the classloader's getResourceAsStream is used to locate the include. Subclasses can override this to do more sophisticated include storage. The format of an AttributeList as returned by DefaultParser is a vector of Object[] with element 0 the name of the attribute and element 1 the value.
| Constructor Summary | |
|---|---|
DefaultIncludeHandler()
Constructor. |
|
DefaultIncludeHandler(java.lang.String baseCodebase)
Constructor. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
actualCodebase(java.lang.String codebase)
build a concatenated codebase from the base codebase and the codebase passed as a parameter |
protected java.io.InputStream |
openInclude(java.lang.String include,
java.lang.String codebase)
Locate the include and returns an input stream on it. |
java.util.Vector |
parseInclude(java.lang.String include,
java.lang.String codebase)
Parses given include. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultIncludeHandler()
public DefaultIncludeHandler(java.lang.String baseCodebase)
baseCodebase - the codebase for this include handler to which will be appended the codebase passed in the
parseIncldue method.| Method Detail |
|---|
public java.util.Vector parseInclude(java.lang.String include,
java.lang.String codebase)
throws java.lang.Exception
parseInclude in interface IncludeHandlerinclude - include file to parsecodebase - an optional codebase where the include may be found. If null, use the default codebase
java.lang.Exception - error while locating or parsing include
protected java.io.InputStream openInclude(java.lang.String include,
java.lang.String codebase)
throws java.lang.Exception
include - include to locatecodebase - an optional codebase where hte include may be found. If null, use the default code base
java.lang.Exception - failed to locate or open includeprotected java.lang.String actualCodebase(java.lang.String codebase)
codebase - the codeebase to concatenate to the base. May be null.
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||