BEA Systems, Inc.

com.beasys.commerce.axiom.jsp.tags
Class URIContentTag

java.lang.Object
  |
  +--weblogic.utils.compiler.CodeGenerator
        |
        +--com.beasys.commerce.axiom.jsp.tags.AbstractTag
              |
              +--com.beasys.commerce.axiom.jsp.tags.ESAbstractTag
                    |
                    +--com.beasys.commerce.axiom.jsp.tags.URIContentTag

public class URIContentTag
extends ESAbstractTag

Retrieves data from a fully-qualified URL, generating JSP code which is used to retrieved content from the URL at run time.


Inner classes inherited from class weblogic.utils.compiler.CodeGenerator
weblogic.utils.compiler.CodeGenerator.Output
 
Field Summary
static java.lang.String UTILS_FILE
           
 
Fields inherited from class weblogic.utils.compiler.CodeGenerator
NON_WORD_CHARS, targetDirectory, verboseCodegen
 
Constructor Summary
URIContentTag()
           
 
Method Summary
 java.lang.String id()
          Retrieves the value of the id attribute.
 java.lang.String processEndTag(java.lang.String tag, java.util.Properties props)
          Default Implementation, JspExtension.
 java.lang.String processStartTag(java.lang.String tag, java.util.Properties props)
          Default Implementation, JspExtension.
static java.lang.String retrieveURI(java.lang.String aURI)
          Retrieves the HTML content from a specified URI.
 java.lang.String uri()
          Retrieves the value of the uri attribute.
 
Methods inherited from class com.beasys.commerce.axiom.jsp.tags.ESAbstractTag
processTemplate
 
Methods inherited from class com.beasys.commerce.axiom.jsp.tags.AbstractTag
getDefaultValue, processTag, setJspContext, uniqueId
 
Methods inherited from class weblogic.utils.compiler.CodeGenerator
argumentLookup, baseConversion, buildString, classLookup, cleanup, date, ensureDir, exceptions, expandArrayClass, extractOptionValues, generate, generate, generate, generate, generateCode, generator, get_component_type, getFileChars, getProductionRule, getRootDirectoryName, getRuleName, installResource, is_primitive_array, javaCodeForType, lookupConvert, makeOutputStream, outputs, outputs, parameters, parse, prepare, primitive_type_array, primitive_type, processProductionRules, processTemplate, readLookup, rootDirectory, setRootDirectoryName, setTargetDirectory, targetFile, time, timeAndDate, type_array, writeLookup, year
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UTILS_FILE

public static final java.lang.String UTILS_FILE
Constructor Detail

URIContentTag

public URIContentTag()
Method Detail

id

public java.lang.String id()
Retrieves the value of the id attribute.
Returns:
the id attribute value.
See Also:
Extension Tag Documentation for the significance of this attribute.

uri

public java.lang.String uri()
Retrieves the value of the uri attribute.
Returns:
the uri attribute value.
See Also:
Extension Tag Documentation for the significance of this attribute.

retrieveURI

public static java.lang.String retrieveURI(java.lang.String aURI)
                                    throws java.io.IOException,
                                           java.net.MalformedURLException
Retrieves the HTML content from a specified URI.
Parameters:
aURI - the URI from which content is to be retrieved.
Returns:
the HTML content from the specified URI
Throws:
java.io.IOException -  
java.net.MalformedURLException -  

processStartTag

public java.lang.String processStartTag(java.lang.String tag,
                                        java.util.Properties props)
                                 throws weblogic.servlet.jsp.JspExtensionException
Default Implementation, JspExtension. Employed when a tag that has an enclosed body in its JSP invocation is opened.
Overrides:
processStartTag in class AbstractTag
Parameters:
tag - the tag name
properties - the properties passed to the tag, which result from the tag attributes used in its JSP invocation.
Returns:
resultant JSP code, inserted into the JSP file's _jspService method. Default implementation returns a empty String.
Throws:
weblogic.servlet.jsp.JspExtensionException -  

processEndTag

public java.lang.String processEndTag(java.lang.String tag,
                                      java.util.Properties props)
                               throws weblogic.servlet.jsp.JspExtensionException
Default Implementation, JspExtension. Employed when a tag that has an enclosed body in its JSP invocation is closed.
Overrides:
processEndTag in class AbstractTag
Parameters:
tag - the tag name
properties - the properties passed to the tag, which result from the tag attributes used in its JSP invocation.
Returns:
resultant JSP code, inserted into the JSP file's _jspService method. Default implementation returns a empty String.
Throws:
weblogic.servlet.jsp.JspExtensionException -  

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved