Class JdkHttpURLConnection
- java.lang.Object
-
- org.codehaus.cargo.container.jboss.internal.JdkHttpURLConnection
-
public class JdkHttpURLConnection extends Object
Perform a HTTP GET to a URL. We have this as a separate class so we can mock it in our tests.
-
-
Constructor Summary
Constructors Constructor Description JdkHttpURLConnection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connect(String url, String username, String password, int timeout, Logger logger)
Connect to given URL as an HTTPGET
request.
-
-
-
Method Detail
-
connect
public void connect(String url, String username, String password, int timeout, Logger logger) throws IOException
Connect to given URL as an HTTPGET
request.- Parameters:
url
- URL to connect to.username
- Username (optional, can benull
)password
- Password (optional, can benull
)timeout
- Connection timeout (optional, can be0
)logger
- Codehaus Cargo logger to use- Throws:
IOException
- If connecting to the JBoss server fails
-
-