public static synchronized HttpFileUploadManager getInstanceFor ( XMPPConnection connection ) { HttpFileUploadManager httpFileUploadManager = INSTANCES . get ( connection ) ; if ( httpFileUploadManager == null ) { httpFileUploadManager = new HttpFileUploadManager ( connection ) ; INSTANCES . put ( connection , httpFileUploadManager ) ; } return httpFileUploadManager ; }
Obtain the HttpFileUploadManager responsible for a connection .