org.apache.cactus.client.connector.http
Interface ConnectionHelper
- All Known Implementing Classes:
- HttpClientConnectionHelper, JdkConnectionHelper
- public interface ConnectionHelper
Helper class to open an HTTP connection to the server redirector and pass
to it HTTP parameters, Cookies and HTTP headers. It enables different
possible implementations of an HTTP connection (ex: using the JDK
HttpURLConnection
or using Jakarta HttpClient).
- Version:
- $Id: ConnectionHelper.java,v 1.3 2003/05/26 11:45:26 cmlenz Exp $
- Author:
- Vincent Massol
Method Summary |
java.net.HttpURLConnection |
connect(WebRequest theRequest,
Configuration theConfiguration)
Connects to the Cactus Redirector using HTTP. |
connect
public java.net.HttpURLConnection connect(WebRequest theRequest,
Configuration theConfiguration)
throws java.lang.Throwable
- Connects to the Cactus Redirector using HTTP.
- Parameters:
theRequest
- the request containing all data to pass to the
server redirector.theConfiguration
- the Cactus configuration
- Returns:
- the HTTP Connection used to connect to the redirector.
- Throws:
java.lang.Throwable
- if an unexpected error occured
Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.