catlett     01/09/06 09:48:00

  Modified:    scrape/src/org/apache/taglibs/scrape PageTag.java
  Log:
  updated PageTag to be current with the new PageData
  
  Revision  Changes    Path
  1.3       +17 -4     
jakarta-taglibs/scrape/src/org/apache/taglibs/scrape/PageTag.java
  
  Index: PageTag.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-taglibs/scrape/src/org/apache/taglibs/scrape/PageTag.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PageTag.java      2001/04/23 22:37:07     1.2
  +++ PageTag.java      2001/09/06 16:48:00     1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-taglibs/scrape/src/org/apache/taglibs/scrape/PageTag.java,v 1.2 
2001/04/23 22:37:07 catlett Exp $
  - * $Revision: 1.2 $
  - * $Date: 2001/04/23 22:37:07 $
  + * $Header: 
/home/cvs/jakarta-taglibs/scrape/src/org/apache/taglibs/scrape/PageTag.java,v 1.3 
2001/09/06 16:48:00 catlett Exp $
  + * $Revision: 1.3 $
  + * $Date: 2001/09/06 16:48:00 $
    *
    * ====================================================================
    *
  @@ -110,6 +110,8 @@
       // holds an instance of the application scope data object that stores the 
       // data on this scrape
       private PageData pagedata;
  +    // boolean value to use proxies or not default to false
  +    boolean proxy = false;
   
       /**
        * implementation of method from the tag interface that tells the JSP what
  @@ -143,7 +145,7 @@
        */
       public final int doEndTag() throws JspException {
           // attempt to scrape from the page named by url
  -     pagedata.scrapePage(url, time, pageContext);
  +     pagedata.scrapePage(url, time, proxy, pageContext);
        // put scrape results in the pagescope for access by result tag
        putScrapes();
        return EVAL_PAGE;
  @@ -195,6 +197,17 @@
            // compile time error let it get logged by the jsp
            throw new JspException(me.toString());
        }
  +    }
  +
  +    /**
  +     * set the boolean value of use proxy
  +     *
  +     * @param value  the boolean value that determines if a proxy server is to
  +     *               be used for the http connection
  +     *
  +     */
  +    public final void setUseProxy(String value) {
  +     proxy = new Boolean(value).booleanValue();
       }
   
       /**
  
  
  

Reply via email to