[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit WebLink.java,1.7,1.8
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2001-10-24 17:57:10
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory usw-pr-cvs1:/tmp/cvs-serv8436/src/com/meterware/httpunit
Modified Files:
WebLink.java
Log Message:
Added header
Index: WebLink.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/WebLink.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- WebLink.java 2001/07/31 16:08:59 1.7
+++ WebLink.java 2001/10/24 17:57:07 1.8
@@ -1,13 +1,35 @@
package com.meterware.httpunit;
+/********************************************************************************************************************
+* $Id$
+*
+* Copyright (c) 2000-2001, Russell Gold
+*
+* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
+* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
+* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
+* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in all copies or substantial portions
+* of the Software.
+*
+* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
+* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
+* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+* DEALINGS IN THE SOFTWARE.
+*
+*******************************************************************************************************************/
import java.net.URL;
import org.w3c.dom.Node;
/**
- * This class represents a link in an HTML page. Users of this class may examine the
+ * This class represents a link in an HTML page. Users of this class may examine the
* structure of the link (as a DOM), or create a {@tag WebRequest} to simulate clicking
* on the link.
+ *
+ * @author Russell Gold
**/
public class WebLink extends WebRequestSource {
@@ -17,8 +39,8 @@
**/
public WebRequest getRequest() {
WebRequest request = new GetMethodWebRequest( getBaseURL(), getURLString(), getTarget() );
- request.setRequestHeader( "Referer", getBaseURL().toExternalForm() );
- return request;
+ request.setRequestHeader( "Referer", getBaseURL().toExternalForm() );
+ return request;
}
|