org.apache.cactus.client.connector.http
Class JdkConnectionHelper

java.lang.Object
  extended byorg.apache.cactus.client.connector.http.JdkConnectionHelper
All Implemented Interfaces:
ConnectionHelper

public class JdkConnectionHelper
extends java.lang.Object
implements ConnectionHelper

Implementation of ConnectionHelper using the JDK HttpURLConnection class.

Version:
$Id: JdkConnectionHelper.java,v 1.7 2003/06/22 16:18:47 vmassol Exp $
Author:
Vincent Massol, Jason Robertson

Constructor Summary
JdkConnectionHelper(java.lang.String theURL)
           
 
Method Summary
 java.net.HttpURLConnection connect(WebRequest theRequest, Configuration theConfiguration)
          Connects to the Cactus Redirector using HTTP.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdkConnectionHelper

public JdkConnectionHelper(java.lang.String theURL)
Parameters:
theURL - the URL that will be used for the HTTP connection.
Method Detail

connect

public java.net.HttpURLConnection connect(WebRequest theRequest,
                                          Configuration theConfiguration)
                                   throws java.lang.Throwable
Description copied from interface: ConnectionHelper
Connects to the Cactus Redirector using HTTP.

Specified by:
connect in interface ConnectionHelper
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
See Also:
ConnectionHelper.connect(WebRequest, Configuration)


Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.