com.googlecode.xremoting.core.http
Class DefaultHttpConnectionFactory
java.lang.Object
com.googlecode.xremoting.core.http.DefaultHttpConnectionFactory
- All Implemented Interfaces:
- HttpConnectionFactory
public class DefaultHttpConnectionFactory
- extends Object
- implements HttpConnectionFactory
HttpConnectionFactory implementation which uses URL#openConnection().
- Author:
- Roman Puchkovskiy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultHttpConnectionFactory
public DefaultHttpConnectionFactory()
openConnection
public HttpURLConnection openConnection(String url)
throws MalformedURLException,
IOException
- Description copied from interface:
HttpConnectionFactory
- Opens a new connection.
- Specified by:
openConnection in interface HttpConnectionFactory
- 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.