org.apache.cactus.internal.client.connector.http
Interface ConnectionHelper

All Known Implementing Classes:
HttpClientConnectionHelper

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 238991 2004-05-22 11:34:50Z vmassol $

Method Summary
 java.net.HttpURLConnection connect(WebRequest theRequest, Configuration theConfiguration)
          Connects to the Cactus Redirector using HTTP.
 

Method Detail

connect

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 © 2001-2009 The Apache Software Foundation. All Rights Reserved.