public class RequestFactory extends Object
HttpURLConnection
objects.Modifier and Type | Method and Description |
---|---|
static RequestFactory |
getInstance()
Gets the single instance of
RequestFactory . |
HttpURLConnection |
initConnection(String method,
String endpoint,
ClientConfig config)
Init a
HttpURLConnection object from a given URI. |
public static RequestFactory getInstance()
RequestFactory
.RequestFactory
public HttpURLConnection initConnection(String method, String endpoint, ClientConfig config) throws IOException
HttpURLConnection
object from a given URI.method
- the methodendpoint
- the endpointconfig
- the configIOException
- Signals that an I/O exception has occurred.Copyright © 2016. All rights reserved.