BEA Systems, Inc.

com.beasys.commerce.axiom.tags
Class UriContentTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--com.beasys.commerce.axiom.tags.UriContentTag

public class UriContentTag
extends javax.servlet.jsp.tagext.BodyTagSupport

Implements the methods necessary to support the uriContent tag.

See Also:
Serialized Form

Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Constructor Summary
UriContentTag()
           
 
Method Summary
 int doAfterBody()
          Pushes output to the JSP page from the buffered BodyContent.
 int doStartTag()
          Evaluates the requested URI and initializes the pageContext scripting variable with the retrieved content.
 java.lang.String getId()
          Get the id.
 java.lang.String getUri()
          Get the URI.
static java.lang.String retrieveURI(java.lang.String aURI)
          Makes an Http connection and fetches the requested URI.
 void setId(java.lang.String theId)
          Set the id.
 void setUri(java.lang.String aUri)
          Set the URI.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UriContentTag

public UriContentTag()
Method Detail

setId

public void setId(java.lang.String theId)
Set the id.
Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport

getId

public java.lang.String getId()
Get the id.
Overrides:
getId in class javax.servlet.jsp.tagext.TagSupport
Returns:
identifier used for returned value.

setUri

public void setUri(java.lang.String aUri)
Set the URI.

getUri

public java.lang.String getUri()
Get the URI.
Returns:
URI to be fetched.

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Evaluates the requested URI and initializes the pageContext scripting variable with the retrieved content.
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
a value telling the JSP engine to evaluate the body of the tag or to skip it if the id tag attribute has not been specified.

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Pushes output to the JSP page from the buffered BodyContent.
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
a value telling the JSP engine we are done evaluating the body and no more iterations are necessary.

retrieveURI

public static java.lang.String retrieveURI(java.lang.String aURI)
                                    throws java.io.IOException,
                                           java.net.MalformedURLException
Makes an Http connection and fetches the requested URI.
Parameters:
aURI - the URI formatted name of the page to retrieve
Returns:
the page content from the requested URI.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved