May use {@link Proxy} if one is defined @see #proxy @see #useCustomAuthenticator @return connection @throws IOException if opening a connection fails
URLConnection
object that represents a connection to the remote object referred to by the URL
. A new connection is opened every time by calling the openConnection
method of the protocol handler for this URL.
If for the URL's protocol (such as HTTP or JAR), there exists a public, specialized URLConnection subclass belonging to one of the following packages or one of their subpackages: java.lang, java.io, java.util, java.net, the connection returned will be of that subclass. For example, for HTTP an HttpURLConnection will be returned, and for JAR a JarURLConnection will be returned.
@return a URLConnection
to the URL.
@exception IOException if an I/O exception occurs.
@see java.net.URL#URL(java.lang.String,java.lang.String,int,java.lang.String)
@see java.net.URLConnection
@see java.net.URLStreamHandler#openConnection(java.net.URL)
If the blob store is transactional, the caller must provide a Transaction
. Once provided, the connection will be valid for the life of the transaction, at the end of which it will be automatically {@link BlobStoreConnection#close close()}'d.
If the blob store is not transactional, the caller must provide null
. Once provided, the connection will be valid until explicitly closed.
Implementations are expected to do any desired pooling of underlying connections themselves.
@param tx the transaction associated with this connection, or null ifthe blob store is not transactional @param hints A set of hints to allow the implementation to optimize theoperation (can be null) @return the connection to the blob store @throws UnsupportedOperationException if the blob store is transactionalbut a Transaction is not provided by the caller, or if the blob store is not transactional and a Transaction is provided by the caller. @throws IOException if an error occurred trying to open the connection.
null
for the default
@param context the context for the connection
@param params the parameters for the connection
@throws IOException in case of a problem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|