KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > junit > result > InvokeURLResult


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Forums JBoss Portlet *
6  * *
7  * Distributable under LGPL license. *
8  * See terms of license at gnu.org. *
9  * *
10  *****************************************/

11 package org.jboss.portal.junit.result;
12
13 import org.jboss.portal.junit.Result;
14
15 /**
16  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
17  * @version $Revision: 1.1 $
18  */

19 public class InvokeURLResult implements Result
20 {
21
22    private String JavaDoc url;
23
24    public InvokeURLResult(String JavaDoc url)
25    {
26       if (url == null)
27       {
28          throw new IllegalArgumentException JavaDoc("URL parameter must not be null");
29       }
30       this.url = url;
31    }
32
33    public String JavaDoc getURL()
34    {
35       return url;
36    }
37 }
38
Popular Tags