Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1004726 // openConnection - synonym of URL.openConnection(), but with ping() and registering with VM

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (1514L/10K).

static URLConnection openConnection(S url) ctex {
  ret openConnection(new URL(url));
}

static URLConnection openConnection(URL url) ctex {
  ping();
  ifndef LeanMode
  callOpt(javax(), 'recordOpenURLConnection, str(url));
  endifndef
  ret url.openConnection();
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, elmgxqgtpvxh, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004726
Snippet name: openConnection - synonym of URL.openConnection(), but with ping() and registering with VM
Eternal ID of this version: #1004726/5
Text MD5: a5689aa918c8fef53c5bd6de2d40e54d
Transpilation MD5: 760943f1f6d8b361f89ec920018f9142
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-28 00:25:47
Source code size: 276 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 609 / 929
Version history: 4 change(s)
Referenced in: [show references]