com.googlecode.xremoting.core.http
Interface HttpConnectionFactory

All Known Implementing Classes:
DefaultHttpConnectionFactory

public interface HttpConnectionFactory

Factory for HttpURLConnection instances.

Author:
Roman Puchkovskiy

Method Summary
 HttpURLConnection openConnection(String url)
          Opens a new connection.
 

Method Detail

openConnection

HttpURLConnection openConnection(String url)
                                 throws MalformedURLException,
                                        IOException
Opens a new connection.

Parameters:
url - URL to which to open connection via HTTP/HTTPS.
Returns:
connection
Throws:
MalformedURLException - if URL is not correct
IOException - if any other error occurs (like no route to host)


Copyright © 2010. All Rights Reserved.