1
|
|
/* Generated by AspectJ version 1.0.5 */
|
2
|
|
package org.apache.cactus.client;
|
3
|
|
import org.apache.cactus.WebRequest;
|
4
|
|
import java.net.HttpURLConnection;
|
5
|
|
|
6
|
|
/**
|
7
|
|
* Helper class to open an HTTP connection to the server redirector and pass
|
8
|
|
* to it HTTP parameters, Cookies and HTTP headers. It enables different
|
9
|
|
* possible implementations of an HTTP connection (ex: using the JDK
|
10
|
|
* <code>HttpURLConnection</code> or using Jakarta HttpClient).
|
11
|
|
*
|
12
|
|
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
|
13
|
|
*
|
14
|
|
* @version $Id: ConnectionHelper.html,v 1.1 2003/04/14 12:27:31 sinisa Exp $
|
15
|
|
*/
|
16
|
|
public interface ConnectionHelper {
|
17
|
|
/**
|
18
|
|
* Connects to the Cactus Redirector using HTTP.
|
19
|
|
*
|
20
|
|
* @param theRequest the request containing all data to pass to the
|
21
|
|
* server redirector.
|
22
|
|
* @return the HTTP Connection used to connect to the redirector.
|
23
|
|
* @exception Throwable if an unexpected error occured
|
24
|
|
*/
|
25
|
|
HttpURLConnection connect(WebRequest theRequest) throws Throwable;
|
26
|
|
}
|