org.japano.pagenode.jstl.core
Class Import

java.lang.Object
  extended by org.japano.PageNode
      extended by org.japano.pagenode.jstl.core.Import

public class Import
extends PageNode

Retrieves an absolute or relative URL and exposes its contents to either the page, a String in 'var', or a Reader in 'varReader'.

Version:
$Id: Import.java,v 1.3 2005/09/27 21:30:51 fforw Exp $ SourceForge.net Logo
Author:
Sven Helmberger ( sven dot helmberger at gmx dot de )

Nested Class Summary
 
Nested classes/interfaces inherited from class org.japano.PageNode
PageNode.Output
 
Field Summary
 
Fields inherited from class org.japano.PageNode
children, context, EMPTY, nodeId, parent
 
Constructor Summary
Import()
           
 
Method Summary
 void generate(Buffer out)
          Generates this node The base implementation just calls PageNode.generateChildren(Buffer)
 void setCharEncoding(java.lang.String charEncoding)
          Character encoding of the content at the input resource.
 void setContext(java.lang.String contextURI)
          Name of the context when accessing a relative URL resource that belongs to a foreign context.
 void setScope(java.lang.String scope)
          Scope for var.
 void setUrl(java.lang.String url)
          The URL of the resource to import.
 void setVar(java.lang.String var)
          Name of the exported scoped variable for the resource's content.
 void setVarReader(java.lang.String varReader)
          Name of the exported scoped variable for the resource's content.
 
Methods inherited from class org.japano.PageNode
findChildren, findParent, findRootNode, generateChildren, getChildren, getContext, getNodeId, getParent, init, recInit, release, setChildren, setContext, setNodeId, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Import

public Import()
Method Detail

setUrl

public void setUrl(java.lang.String url)
The URL of the resource to import.


setVar

public void setVar(java.lang.String var)
Name of the exported scoped variable for the resource's content. The type of the scoped variable is String.


setVarReader

public void setVarReader(java.lang.String varReader)
Name of the exported scoped variable for the resource's content. The type of the scoped variable is Reader.


setScope

public void setScope(java.lang.String scope)
Scope for var.


setContext

public void setContext(java.lang.String contextURI)
Name of the context when accessing a relative URL resource that belongs to a foreign context.


setCharEncoding

public void setCharEncoding(java.lang.String charEncoding)
Character encoding of the content at the input resource.


generate

public void generate(Buffer out)
Description copied from class: PageNode
Generates this node The base implementation just calls PageNode.generateChildren(Buffer)

Overrides:
generate in class PageNode